2 condition formula

StellaArtois

New Member
Joined
Jan 10, 2024
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hello,

could i please ask for a bit of guidance

i have teh following formula that index a search based on criteria in Z2 and AA2
thing is it only returns what is in Z2

think it may be the + inbetween the formula

=IFERROR(INDEX($C$5:$C$4004,SMALL(IF((($F$5:$F$4004=$Z$2)+($M$5:$M$4004=$AA$2)),ROW($C$5:$C$4004)-ROW($C$5)+1),ROWS($4:4))),"")

Any help appreciated thanks
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
how about this one, it gives results when either the first condition is true OR the second one. In your question you talk about "AND". In that case you need "*" instead of "+"

Excel Formula:
=FILTER(C5:C4004,(F5:F4004=Z2)+(M5:M4004=AA2))
 
Upvote 0
Thanks for the quick reply

It returns #SPILL ?

the * solves the issue

Thanks again!
 
Upvote 0
You have to clear all data below that formula, it gives you one array of output. Give it a try
 
Upvote 0

Forum statistics

Threads
1,221,526
Messages
6,160,340
Members
451,637
Latest member
hvp2262

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