Remove Comma's from Cell

Jyotirmaya

Board Regular
Joined
Dec 2, 2015
Messages
205
Office Version
  1. 2019
Platform
  1. Windows
I have values like this in the cell E6

1177,1178,,,,,1185,,,,,,1344,,,,,,1346,,,,,1251,,,1487,,,,,,1488,,,,,1489,,,,,,1348,,,,,1481,,,,,1485,,,,,,1486

I want these values in separate rows on F column, what should be the formula ?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
You can use this:

Code:
=MID(TRIM(SUBSTITUTE($E$6,","," ")),
       5*(ROWS(F$6:F6)-1)+1,4)+0
 
Upvote 0
You can use this:

Code:
=MID(TRIM(SUBSTITUTE($E$6,","," ")),
       5*(ROWS(F$6:F6)-1)+1,4)+0

Yes this works, but I have similar values in E7 E8 upto E1000, so I want a formula where if I will drag the code in F column then automatically without comma it should show, now I need to do it separately for every cell, any macro will be better.
 
Upvote 0
Do you want something like this:


Unknown
EFGHIJKLMNOPQR
61177,1178,,,,,1185,,,,,,1344,,,,,,1346,,,,,1251,,,1487,,,,,,1488,,,,,1489,,,,,,1348,,,,,1481,,,,,1485,,,,,,14861177117811851344134612511487148814891348148114851486
75013,3617,4437,4266,,,,,3155,4198,7963,,,,,1929,,,,7870,,,,,1034,,,9145,,4226,32405013361744374266315541987963192978701034914542263240
81657,,8318,,,,,3049,,,,,1008,3110,,,8202,,,,,3385,1337,1420,,,8937,,,,4437,1202,,85151657831830491008311082023385133714208937443712028515
92749,,,,5626,,,7632,,,,,2758,,,,,7448,,,,8046,8420,,,8472,,,,,2503,,,,,8904,,,1242,6302,,44102749562676322758744880468420847225038904124263024410
101896,,,,8022,,,5550,,,,1473,,6385,,,4014,,5850,,1739,,,5908,9028,,2375,,8248,24161896802255501473638540145850173959089028237582482416
Sheet4
Cell Formulas
RangeFormula
F6=MID(TRIM(SUBSTITUTE($E6,","," ")),5*(COLUMNS($F6:F6)-1)+1,4)+0
 
Last edited:
Upvote 0
Yes this works, but I have similar values in E7 E8 upto E1000, so I want a formula where if I will drag the code in F column then automatically without comma it should show, now I need to do it separately for every cell, any macro will be better.
In your first message, you said the value in cell E6 should be down Column F... where should the value in E7 go, down Column G or down Column F underneath the values from cell E6?
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,224
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top