Adding Another Criteria

MARKEGANDERSON

Active Member
Joined
Apr 7, 2007
Messages
264
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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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