baffled in LA

Tom F

Active Member
Joined
Oct 19, 2002
Messages
263
Sheet 2 needs to list the students that have grade B from Sheet 1 as displayed below. Sheet 2 needs to work in general for any set of data that is pasted to Sheet 1, which can be up to 500 records.

The advanced filter was used successfully for Sheet 2 but when a different set of data was pasted for Sheet 1, it doesn’t work and falls short. Sheet 2 needs to work for any set of data that is pasted to Sheet 1.

This is a representative example for a different problem. If a solution for the example below can be found, then the real example can be worked.
Book1
ABCDE
1Sheet 1
2
3Last NameFirst NameGrade
4DoeJohnB
5HurBenU
6LittleDonC
7KelsoJohnU
8GreenHubertA
9
Sheet1
Book1
ABCDE
1Sheet 2
2
3Last NameFirst NameGrade
4HurBenU
5KelsoJohnU
6
Sheet2


Many thanks,
Tom F
 

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)
Tom

How did the advanced filter fail and fall short??? It should return the details that match you selection...


Tony
 
Upvote 0
Acw – the advanced filter in sheet 1 worked fine for the set of data in sheet 1. When new data was copied to sheet 1 the advanced filter fell short. At least it did the way I worked it.

Brian – I need for sheet 2 to act on any set of data (up to 500 records) in sheet 1 and automatically report the names of the students who scored a “U”.
 
Upvote 0
Sheet1 (source that gets queried)
Book2
ABCDEF
1
20
3Last NameFirst NameGradeIdx
4DoeJohnB 
5HurBenU1
6LittleDonC 
7KelsoJohnU2
8GreenHubertA 
9
Sheet1


Formulas...

E2 must house a 0.

E4, copied down:

=IF(D4=Sheet2!$C$1,LOOKUP(9.99999999999999E+307,Sheet1!$E$2:E3)+1,"")


Sheet2 (destination from which a grade query is launched)
Book2
ABCD
1Grade:U
22
3PosLast NameFirst NameGrade
45HurBenU
57KelsoJohnU
6    
7
Sheet2


Formulas...

A2:

=LOOKUP(9.99999999999999E+307,Sheet1!E:E)

A4, copied down:

=IF(ROW()-ROW(A$4)+1<=$A$2,MATCH(ROW()-ROW(A$4)+1,Sheet1!E:E),"")

B4, copied across to D4 then down:

=IF(N($A4),INDEX(Sheet1!B:B,$A4),"")


It seems to me that column D is superfluous for C1 already tells the grade.
 
Upvote 0
Aladin,

Great job … you have a way with Excel!!!

This is more interactive than I requested by selecting the grade of your choice in C1 of sheet 2. This is now easy to adapt for my needs.

I concur. Column D is redundant in the sense that you already know the grade.

Thanks !!!!!

Have a Splendid Day,
Tom
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,409
Members
448,959
Latest member
camelliaCase

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