Formula for picking multiple names and displaying them

stryped

New Member
Joined
Sep 16, 2009
Messages
13
Office Version
  1. 2019
I have a spreadsheet as follows:
Department Shift Name
A-End 1 Fred
B-End 1 Don
B-End 1 Ralph
A-End 2 Jason

I need a formula that will look through the department column for "B-End", the shift column for "1", and provide the names of all the people that match the above criteria. In this case, it should be "Don", and "Ralph".
Can anyone help me?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi Stryped. What version of Excel do you have? You should consider changing your profile to show that. I could offer you a solution that needs Office 365.
 
Upvote 0
=TEXTJOIN(",",TRUE,UNIQUE(FILTER(C1:C4,(A1:A4="B-End")*(B1:B4=1),"")))
 
Upvote 0
I have 2019

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Please try this. Column D has a comma space in each cell

Book5
ABCDEF
1DepartmentShiftName
2A-End1Fred, Don, Ralph,
3B-End1Don,
4B-End1Ralph,
5A-End2Jason
Sheet1
Cell Formulas
RangeFormula
F2F2=CONCAT(IF((A2:A5="B-End")*(B2:B5=1),C2:D5,""))
 
Upvote 0
Another option
Excel Formula:
=TEXTJOIN(",",,IF(A2:A100="B-end",B2:B100,""))
This needs to be confirmed with Ctrl Shift Enter, rather than just Enter.
 
Upvote 0
@Fluff > Column B needs to equal 1, column C are the names. I need to get a list of functions with their respective Excel Version.
 
Upvote 0
Oops, missed that, it should be
Excel Formula:
=TEXTJOIN(",",,IF((A2:A100="B-end")*(B2:B100=1),C2:C100,""))
 
Upvote 0

Forum statistics

Threads
1,215,093
Messages
6,123,066
Members
449,090
Latest member
fragment

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