testing cells in a row

T

thomas donino

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
 
J

JLGWhiz

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

thomas donino

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

Dana DeLouis

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
 

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

Top