I posted a question on here about an hour ago and was informed that a string always equates higher than a number in excel.
I tried it out. Cancel date is a range where, if a person has cancelled the date is present, else a "-" exists. So to count the number of people who have not cancelled on a specific date, here's a formula I just tried:
=COUNTIFS(HasPaymentInfo,"Yes",CancelDate,">"&Summary!H10) //so include everyone that has payment info="Yes" and where cancel date is either "-" or greater than the date in H10
I used this to replace the existing formula:
=COUNTIFS(HasPaymentInfo,"Yes",CancelDate,"-")-COUNTIFS(CancelDate,">"&Summary!H10) // Should do the same thing but the "new" way I learned above today requires less writing
I'd expected to see the same results. Not so. The original formula produces a count of many thousands while the new formula produces a count less than a hundred.
Just to add, 2 mins after posting I discovered this:
=SUMPRODUCT((HasPaymentInfo="Yes")*(CancelDate>Summary!H10)) // Should also produce the same but produces another number all together! It's closer to the number in the original formula but out by a hundred or so. Still, they should exact match.
Why?
I tried it out. Cancel date is a range where, if a person has cancelled the date is present, else a "-" exists. So to count the number of people who have not cancelled on a specific date, here's a formula I just tried:
=COUNTIFS(HasPaymentInfo,"Yes",CancelDate,">"&Summary!H10) //so include everyone that has payment info="Yes" and where cancel date is either "-" or greater than the date in H10
I used this to replace the existing formula:
=COUNTIFS(HasPaymentInfo,"Yes",CancelDate,"-")-COUNTIFS(CancelDate,">"&Summary!H10) // Should do the same thing but the "new" way I learned above today requires less writing
I'd expected to see the same results. Not so. The original formula produces a count of many thousands while the new formula produces a count less than a hundred.
Just to add, 2 mins after posting I discovered this:
=SUMPRODUCT((HasPaymentInfo="Yes")*(CancelDate>Summary!H10)) // Should also produce the same but produces another number all together! It's closer to the number in the original formula but out by a hundred or so. Still, they should exact match.
Why?
Last edited: