Dynamically list values based on user input

TINA31415

New Member
Joined
May 28, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a list of 10,000 different values in a pivot table. Based on a number a user enters, perhaps 20, I want to populate a list of the first 20 values from my pivot table. I need this to be dynamic because perhaps one user may want to see 10 values, but another user may want to see 50.

I included an example of what I'm looking for below.

1590674391776.png
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi, if you have the SEQUENCE() function available - you can try.

=INDEX($A$3:$A$10000,SEQUENCE(E1,1))

Where $A$3:$A$10000 is your list of numbers from the pivot table and E1 is your number of rows to return.
 
Upvote 0
Hi, if you have the SEQUENCE() function available - you can try.

=INDEX($A$3:$A$10000,SEQUENCE(E1,1))

Where $A$3:$A$10000 is your list of numbers from the pivot table and E1 is your number of rows to return.


Unfortunately it doesn't look like I have the Sequence function available.
 
Upvote 0
it doesn't look like I have the Sequence function

Hi, you could try something like this instead.

Book1
ABCDE
1Choose:5
2Full list
364020Result
49995564020
55047999955
64598150479
72204445981
86905822044
959318 
1069622 
1165679 
1298889 
Sheet1
Cell Formulas
RangeFormula
E4:E12E4=IF(ROWS(E$4:E4)<=$E$1,INDEX($A$3:$A$10000,ROWS(E$4:E4)),"")


The formula in E4 is copied down as far as may be required.
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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