View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Dana DeLouis Dana DeLouis is offline
external usenet poster
 
Posts: 947
Default testing cells in a row

That is for VB I assume..

Hi. This is in excel.programming. :)

As a worksheet formula, perhaps:

=IF(COUNT(A10:M10)0,SUM(A10:M10),#N/A)

(#N/A to your choice of course)
= = = = = = =
HTH :)
Dana DeLouis

thomas donino wrote:
That is for VB I assume, can I put a formula in cell N10 that works the same
way?

"JLGWhiz" wrote:

If Application.Sum(Range("A10:M10")) "" Then
N10 = Application.Sum(Range("A10:M10"))
End If


"thomas donino" wrote in message
...
I am trying to check whether there are any values in, for example row 10
cells A-M and IF there are any values in ANY of those cells then I will
total
A10:M10 in cell N10. I am having trouble with the IF code for cell N10 to
check the other cells for values