Return highest number or a blank if 0

  • Thread starter Thread starter Toney
  • Start date Start date
T

Toney

Hi all

I have three cells D2, E2 and F2 that may or may not have a number. I'd like
to have the highest number from these cells returned to C2. If D2, E2 and F2
are blank, I'd like a blank in C2.

Using MAX(D2:F2) returns a zero to C2 if these cells are empty.

Thanks in advance for any help

Toney
 
=if(count(d2:f2)=0,"",max(d2:f2))


Hi all

I have three cells D2, E2 and F2 that may or may not have a number. I'd like
to have the highest number from these cells returned to C2. If D2, E2 and F2
are blank, I'd like a blank in C2.

Using MAX(D2:F2) returns a zero to C2 if these cells are empty.

Thanks in advance for any help

Toney
 
John, Dave and T,

Thanks for the quick reply. All the suggested formulas appear to work
perfectly.

Thanks again

Toney
 
Another using an array formula that must be entered using ctrl+shift+enter
=MAX(IF(D2:f2>0,D2:f2))
 
Yes, but remember that some of the formulae suggested will ignore an entered
value of zero, and others won't. Decide which you want.
 

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