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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,225,138
Messages
6,183,089
Members
453,147
Latest member
Bree2019

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