I am working on cleaning up some data on an existing excel spreadsheet. In one column, there is a descriptive string of text which is followed by a "," and then a number identifying its category -- there are cases where there are multiple sets of data like this in one cell. I want to extract the first number.
Sample data
1)Dog Snacks/Treats , 244
2)Film/Film Processing, 132
3)Paper Towels, 222
4)Paper tablecloths , 221,Placemats ,223
5)Wine, 31
Desired Results
1) 244
2) 132
3) 222
4) 221
5) 31
I have attempted to nest the find formula (looking for the ,) inside Right and Left formulas, but for some reason I can't get it to select the numbers. For example when I use the formula right(A1,find(",",A1)) it returns "Snacks/Treats , 244".
I've considered exporting into a text file which I could open as a csv file to seperate these strings, but given the volumne of data I need to do this on, I'm concerned about maintaing the data's integrity.
Any thoughts on a formula which would extract this data?
Sample data
1)Dog Snacks/Treats , 244
2)Film/Film Processing, 132
3)Paper Towels, 222
4)Paper tablecloths , 221,Placemats ,223
5)Wine, 31
Desired Results
1) 244
2) 132
3) 222
4) 221
5) 31
I have attempted to nest the find formula (looking for the ,) inside Right and Left formulas, but for some reason I can't get it to select the numbers. For example when I use the formula right(A1,find(",",A1)) it returns "Snacks/Treats , 244".
I've considered exporting into a text file which I could open as a csv file to seperate these strings, but given the volumne of data I need to do this on, I'm concerned about maintaing the data's integrity.
Any thoughts on a formula which would extract this data?