Curly Brackets MULTIPLE criteria

rplim2016

Board Regular
Joined
Jun 28, 2016
Messages
76
Hi Mr. Excel users,

I have a simple problem that I can't solve.

{=SMALL(IF(AND(R:R=1,Q:Q=O6),P:P),20)}

Above formula is not working

Columns:
R - Cell value = 1 is only considered to be included
Q - Cell value = "April" will only considered to be included

But it isn't working, I don't know if the formula AND is working in Curly brackets. Please help.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
You're welcome.

Remarks:
1 - it's usually more efficient if in the formulas you don't use whole columns. You can use instead some row range, like rows 1:1000
2 - an alternative syntax for this formula would be:

=SMALL(IF((R:R=1)*(Q:Q=O6),P:P),20)

or, for rows 1:10000

=SMALL(IF((R1:R10000=1)*(Q1:Q10000=O6),P1:P10000),20)

confirmed with CSE
 
Upvote 0
Hi there,

How about OR?

Below formula runs in AND..
=SMALL(IF((R1:R10000=1)*(Q1:Q10000=O6),P1:P10000),20)

How can I make this to OR function?

Thanks
 
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