Create range by adding one

atuljadhavnetafim

Active Member
Joined
Apr 7, 2012
Messages
341
Office Version
  1. 365
Platform
  1. Windows
Hi Expert

I want to create Range Min and Max number up to certain count.
as per below table, K2 has number to which range to be create (here 11)

the number will be start from 2231000219 and end with 2231000229 (total 11 numbers)

the same range to be create in L column for 64 numbers, it start from 2232200747 and end with 2232200810

is there any formula which create range starting from row 3 and end up to row 4.


1670562140052.png
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Not with a requested formula but with a short macro instead.

Code:
Sub With_A_Code_Snippet()
Dim i As Long
Application.ScreenUpdating = False
    For i = 11 To Cells(1, Columns.Count).End(xlToLeft).Column
        With Cells(6, i).Resize(Cells(2, i))
            .Formula = "=R3C+Row()-6"
            .Value = .Value
        End With
    Next i
Application.ScreenUpdating = True
End Sub
 
Upvote 0
Another option with a formula
Excel Formula:
=SEQUENCE(K2,,K3)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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