Ignoring "NA" for min/max

emutuc

New Member
Joined
Dec 19, 2022
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Greetings to all on Mr. Excel,

I'm seeking your help on a formula where I want to find the minimum of an array of numbers, from 3 different columns, while ignoring all "NA".
May I have your suggestions?

Thank you for your time and willingness
 
That ignores negative numbers as well as zero but in any case the single function formula ..
=AGGREGATE(15,6,A1:H1/(A1:H1>0),1)
.. would do the same job as that.

Both of the above formulas would rely on the cells between the yellow ones (which we know nothing about) not containing numbers, hence the structure of my previous suggestion.

22 12 24.xlsm
ABCDEFGHIJKL
110a#N/A053d053
Min
Cell Formulas
RangeFormula
C1C1=NA()
K1K1=LET(r,INDEX(A1:H1,{1,3,5,8}),AGGREGATE(15,6,r/(r<>0),1))
L1L1=MIN(IF(IFERROR(A1:H1,0)>0,IFERROR(A1:H1,0)))
Press CTRL+SHIFT+ENTER to enter array formulas.
Thank you, this solves it. I like this one, not as complicated
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
You're welcome. Thanks for the confirmation.



Here is one way but it would not be applicable if your cells are actually on different sheets as indicated in post #2.
Trying to find the minimum of the yellow cells, ignoring error values and zero.

22 12 24.xlsm
ABCDEFGHIJK
110#N/A505
Min
Cell Formulas
RangeFormula
C1C1=NA()
K1K1=LET(r,INDEX(A1:H1,{1,3,5,8}),AGGREGATE(15,6,r/(r<>0),1))
Thank you Peter_SSs
 
Upvote 0

Forum statistics

Threads
1,215,873
Messages
6,127,470
Members
449,384
Latest member
purevega

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