SUM when NA errors

scotball

Active Member
Joined
Oct 23, 2008
Messages
375
OK so I am trying to sum a row but there are NA() errors.

How do I get around this error so that I can sum my row please?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,426
Office Version
  1. 2019
=IF(NOT(ISERROR(formula)),formula,"")

where formula is your SUM formula

though you should really fix the original calculations/data that are causing the #N/A
 
Upvote 0

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try like this

=SUM(IF(ISERROR(A1:D1),0,A1:D1))

Confirmed with CTRL + Shift + Enter.
 
Upvote 0

scotball

Active Member
Joined
Oct 23, 2008
Messages
375
I am referencing numbers on another tab (all non-negative) where the NA has been added to allow trend graphs to look correct ie dont jump to 0 at the next blank month (more for line charts)...
 
Upvote 0

Forum statistics

Threads
1,191,025
Messages
5,984,201
Members
439,877
Latest member
kellylet

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top