I need an array formula to extract values in the first column if 2 criteria are met

Banahaw2509

New Member
Joined
Dec 18, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Perhaps someone here could help me. I've been looking for an array formula that will extract all the names in Column A if 2 criteria are met, one being the Day in a Week listed in the Header, cells B1:H1, and two being the Status in cells B2:H7. If I use WED and Absent as my 2 criteria, the array formula should extract Paul, James and Luke. I really am not so good at this but I think that the array formula will contain the below. Thanks!
index($A$1:$A$7
($B$1:$H$1=$J$1)
($B$2:$H$7=$J$2)
1734540713265.png
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Here's one way:

ABCDEFGHIJK
1SUNMONTUEWEDTHUFRISATWEDPaul
2JohnAbsentAbsentJames
3PeterAbsentLuke
4PaulAbsent
5JamesAbsentAbsent
6LukeAbsent
7SebastianAbsent
Sheet1
Cell Formulas
RangeFormula
K1:K3K1=FILTER(A2:A7,XLOOKUP(J1,B1:H1,B2:H7)=J2,"n/a")
Dynamic array formulas.
 
Upvote 0
Stephen, thank you for your response. My faith in humanity is restored! There are some nice and wonderful people out there, and you are one of them! Thank you for solving this for me, Thank You!
 
Upvote 0

Forum statistics

Threads
1,224,759
Messages
6,180,813
Members
452,996
Latest member
nelsonsix66

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