View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Return highest number or a blank if 0

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



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


--

Dave Peterson