Formula Help... Needed

jamesmev

Board Regular
Joined
Apr 9, 2015
Messages
233
Office Version
  1. 365
Platform
  1. Windows
I am currently working with a list of 20K plus names. Each name has a "supervisor name" associated with it.

However, I am trying to utilize this formula to show all people under specific supervisors when one is listed.

=IFERROR(INDEX($C$2:$C$20520,SMALL(IF($V$2=$I$2:$I$20520,ROW($I$2:$I20520)-ROW($I$2)+1),ROW(1:1))),"")

This is only pulling the first name within the list that is associated - when in fact there are over 10 throughout the entirety of the list.

Example:

Supervisor:
John Smith (V2)

Direct Reports
Bob
Mary
Sarah
Paul
Jack
Jill
Ralph
Mike

My formula would be only pulling BOB
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
It might be the way you copied and pasted the formula, but it looks like you need to use crtl+shift+enter to make it an array formula and then drag it down so that it will fill in remaining cells.
 
Upvote 0
It's missing a $ and also i suggest a small change to make the formula more robust (in blue).

=IFERROR(INDEX($C$2:$C$20520,SMALL(IF($V$2=$I$2:$I$20520,ROW($I$2:$I$20520)-ROW($I$2)+1),ROWS(A$1:A1))),"")
Ctrl+Shift+Enter

M.
 
Upvote 0
Thank you for the replies. I did have the Ctrl shift enter.... But the above did work. Thank you all so much.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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