sumproduct returns #value!

spig

New Member
Joined
Feb 29, 2008
Messages
17
I have the following formula:

=SUMPRODUCT(--(C$1:CW$1-DAY(C$1:CW$1)+1=$DD$9),C10:CW10)

If it reads from an empty cell, it works fine but it is reading from a cell which itself contains an if formula and therefore returns #VALUE! which i don't want. I want it to return a 0 or the actual number but not a #VALUE!

How do I alter this formula to avoid #VALUE! being returned?

Can anyone help me please - I can copy spreadsheet details if necessary.

Thanks
 
Hi,

I changed all formulas to read 0 instead of "" but it now shows dates as 00-Jan-00 - how do I get rid of that so cells are clear? In excel 2003, you could go to tools and options and remove zero's. I am working on excel 2007. However, it did resolve the #VALUE! issue so thanks for that

Regards

David
To suppress the display of 0 values in Excel 2007...

Office button
Excel Options
Advanced
Scroll down to the section: Display Options For This Worksheet
Uncheck: Show a zero in cells that have a zero value
OK out
 
Upvote 0

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,224,621
Messages
6,179,937
Members
452,949
Latest member
beartooth91

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