Question

In Excel, I have the following formula =(MIN(H69,H52,H35,H18)*(1/H18))*10 that is supposed to return the MIN of a range, and divide it by the current cell (*(1/H18) ), then multiply by 10.

I am having difficulty with adding a type of NULLIF statement. I want to be able to have (the possibility for) blank rows, and have the MIN function ignore zero/blank fields while selecting the next lowest value (all are between 1.0-0.1).

Is there a modifier i can apply to the MIN function to make it not compare zeroes in the MIN set? Is there a better function than MIN to use?

Here is the arrangement: alt text

  • Please remember to include the syntax for where the MIN's set goes
  • The reason for the H69,H52,H35,H18 using commas is that these are embedded, individual cells that are arranged for visual presentation as well. Using a range, or colon/semi-colon operators don't appear to work for this purpose (see pic).
  • This is to prevent the following situation: users will need to eliminate fields that are zeros from the form, theres 2 formula edits per entry, averaging 4 entries per use, so 8 possible errors per form use...
Was it helpful?

Solution

You can use an array formula:

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

You will need to hit ctrl+shift+enter to activate this formuala.

OTHER TIPS

You could use

=SMALL(A1:A3,COUNTIF(A1:A3,0)+1)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top