delimit

PE

New Member
Joined
Mar 17, 2005
Messages
6
Hello,

I am facing an issue with delimiting a numeric value in excel. The excel sheet i have is the exported file from SQL database. I do not have access to the database. The value I want to delimit is like 2,455,1,666. I want to have this value in four subsequent cells. I tried using LEN and other functions to first calculate that value will be delimited to how many cells. For example =(ROUND(LEN(A1)/3,0))+(LEN(A1)-(ROUND(LEN(A1)/3,0)*3)). The first issue here is LEN function stops working or give erroneous results if the value is more than 16 digits. Then the next challenge is to delimit in 4 cells.

Please help if anyone has any idea.

Regards,
PE
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Could you just use Text To Columns with a comma as the delimiter?

What result do you want for that given sample?

What Excel version are you using?
 
Upvote 0
Hello Peter,

Text to column doesn't work here because cell value is in number format and therefore excel doesn't read comma " , ".

Value: 2,346,123 should be delimited to 2 then 346 then 123, all three values in three different cells

I am using excel 2007.

Many thank for your attention to this issue.

Regards,
Subodh
 
Upvote 0
Text to column doesn't work here because cell value is in number format and therefore excel doesn't read comma " , ".

Value: 2,346,123 should be delimited to 2 then 346 then 123, all three values in three different cells
How does that relate to the example you gave earlier? It doesn't appear to be a number. How should it be delimited?
The value I want to delimit is like 2,455,1,666.
 
Upvote 0
As peter suggested earlier, it can be easily done using text to columns (Data -> text to columns) in excel 2007)

But if you still want to do it using formulae for some reason, try the following.

I assume the string is in column A.

Cell____Formula___________________________ Value
A1 ____- ________________________________7,235,65,2
B1____ =LEFT(A1,SEARCH(",",A1,1)-1)________ 7
C1____ =RIGHT(A1,LEN(A1)-SEARCH(",",A1,1)) _235,65,2
D1____ =LEFT(A1,SEARCH(",",A1,1)-1)________235
E1____ =RIGHT(A1,LEN(A1)-SEARCH(",",A1,1)) _65,2
F1 ____=LEFT(A1,SEARCH(",",A1,1)-1) ________65
G1 ____=RIGHT(A1,LEN(A1)-SEARCH(",",A1,1))__ 2

Columns B,D,F,G will have the values you want

Hope that helps

(Have used __s for indentation. How to indent posts?)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,787
Members
452,942
Latest member
VijayNewtoExcel

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