SMALL IF OR basic question

svendiamond

Well-known Member
Joined
Jun 13, 2014
Messages
1,504
Office Version
  1. 365
Platform
  1. Windows
=SMALL(IF(X_LANE=D2,X_TIME),1)

CTRL+SHIFT+ENTER

Is working fine for me, returning the smallest value in my array "X_TIME" when "X_LANE" equals D2. However, I want to try this:

=SMALL(IF(OR(X_LANE=D2,X_LANE=C2),X_TIME),1)

But excel is returning the smallest value in my array "X_TIME" regardless of my conditions. Can anyone help me come up with a formula to find the smallest value in an array when either one of my two conditions are true?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
The best approach to OR in array-form is IsNumber\Match, not an equality test...

Could you kindly justify the reasons for your statement for the benefit of all those who may come across this post?

In general, you may be correct, though that does not mean that alternative set-ups should not also be considered. On the contrary, some of these may actually prove to be "better" in certain situations, one of which perhaps being that discussed here.

Regards
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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