split cell accross help

wrighty998

New Member
Joined
Jan 31, 2018
Messages
35
please help with a formula to split my cell

input cell

DSEN 52, DTOR 3, DAMR 79, SSEN 0, STOR 2, SAMR 5, SPROD YES

<tbody>
</tbody>

<tbody>
</tbody>

<tbody></tbody>

output cells

52379025yes

<tbody>
</tbody>
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
sorry, schdeule tool.xlsm - thisworkbook (code)
Just as I thought, you put it in the wrong place. It needs to go in a Standard (General) Module.
lrobbo314 has directions in his signature on how to do that:
To add code to a workbook. Hit Alt+F11. Hit Alt+I+M to insert new module. Then paste code.
 
Upvote 0
The custom function has 2 arguments. The first on is the range where your data is. The second one is an index. The code is splitting your data into an array. The array splits up your data using the commas and spaces. DSEN 52, DTOR 3, DAMR 79, SSEN 0, STOR 2, SAMR 5, SPROD YES. So the first item in the array is DSEN 52, the second is DTOR 3, and so on. So column(A1) is just a way to get an number to increment 1,2,3,.... to reference the various elements in the array.

thank you so much for the code works great :)
 
Upvote 0

Forum statistics

Threads
1,215,576
Messages
6,125,633
Members
449,242
Latest member
Mari_mariou

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