Hello!
I'm currently trying to find a formula to extract data and return only the middle of another cell.
For example.
Cell A1
300 1 2 3 3 2 1 3 4 40
I want a formula that can extract only "1 2 3 3 2 1 3 4" and also include a comma in between.
So far, my solution to this is using the MID formula. I'm currently using =MID(A1,5,1)&","&MID(A1,7,1) and so on. This formula works perfectly and gives me the exact result that I'm looking for which is 1,2,3,3,2,1,3,4 with the commas included.
However, the problem occurs when there are DOUBLE DIGIT numbers. If the cell was 300 12 13 14 15 18 21 400 the MID formula would read the 5th, 7th, 9th line only and give me the wrong data.
Would anyone know how to fix this to display both single and double digit numbers?
Thank you!
I'm currently trying to find a formula to extract data and return only the middle of another cell.
For example.
Cell A1
300 1 2 3 3 2 1 3 4 40
I want a formula that can extract only "1 2 3 3 2 1 3 4" and also include a comma in between.
So far, my solution to this is using the MID formula. I'm currently using =MID(A1,5,1)&","&MID(A1,7,1) and so on. This formula works perfectly and gives me the exact result that I'm looking for which is 1,2,3,3,2,1,3,4 with the commas included.
However, the problem occurs when there are DOUBLE DIGIT numbers. If the cell was 300 12 13 14 15 18 21 400 the MID formula would read the 5th, 7th, 9th line only and give me the wrong data.
Would anyone know how to fix this to display both single and double digit numbers?
Thank you!