Formula to convert a CSV string directly to cells

mtheriault2000

Well-known Member
Joined
Oct 23, 2008
Messages
826
Hello

I got a string separated by coma that is send to a cell. This string is updated every 500 ms

I know that i can convert that string by selecting it and use the convert tool on my toolbar.

My question is, Is it possible to create a formula in the targeted cell to split and convert it automatiquely as soon as the string is updated.

Ex:
- A string "1.40570,1.40580,1.40565,1.40570,1.4675" is copied to cell ("C9").
- I'm looking for a formula to be placed in cells
("B17") to contain 1.4057
("B18") to contain 1.4058
("B19") to contain 1.4065
("B20") to contain 1.4075

That could be done in VBA, but I want to know if it is possible to do it using formula in cells

Martin
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
B17, formula copy down :

=--TRIM(MID(SUBSTITUTE(C$9,",",REPT(" ",50)),ROWS(A$1:A1)*50-49,50))

Regards
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

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