sumproduct using dates and text...

Hoss97

Board Regular
Joined
Feb 2, 2009
Messages
84
The formula below is what I am trying to use to find the number of repairs that are late, based on today's date. Column F is formated as a date and has dates or blanks, column C is formated as general and has text or blanks, and column d is formated as general and has numbers or blanks. The formula as written is returning the #value error, but I can't seem to track what the problem is. I think I'm close, but have a comma, or something in the wrong place. Any help is greatly appreciated.

=SUMPRODUCT(--('Late Orders - Roy''s Report'!$F$3:$F$300<=$B$1),--('Late Orders - Roy''s Report'!$C$3:$C$300="repair"),--('Late Orders - Roy''s Report'!$D$3:$D$300))
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Are there pre existing value errors in any of the 3 referenced ranges ?
That will cause sumproduct to return the same error...
 
Upvote 0
=IF(ISNA(VLOOKUP($A91,'Import List Here'!$A:$P,14,0)),"",VLOOKUP($A91,'Import List Here'!$A:$P,14,0))

This is the formula that I have in the F range. I changed the sumproduct formula to this:

=SUMPRODUCT(--('Late Orders - Roy''s Report'!$F$3:$F$90<=$B$1),--('Late Orders - Roy''s Report'!$C$3:$C$90="repair"),--('Late Orders - Roy''s Report'!$D$3:$D$90))

This formula works and returns the correct value. Thank you for catching this.

After row 90 the rows are blank, but contain the first formula listed. My problem is, today, data fills 90 rows, tomorrow there may be data in 105 rows, next week, data may be in 200 rows. I'd like to have a formula that will work, no matter how many rows in the range have data. Is this possible?
 
Upvote 0
After closer examination, I see the problem...
It doesn't matter if there are blanks or even formula blanks in the range...

=SUMPRODUCT(--('Late Orders - Roy''s Report'!$F$3:$F$90<=$B$1),--('Late Orders - Roy''s Report'!$C$3:$C$90="repair"),--('Late Orders - Roy''s Report'!$D$3:$D$90))

You only need to use the --(..) when applying a criteria expression to the range..
You don't do that on the range to sum...

Try just

=SUMPRODUCT(--('Late Orders - Roy''s Report'!$F$3:$F$300<=$B$1),--('Late Orders - Roy''s Report'!$C$3:$C$300="repair"),'Late Orders - Roy''s Report'!$D$3:$D$300)


Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,293
Members
452,902
Latest member
Knuddeluff

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