VBA split References by comma delimited

decadence

Well-known Member
Joined
Oct 9, 2015
Messages
525
Office Version
  1. 365
  2. 2016
  3. 2013
  4. 2010
  5. 2007
Platform
  1. Windows
Hi, I am trying to expand references by comma delimited but not sure how. can someone help with this please

Example:

From This:


References
A3, A7, A10-A15, A17, A19
B12-18, B20
C01-C09
D01,D04,D08,D013-016

<tbody>
</tbody>


To This:


References
A3,A7,A10,A11,A12,A13,A14,A15,A17,A19
B12,B13,B14,B15,B16,B17,B18,B20
C1,C2,C3,C4,C5,C6,C7,C8,C9
D1,D4,D8,D13,D14,D15,D16

<tbody>
</tbody>
 
Last edited:
:unsure: I'm wondering why this thread exists at all?
Apart from whether the results are separated by comma or comma-space, it is identical to the one you asked back in July for which the codes suggested back then (at least I have checked mine) still work with this data.
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,214,944
Messages
6,122,391
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