Sumproduct and ignoring blank cells

hannahmc8

New Member
Joined
Jun 27, 2011
Messages
17
HI I have the following formulas which do the same thing:
=SUMPRODUCT(--($H$21:$H$22=$C$9),--($C$21:$C$22=$C$11),$K$21:$K$22)

=SUMPRODUCT(--($C$9=$H$21:$H$22),($C$11=$C$21:$C$22)*($K$21:$K$22))

The fields all correspond with cells which have values and it is working perfectly until I increase the column sizes from H22 to H23 and beyond, or C22 to C23..., or K22 to K23...
The cells that are now encompassed have blanks within the range.
How can I get this to work ignoring the blank cell values?

The blank cells have corresponding validation lists attached to them - will that make a difference and how do I remedy if that is the case?
Many thanks
Hannah
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi Andrew,
It is bizarre, it refers a VALUE error reference as soon as any of the columns are extended to include a blank cell. If I use the same formula on a small table with blanks it works but not with my larger version
Hannah
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,448
Members
452,915
Latest member
hannnahheileen

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