How can I ignore an #N/A value in a =SUM() formula?

J

JD

I have a range of cells that I need to total. Problem is many of these cells
currently contain formulas that have an #N/A value in them because they are
included in a graph and I don't want to plot them until monthly data is
entered during the year.
How can I total the cells that have a numerical value and ignore those that
still have an #N/A ?
 
R

Ron Rosenfeld

I have a range of cells that I need to total. Problem is many of these cells
currently contain formulas that have an #N/A value in them because they are
included in a graph and I don't want to plot them until monthly data is
entered during the year.
How can I total the cells that have a numerical value and ignore those that
still have an #N/A ?

The **array** formula:

=SUM(IF(ISNUMBER(rng),rng))

To enter an **array** formula, hold down <ctrl><shift> while hitting <enter>.
Excel will place braces {...} around the formula

--ron
 
J

JE McGimpsey

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=SUM(IF(ISNUMBER(rng),rng))
 
Top