Jack
Member
Hi everyone, I have a problem with using SUMPRODUCT and a range of time data (hours) from a report dumped out of our system as CSV, copied into my workbook.
My formula is:
=SUMPRODUCT((ApptAnalysis!A$13:A$1000>=B5)*(ApptAnalysis!A$13:A$1000<B6)*(ApptAnalysis!B$13:B$1000=KPIs!B$3)*(ApptAnalysis!I$13:I$1000))
B5 is the 1st of a month
B6 is the 1st of the next month
B3 is a dentist name code
I13:I1000 is hours for each dentist in a given month.
A cell in this I13:I1000 range looks like 93:00:00 but in the edit line it looks like this 3/01/1900 9:00:00 PM. If you remove the formatting it is a value of 3.88 which is days. 3.88 x 24 = 93.
My formula is:
=SUMPRODUCT((ApptAnalysis!A$13:A$1000>=B5)*(ApptAnalysis!A$13:A$1000<B6)*(ApptAnalysis!B$13:B$1000=KPIs!B$3)*(ApptAnalysis!I$13:I$1000))
This formula works with other ranges in this data like dollars or numbers of patients but won't work on this time range I13:I1000.
I have tried removing the formatting, still doesn't work. At first I thought the data might be text but I have tested the number with a VBA UDF and it confirms the cells are values. I can add to them for instance so I think they are definitely values. I have googled a lot on this and not finding a problem SUMPRODUCT has with time as I guess it's just a number right?
Any ideas?
Thanks everyone
John
My formula is:
=SUMPRODUCT((ApptAnalysis!A$13:A$1000>=B5)*(ApptAnalysis!A$13:A$1000<B6)*(ApptAnalysis!B$13:B$1000=KPIs!B$3)*(ApptAnalysis!I$13:I$1000))
B5 is the 1st of a month
B6 is the 1st of the next month
B3 is a dentist name code
I13:I1000 is hours for each dentist in a given month.
A cell in this I13:I1000 range looks like 93:00:00 but in the edit line it looks like this 3/01/1900 9:00:00 PM. If you remove the formatting it is a value of 3.88 which is days. 3.88 x 24 = 93.
My formula is:
=SUMPRODUCT((ApptAnalysis!A$13:A$1000>=B5)*(ApptAnalysis!A$13:A$1000<B6)*(ApptAnalysis!B$13:B$1000=KPIs!B$3)*(ApptAnalysis!I$13:I$1000))
This formula works with other ranges in this data like dollars or numbers of patients but won't work on this time range I13:I1000.
I have tried removing the formatting, still doesn't work. At first I thought the data might be text but I have tested the number with a VBA UDF and it confirms the cells are values. I can add to them for instance so I think they are definitely values. I have googled a lot on this and not finding a problem SUMPRODUCT has with time as I guess it's just a number right?
Any ideas?
Thanks everyone
John