Replacing #VALUE!

lukerees83

Board Regular
Joined
Mar 28, 2011
Messages
59
I'm using the following formula in one of my workbooks to sum across all sheets:

=SUM(MONDAY:SUNDAY!AA15)

If one of the AA15 cells in the 7 sheets Mon-Sun contains #VALUE! then the above formula will return #VALUE! irrespective of the other cells which contain actual numbers. So I want to sum up those cells that contain real values and have the formula disregard any cells containing #VALUE!

Any thoughts on what my new formula sohlud read?

Cheers.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try

=SUM(IF(ISERROR(MONDAY:SUNDAY!AA15),0,MONDAY:SUNDAY!AA15))

confirmed with CTRL + Shift + Enter.
 
Upvote 0
In the first week I tried this it has not worked properly. Over the seven days the values that the formula should be adding up are 2 x 0, 3 x #VALUE! and one cell that contains a 2, so the result should of course be 2.

The returns a value of 0 however.
 
Upvote 0
You would be best served adjusting your precedent cells to handle the error and return an appropriate non-error value (eg 0 or Null String - latter better if you wish to Average etc)

If you wish to leave as is then below would be a one option:

Code:
=SUMPRODUCT(SUMIF(INDIRECT(TEXT(ROW($1:$7),"ddd")&"!AA15"),"<>#VALUE!"))
confirmed with Enter

The reference to AA15 can be made to be dynamic as necessary. Worth bearing in mind that the above is Volatile given use of INDIRECT.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,763
Members
452,940
Latest member
rootytrip

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