Splitting Ranges of Data Apart

ExcelNewbie0012

New Member
Joined
Oct 4, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello to all who might be able to assist me and my colleagues with this.

I am trying to find a way to split the ranges of numbers apart and to get each individual number that would be in that range. For instance, some of the data I am working with is:

120751.120754​
120760.120764​
100100.100150​

I would like some assistance on how to split it up so I would get a return on the next column of:


120751, 120752, 120753, 120754
102760, 120761, 120762, 120763, 120764
100100, 100101, 100102, etc etc

It's been a difficult one to tackle as some of the ranges can be generically wide, making up of up to 200 different amounts.

Any help would be greatly appreciated,
Thank you in advance
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hello, something along these lines?

Excel Formula:
=MAP(A1:A3,LAMBDA(x,
LET(
a,x,
start,--(TEXTBEFORE(a,".")),
end,--(TEXTAFTER(a,".")),
TEXTJOIN(", ",,start+SEQUENCE(,end-start+1,0)))))
 
Upvote 1
Solution
A variation

Excel Formula:
=LET(t,C1:C3,MAP(TEXTBEFORE(t,"."),TEXTAFTER(t,"."),LAMBDA(a,b,TEXTJOIN(",",,SEQUENCE(b-a+1,,a)))))
 
Upvote 1
Or in seperate cells

Excel Formula:
=LET(t,C1:C3,a,TEXTBEFORE(t,"."),b,TEXTAFTER(t,"."),s,SEQUENCE(,MAX(b-a+1)),IF(s<=(b-a+1),a-1+s,""))
 
Upvote 1
Or in seperate cells

Excel Formula:
=LET(t,C1:C3,a,TEXTBEFORE(t,"."),b,TEXTAFTER(t,"."),s,SEQUENCE(,MAX(b-a+1)),IF(s<=(b-a+1),a-1+s,""))
Those 2 also work wonders! How people become so efficient in excel to that extent amazes me!

Thank you kindly!
 
Upvote 0
You're welcome, cheers!;)
 
Upvote 1

Forum statistics

Threads
1,223,876
Messages
6,175,123
Members
452,614
Latest member
MRSWIN2709

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