Index and Count

ExcelTeacher

New Member
Joined
Dec 3, 2013
Messages
8
Hi there,

I have a worksheet where the name of the workshop, teacher and students are all listed in different collumns. I want to Find a teacher and list all of his students (4 groups) so I can make a worksheet as a report. Unfortunately the workshop is entered with names of students in collumn I (I2 to I300) and teachers names are in collumns M, Q, U, Y and AC).

Thanks for your help
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I'm not sure what you're trying to accomplish. Is the problem that you want to perform a look up by teacher name, but the teachers column is to the right of the students?

Could you provide examples of sample data and desired output.

Somethings you may want to consider are:
Index Match Formulas
Pivot table
 
Upvote 0
Yes I want to perform a lookup by teacher name and the teachers columns are to the right of the students.

Sample Data :
I M Q U Y AC
1 Student names Teacher per1 Teacher per2 Teacher per3 Teacher per4 Teacher per5
2 Robert Mr. A Mr. C Mr. E Mrs. G
3 James Mr. A Mr. D Mr. F Mrs. G Mr. C
4 Bill Mrs. B Mr. A Mr. C Mr. H
5 Jane Mr. C Mrs. B Mr. A Mrs. G Mr. H

Desired Output
Mr. A
Robert
James
Bill
Jane

-page break-
Mrs. G
Robert
James
Jane
 
Upvote 0
Let's keep it simple. Assume you have a range A1:E4

1abcd
2axef
3mcgh
4abce

<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>
</tbody>

<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>
</tbody>

A6: a
a7: =index($A$1:$A$4,small(if($B$1:$E$4=$A$6,row($B$1:$E$4$)-row($B$1)+1),rows($A$7:A7))) press Cntrl+Shift+Enter, copy down
 
Upvote 0
Let's keep it simple. Assume you have a range A1:E4

1abcd
2axef
3mcgh
4abce

<tbody>
</tbody>

<tbody>
</tbody>

A6: a
a7: =index($A$1:$A$4,small(if($B$1:$E$4=$A$6,row($B$1:$E$4$)-row($B$1)+1),rows($A$7:A7))) press Cntrl+Shift+Enter, copy down


Thank you for your help. But this formula doesn't work. Excel tells me that there are too many errors.
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,590
Members
449,039
Latest member
Arbind kumar

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