Spreadsheet question

Log in to stop seeing adverts

Status
Not open for further replies.

spionfox

Well-Known Member
I have two columns of data. I want to select all of the data and then paste the contents of the two columns into just one column but with 'space hyphen space' in-between the two sets of data.

Anyone know a simple way of achieving this? Thanks.
 
This is based on the version of Excel I currently use (2003) - assuming your data is in columns A and B.

In a new column, add the following:

=A1&" - "&B1

That should then have a new column with the layout you require. As it's a formula, you may then want to change it to just the values. You can do this by selecting the column, copying it, then using one of the paste options to just paste the values rather than the formula. Can't remember the exact wording of that option.
 
This is based on the version of Excel I currently use (2003) - assuming your data is in columns A and B.

In a new column, add the following:

=A1&" - "&B1

That should then have a new column with the layout you require. As it's a formula, you may then want to change it to just the values. You can do this by selecting the column, copying it, then using one of the paste options to just paste the values rather than the formula. Can't remember the exact wording of that option.

Cheers Jeff - your guidance helped me to the following:

=CONCATENATE(A1," - ",B1)

If you weren't already a legend you are now because you have just helped me to easily make my own 'recently played' playlist data so that I can resume posting in the 'What are you listening to now' thread.

Blaarev, Mawsley et al will be delighted with you - cheers :icon_bigg
 
Last edited:
It was a trick question
 
Maybe save as a comna separated values file (. Csv), open in word pad and find replace all commas for hyphens. This would be incredibly easy in Linux!
 
Status
Not open for further replies.
Log in to stop seeing adverts

Championship

P Pld Pts
1Leicester4494
2Leeds Utd4590
3Ipswich4389
4Southampton4484
5West Brom4472
6Norwich City4472
7Hull City4469
8Coventry City4363
9Middlesbro4463
10Preston 4463
11Cardiff City4462
12Bristol City4459
13Sunderland4456
14Swansea City4456
15Watford4453
16QPR4553
17Millwall4453
18Stoke City4450
19Blackburn 4449
20Plymouth 4448
21Sheffield W4447
22Birmingham4446
23Huddersfield4444
24Rotherham Utd4424

Latest posts

Top