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:


[TABLE="class: grid, width: 250"]
<tbody>[TR]
[TD][/TD]
[TD]References
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]A3, A7, A10-A15, A17, A19
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]B12-18, B20
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]C01-C09
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]D01,D04,D08,D013-016
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


To This:


[TABLE="class: grid, width: 250"]
<tbody>[TR]
[TD][/TD]
[TD]References
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]A3,A7,A10,A11,A12,A13,A14,A15,A17,A19
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]B12,B13,B14,B15,B16,B17,B18,B20
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]C1,C2,C3,C4,C5,C6,C7,C8,C9
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]D1,D4,D8,D13,D14,D15,D16
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
:huh: 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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,224,820
Messages
6,181,161
Members
453,021
Latest member
Justyna P

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