Listing Numbers in between a range to a separate column

Harry_1234

New Member
Joined
Aug 19, 2017
Messages
47
Hello,

Looking for a VBA script that would extract numbers in a range to a separate column. Attaching a screen-shot of various possibilities of ranges. Below is an explanation of diff set of groupings that would like expanded into individual numbers.
\+1234567891[01234567] - Anything in brackets is what is to be included i.e. this would be expanded to \+12345678910, \+12345678911, \+12345678912, \+12345678913, \+12345678914, \+12345678915, \+12345678916, \+12345678917
\+1234567891[1-2] - This would mean 1 to 2 so this would expand to \+12345678911,\+12345678912
\+123456790XX - The XX would be wildcard in last digits that would represent 00-99 so this would include all the numbers from \+12345679000 to \+12345679099
\+12345677[6-8]XX - This is a combination of grouping and wildcard so the last 3 would be 600 - 899 and the numbers to be \+12345677600 to \+12345677899
 

Attachments

  • Number Expansion.PNG
    Number Expansion.PNG
    10 KB · Views: 18

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,214,943
Messages
6,122,370
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