IF Statement with nested ISERROR help needed

dgmcdo

New Member
Joined
Jan 20, 2006
Messages
9
I inherited a spreadsheet template we use from a colleague recently that looks at large amounts of client information to determine correct billings. I just recently noticed this error.

+IF(ISERROR(CM15+CR15+CW15+<b>DB15</b>),0,CM15+CR15+CW15+DB15)+<b>CC15</b>

The problem is that if the formula column DB15 returns an #N/A value it returns the value from column CC15 even if there are values in columns CM, CR and CW. The intent of the formula is to return the sum of columns CM, CR, CW and CC; the columns with values.

Is there a simple way to rewrite this so that it will only return a 0 for the error field and sum the rest or will I have to write an IF with a nested ISError for each column (CM, CR, CW and DB).

Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Ideally, correct the error at the source with an IF(ISERROR( statement, instead of further down the line. This will eliminate potential issues in future calculations, as well as eliminate the need for complicated formulas (such as this).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,254
Members
452,900
Latest member
LisaGo

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
Back
Top