I have data sent to me in this format and it is all in a single cell:
Say A1 has
23.1 45.2 35.4 78 12
So, I need to sum all of this numbers. I tried using a macro that replaces the spaces with + sign and then using
It works great except that the people that enter the data do two things sometimes:
1. They press space two or three times so I end up with "23.4++12.1+++45.1"
2. They press space at the end, so I end up with : "23.1+45.1+89+" or sometimes even at the beginning "+23.1+45.1+89"
so I get run time error 1004
Say A1 has
23.1 45.2 35.4 78 12
So, I need to sum all of this numbers. I tried using a macro that replaces the spaces with + sign and then using
Code:
Range("A2").Select
ActiveCell.FormulaR1C1 = "=" & Range("A1")
It works great except that the people that enter the data do two things sometimes:
1. They press space two or three times so I end up with "23.4++12.1+++45.1"
2. They press space at the end, so I end up with : "23.1+45.1+89+" or sometimes even at the beginning "+23.1+45.1+89"
so I get run time error 1004