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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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,215,945
Messages
6,127,844
Members
449,411
Latest member
adunn_23

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