View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
John C[_2_] John C[_2_] is offline
external usenet poster
 
Posts: 1,358
Default Return highest number or a blank if 0

=IF(MAX(D2:F2)=0,"",MAX(D2:F2))
--
John C


"Toney" wrote:

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