lowest number in row excluding empty cells

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I am trying to return the minimum value in a range J2:AJ2 whilst ignoring
empty cells. How do I do it?
 
Mark said:
I am trying to return the minimum value in a range J2:AJ2 whilst ignoring
empty cells. How do I do it?

Perhaps you had earlier tried: =MIN(J2:AJ2)
and you got zero, which is not what you want?
(MIN ignores empty cells, but those "empty" cells may actually contain
masked zero values)

If so, you could try this, array-entered,
ie press CTRL+SHIFT+ENTER to confirm the formula:
=MIN(IF(J2:AJ2>0,J2:AJ2))

---
 
Non-array alternative:

=SMALL(J2:AJ2,COUNTIF(J2:AJ2,0)+1)

--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

Mark said:
I am trying to return the minimum value in a range J2:AJ2 whilst ignoring
empty cells. How do I do it?

Perhaps you had earlier tried: =MIN(J2:AJ2)
and you got zero, which is not what you want?
(MIN ignores empty cells, but those "empty" cells may actually contain
masked zero values)

If so, you could try this, array-entered,
ie press CTRL+SHIFT+ENTER to confirm the formula:
=MIN(IF(J2:AJ2>0,J2:AJ2))

---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top