Adding Another Criteria

MARKEGANDERSON

Active Member
Joined
Apr 7, 2007
Messages
267
Hello guys- I am trying to add another criteria to the below:

=IF(ROWS($A$3:A3)>$A$2,"",INDEX(Data!$A$2:$A$110,SMALL(IF(Data!M$2:M$110=Data!$Q$6,IF(Data!C$2:C$110=Data!$Q$8,ROW(Data!$A$2:$A$110)-ROW(Data!$A$2)+1)),ROWS($A$3:A3))))

Would like to add this portion:

IF(Data!M$2:M$110=Data!$Q$11

I tried adding the IF(or but did not work

=IF(ROWS($A$3:A3)>$A$2,"",INDEX(Data!$A$2:$A$110,SMALL(IF(OR(Data!M$2:M$110=Data!$Q$6,Data!M$2:M$110=Data!$Q$11),IF(Data!C$2:C$110=Data!$Q$8,ROW(Data!$A$2:$A$110)-ROW(Data!$A$2)+1)),ROWS($A$3:A3))))
 
Last edited:

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.
How about
=IF(ROWS($A$3:A3)>$A$2,"",INDEX(Data!$A$2:$A$110,SMALL(IF((Data!M$2:M$110=Data!$Q$6)+(Data!M$2:M$110=Data!$Q$11),IF(Data!C$2:C$110=Data!$Q$8,ROW( Data!$A$2:$A$110)-ROW(Data!$A$2)+1)),ROWS($A$3:A3))))
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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