Urgent question: Looking up a certain value from a list....

j33pguy

Well-known Member
Joined
Aug 6, 2004
Messages
633
hi,
i have a very important question to ask:

i have a huge table with a lot of columns......
one of the columns has certain identifiers such as lets say A, B, C, D, etc.

now what i need is for the user to be able to have a list of these "identifiers" (i have already created the list), and based on the selection of the user, all of the rows of that certain identifier would show:

here is an example:



if the identifier A has five rows....meaning that A is in five consecutive rows; if the user chooses "A" then i want all of the information from those FIVE rows to show...

does that make sense?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Re: Urgent question: Looking up a certain value from a list

can you use Data>>Filter>>AutoFiler from the menu. Then if you select A from the dropdown you should get all rows with A

By default it will put a filter on every column. If you just hightlight the column(s) you want to filter on, then select if from the menu it will only put a filter on the selected column(s)
 
Upvote 0
Re: Urgent question: Looking up a certain value from a list

that is what i thought of first too but that's not gonna work for me since that creates many other problems....
is there anyway this could be done with a formula?
 
Upvote 0
Re: Urgent question: Looking up a certain value from a list

and the reason i can't do that is because that feature of EXCEL has a row limit of like 4800 rows or 4800 "identifiers" and i have close to 6500!

i can't believe EXCEL has that stupid ristriction!!!!
anyway around it?
 
Upvote 0
Re: Urgent question: Looking up a certain value from a list

There is no row limit restriction on that feature. But the drop down will only show 1000 results, is that what your refering to?

You have over 1000 possible selections?
 
Upvote 0
Re: Urgent question: Looking up a certain value from a list

please help if you know the answer... :oops:
 
Upvote 0
Re: Urgent question: Looking up a certain value from a list

i don't really know how to answer that question.....

but here is again what i need:

i need to display all of A rows....or all of C rows.....or all of CC rows....according to the user selection....
 
Upvote 0
Re: Urgent question: Looking up a certain value from a list

Assuming that Columns A through D contain your data, Column B contains your "identifiers", and your data starts on the second row...

E1: enter the "identifier" of interest

F1: enter a 0 (zero)

F2, copied down:

=IF((A2<>"")*(B2=$E$1),LOOKUP(9.99999999999999E+307,$F$1:F1)+1,"")

G1:

=LOOKUP(9.99999999999999E+307,F:F)

H2, copied across and down:

=IF(ROW()-ROW(H$2)+1<=$G$1,INDEX(A$2:A$10,MATCH(ROW()-ROW(H$2)+1,$F$2:$F$10,0)),"")

Hope this helps!
 
Upvote 0
Re: Urgent question: Looking up a certain value from a list

j33pguy said:
i need to display all of A rows....or all of C rows.....or all of CC rows....according to the user selection....

How many choices (A, C, CC) does the user have to pick from?
If its less than 1000 you should be able to AutoFilter
 
Upvote 0
Re: Urgent question: Looking up a certain value from a list

j33pguy said:
that is what i thought of first too but that's not gonna work for me since that creates many other problems....
is there anyway this could be done with a formula?
Book2
ABCDEFGHI
1A
204A
3XYZCountPosXYZ
4Ay210z433411Ay210z4334
5Ay539z443922Ay539z4439
6By177z5154 4Ay115z2042
7Ay115z204237Ay855z9268
8By490z5168     
9Cy622z1464  
10Ay855z92684 
11Cy779z4405  
12
Sheet1


Formulas...

D1:

=G2

Reads the data validation cell.

D2 must house a 0.

D4, copied down:

=IF(A4=$D$1,LOOKUP(9.99999999999999E+307,$D$2:D3)+1,"")

F2:

=LOOKUP(9.99999999999999E+307,$D$4:$D$11)

F4, copied down:

=IF(ROW()-ROW(F$4)+1<=$F$2,MATCH(ROW()-ROW(F$4)+1,$D$4:$D$11),"")

G2 houses a dropdown list.

G4, copied across to I4 then down:

=IF(N($F4),INDEX(A$4:A$11,$F4),"")
 
Upvote 0

Forum statistics

Threads
1,214,654
Messages
6,120,758
Members
448,991
Latest member
Hanakoro

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