XRNG

XRNG(start,end,[step])
start
Beginning of sequence
end
End of sequence
[step]
Optional step increment

XRNG will return a sequence given a start, end, and step argument

lrobbo314

Well-known Member
Joined
Jul 14, 2008
Messages
3,929
Office Version
  1. 365
Platform
  1. Windows
XRNG will return a sequence given a start, end, and step argument.

Excel Formula:
=LAMBDA(
    start,end,[step],
        LET(
            b,IF(ISOMITTED(step),1,step),
            SEQUENCE((end-start)/b+1,,start,b)
        )
)

XRNG
ABCD
1Start65210
2End9040100
3Step210
465210
566420
667630
768840
8691050
9701260
10711470
11721680
12731890
137420100
147522
157624
167726
177828
187930
198032
208134
218236
228338
238440
2485
2586
2687
2788
2889
2990
Sheet2
Cell Formulas
RangeFormula
B4:B29B4=XRNG(B1,B2)
C4:C23,D4:D13C4=XRNG(C1,C2,C3)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,216,503
Messages
6,131,022
Members
449,616
Latest member
PsychoCube

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