Access value separated by a comma

Im working on a sheet that has numbers for a sports club.
At the moment we use two columns and at the end of
the columns of data, we calculate values in one column
leaving another empty.

What I would like to do is move to a single column design.

A3:A15= Date
B,D,F,H,J,K,etc,1=team name
B3:B14 = Point values
C3:C14 = Goal values

B17:B22 = calculated values for B1 team.

Example data:
B3=3
B4=0
B5=1
B6=3
B7=0

C3=7
C4=10
C5=2
C6=1
C7=4

What I would like to do is:
B3=3,7
B4=0,10
B5=1,2

How would I access the first or second value a pair value?

I was afraid of that.
Ok.. it was just something I was working on. I can stick with two columns
until I find a better way.

Thanks :smiley:

You have already seen how complicated things get if you try to extract two numbers - here 3 and 7 - from the three-character text string "3,7". There may be other ways of looking at this. I wonder why you wish to make the change; I can think of two reasons.

Do you want to be able to read or perhaps print the spreadsheet with the condensed version of the data? It's much simpler to go the other way: you can concatenate two values from separate columns using
=B3&","&C3
You could create an additional table with the condensed values which you would then use for reading or printing, perhaps defining a print range. You would copy values from your original table to the new one using the "=" operator, not using Copy and Paste, so that the values in your printing table followed changes to your original table and were not a fossilised copy.

Alternatively, perhaps you are pasting in values that already appear in the comma-separated form or that you simply prefer to type them this way. In that case, you could make use of Data | Text to Columns..., ticking Comma under "Separated by". This would split your text string "3,7" into two values in the current and following columns, also helpfully converting the text into numbers as it does.

I trust this helps.

Brian Barker