Number Range Starting at 1

JHusk

New Member
Joined
Dec 7, 2022
Messages
32
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
What would be the FORMULA to list the numbers between the value of a cell and 1? Basically finding all whole numbers between 1 and the value of the cell.

Example
(Source) A1 = 4
(Result) B1 = 1 / B2 = 2 / B3 = 3 / B4 = 4 / etc.

Purpose, I want to enter a number into a cell (A1), and create a data validation for later use with 1 through the value of that cell (A1)
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
I don't think that you can create a data validation list with a formula. You'll need a macro. In what cell do you want the data validation list?
 
Upvote 0
I don't think that you can create a data validation list with a formula. You'll need a macro. In what cell do you want the data validation list?
Not necessarily needing the data to go directly into a data validation list. Just need to create the number list first (in B1 for this example). From there I can setup the Data Validation with OFFSET.
 
Upvote 0
How about in B1
Excel Formula:
=sequence(A1)
And then id the DV use
Excel Formula:
=B1#
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,566
Members
452,652
Latest member
eduedu

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