Comma and separate in excel using function

acharsanthosh

New Member
Joined
Dec 20, 2017
Messages
9
I have data '1234 to 56478' and wanted add comma only for values using excel function and data should look like '1,234 to 55,678'
How do I do this?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Can you not just format the cells to include the thousands separator?

1585737530683.png
 
Upvote 0
For the first row the formula ''=LEFT(A1,FIND(" ",A1,1)-4) & ","&MID(A1,FIND(" ",A1,1)-3, LEN(A1) - FIND(" ",A1,1)+1) & ","&RIGHT(A1,3) " is working fine, but not able to do it for rest of 4 since the data is quite different
 
Upvote 0
Hmm, you do have quite a variety to deal with. This appears to cover the cases you have given. I hope there aren't other variations you haven't mentioned. ;)

20 04 01.xlsm
DE
11234 to 564781,234 to 56,478
20 to 24500000 to 2,450,000
31360000+1,360,000+
41234 to 564781,234 to 56,478
Format
Cell Formulas
RangeFormula
E1:E4E1=TEXT(LEFT(D1,FIND(" ",SUBSTITUTE(D1,"+"," "))-1)+0,"#,##0")&IF(ISNUMBER(FIND(" ",D1)),TEXT(RIGHT(SUBSTITUTE(D1," ",REPT(" ",20)),20)," to #,##0"),"+")
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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