Make a list with formula based on criteria

Stuepef

Board Regular
Joined
Oct 23, 2017
Messages
128
Office Version
  1. 2021
Platform
  1. Windows
I have a list of employees in a spreadsheet where I record if they paid their dues or not. I am looking for a formula solution to generate a list of employees that have paid. I understand this can easily be achieved by filtering, but in this particular case, I want to use a formula.

Employee NamePaid due?
Bobby JonesNo
Richard GreenYes
Frank JamesNo
Michelle CoolidgeNo
Allie GraymanYes
Laura FinchYes
Steve HellerNo
Jason RichieNo
Patty JonesYes
Bill MusgraveYes
Cameron FullerYes
Graham YolandNo
Katie TegerineNo

<tbody>
</tbody>

Desired result:

Richard Green
Allie Grayman
Laura Finch
Patty Jones
Bill Musgrave
Cameron Fuller

<tbody>
</tbody>


Thank you!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Try


A
B
C
D
E
1
Employee Name​
Paid due?​
Criteria​
List​
2
Bobby Jones​
No​
Yes​
Richard Green​
3
Richard Green​
Yes​
Allie Grayman​
4
Frank James​
No​
Laura Finch​
5
Michelle Coolidge​
No​
Patty Jones​
6
Allie Grayman​
Yes​
Bill Musgrave​
7
Laura Finch​
Yes​
Cameron Fuller​
8
Steve Heller​
No​
9
Jason Richie​
No​
10
Patty Jones​
Yes​
11
Bill Musgrave​
Yes​
12
Cameron Fuller​
Yes​
13
Graham Yoland​
No​
14
Katie Tegerine​
No​
15

<tbody>
</tbody>


Array formula in E2 copied down
=IFERROR(INDEX(A:A,SMALL(IF(B$2:B$14=D$2,ROW(B$2:B$14)),ROWS(E$2:E2))),"")
confirmed with Ctrl+Shift+Enter, not just Enter

M.
 
Upvote 0
Thank you for the reply, is there a way to update the INDEX(A:A part of the formula to a more defined range? For instance, A2:A14?
 
Upvote 0
Thank you for the reply, is there a way to update the INDEX(A:A part of the formula to a more defined range? For instance, A2:A14?

Try

E2 copied down
=IFERROR(INDEX(A$2:A$14,SMALL(IF(B$2:B$14=D$2,ROW(B$2:B$14)-ROW(B$2)+1),ROWS(E$2:E2))),"")
confirmed with Ctrl+Shift+Enter, not just Enter

M.
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,666
Members
449,114
Latest member
aides

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