Small function help for 2 criteria

USCguy09

New Member
Joined
Mar 31, 2011
Messages
28
I'm trying to pull the smallest value (besides 0) from array B1:B10 in relation to array A1:A10 but the value must NOT include data from USA and JAPAN.

So basically, looking at the photo below, I want the smallest value from
the data points B3,B4,B5,B8,B9,B10. The smallest value should be 3.

The equation would go into say cell E1. I figured out how to find the small for a specific criteria but not for excluding two criteria. Any help would be appreciated.


1-41.png
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hello, Welcome to MrExcel.

Try this Array Formula,

=MIN(IF(A1:A10<>"USA",IF(A1:A10<>"JAPAN",IF(1-(B1:B10=0),B1:B10))))
 
Upvote 0
I guess if you wanted to use the SMALL formula, you could do this:
{=SMALL(IF(A1:A6<>"USA",IF(A1:A6<>"JAPAN",B1:B6)),1)}
 
Upvote 0
I'm trying to pull the smallest value (besides 0) from array B1:B10 in relation to array A1:A10 but the value must NOT include data from USA and JAPAN.

So basically, looking at the photo below, I want the smallest value from
the data points B3,B4,B5,B8,B9,B10. The smallest value should be 3.

The equation would go into say cell E1. I figured out how to find the small for a specific criteria but not for excluding two criteria. Any help would be appreciated.


1-41.png
Here's another one...

Use cells to hold the criteria:
  • D1 = USA
  • E1 = JAPAN
I'm assuming there won't be any negative numbers as is shown in your sample data.

Array entered**:

=MIN(IF(ISNA(MATCH(A1:A10,D1:E1,0)),IF(B1:B10>0,B1:B10)))

** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,879
Members
452,948
Latest member
Dupuhini

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