Formula not working

Morfi

Board Regular
Joined
Jun 16, 2009
Messages
97
I am using the following formula in my spreadsheet to count the number of letters issued over a period of time that met a deadline:

=SUMPRODUCT((('Apr-Jun'!$M$2:$M$20>=$C$11)*( 'Apr-Jun'!$M$2:$M$20<=$C$12)),--('Apr-Jun'!$S$2:$S$20="Y"))

M = Date letter issued
C11 = Start Date
C12 = End date
S = Deadline met?

The formula above works fine but when I change the number range of cells in column M and S from 20 to 2000, the formula comes up with #VALUE. Can anyone tell me why that is and what I can do to fix it please?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Do you have any #VALUE errors in Apr-Jun'!$M$21:$M$2000 ?
Or in Apr-Jun'!$S$21:$S$2000 ?

Make sure all the ranges in the formula refer to the same rows. If one range is off, you will get a #VALUE error e.g
=SUMPRODUCT((('Apr-Jun'!$M$2:$M$2000>=$C$11)*( 'Apr-Jun'!$M$2:$M$2000<=$C$12)),--('Apr-Jun'!$S$2:$S$200="Y"))
 
Last edited:
Upvote 0
I had a #Value error in one of my columns that I hadn't noticed. That's it working now. Thanks for that!
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

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