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
1Leicester4697
2Ipswich4696
3Leeds Utd4690
4Southampton4687
5West Brom4675
6Norwich City4673
7Hull City4670
8Middlesbro4669
9Coventry City4664
10Preston 4663
11Bristol City4662
12Cardiff City4662
13Millwall4659
14Swansea City4657
15Watford4656
16Sunderland4656
17Stoke City4656
18QPR4656
19Blackburn 4653
20Sheffield W4653
21Plymouth 4651
22Birmingham4650
23Huddersfield4645
24Rotherham Utd4627
Top