Count wrong

  • Thread starter Thread starter s2m via OfficeKB.com
  • Start date Start date
S

s2m via OfficeKB.com

I am trying to count the number of plan dates (column Z) to Actual Dates
(column AA). H2 is the date cell.

The below formula give me the count of 16 which is right
=SUMPRODUCT(--(TCS!$E$2:$E$1000="GDS"),--(TCS!$Z$2:$Z$1000=H2))

Give me a number of 44 which is not right, it should be 12.
=IF(SUMPRODUCT(--(TCS!$E$2:$E$1000="GDS"),--(TCS!$Z$2:$Z$1000=H2),--(TCS!$AA
$2:$AA$1000<>""))<>0,SUMPRODUCT(--(TCS!$Z$2:$Z$1000=H2),--(TCS!$AA$2:$AA
$1000<>"")),"")

I've been scratching my head for a few hours, not sure what to do.

Thanks again

s2m
 
Check to ensure there is no discrepancy between dates. 1/1/2006 12 AM and
1/1/2006 1 AM formatted just to show the day is a different number.
 
I checked that changed the format and I still get the wrong number. Any
other ideas?


Check to ensure there is no discrepancy between dates. 1/1/2006 12 AM and
1/1/2006 1 AM formatted just to show the day is a different number.
I am trying to count the number of plan dates (column Z) to Actual Dates
(column AA). H2 is the date cell.
[quoted text clipped - 12 lines]
 
The number i get is correct if I don't use --(TCS!$F$2:$F$1000="GDS". Is it
possible to have to many condtions? Does the order of the condtions make a
difference?
Check to ensure there is no discrepancy between dates. 1/1/2006 12 AM and
1/1/2006 1 AM formatted just to show the day is a different number.
I am trying to count the number of plan dates (column Z) to Actual Dates
(column AA). H2 is the date cell.
[quoted text clipped - 12 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top