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

G

Guest

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))
 

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