Help with Max and Min in eqaution

bumfart66

New Member
Joined
Aug 23, 2017
Messages
12
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi

I know this may be a silly question but I'm trying to understand this formula that shows the next highest value that isn't zero


=MIN(IF(A1:A8>0,A1:A8))

HighestLowestLow but not zero
14,188,12601,213,015
1,774,110050,821
25,4040654
229,190037,410
813,3400100,890
297,142046,376
104,446022,894

I get the first part that looks for the lowest value, in this case, zero, we say if the value is greater than zero, it's the next part i don't understand, what part of the formula is saying display the next highest value ?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
I get the first part that looks for the lowest value, in this case, zero,
No, that isn't quite correct.
=MIN(IF(A1:A8>0,A1:A8))
The formula evaluates the blue part first. The result of that blue part is shown in column C below.
The red part then takes the smallest number that is returned by the blue part (2 in my example)

23 11 30.xlsm
ABC
1626
20FALSE
322
40FALSE
577
60FALSE
70FALSE
82222
Example
Cell Formulas
RangeFormula
B1B1=MIN(IF(A1:A8>0,A1:A8))
C1:C8C1=IF(A1:A8>0,A1:A8)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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