D
David Lipetz
Folks,
I regularly use a SUMPRODUCT formula to derive totals from a large array of
transactional data. If I am looking to calculate the sales total for a
specific month, I generally use the following formula:
=SUMPRODUCT(--(YEAR(A1)=YEAR(InvDate),--(MONTH(A1)=MONTH(InvDate),(Total))
where:
A1 references the date that I want to evaluate
InvDate = named range of transactional data - date column
Total = named range of transactional data - invoice total column
If just use DATE rather than YEAR and MONTH, Excel only totals transactions
for the single day. If I just want the month and year without regard to day,
is there a more efficient way of doing it than the above?
Thanks,
David
I regularly use a SUMPRODUCT formula to derive totals from a large array of
transactional data. If I am looking to calculate the sales total for a
specific month, I generally use the following formula:
=SUMPRODUCT(--(YEAR(A1)=YEAR(InvDate),--(MONTH(A1)=MONTH(InvDate),(Total))
where:
A1 references the date that I want to evaluate
InvDate = named range of transactional data - date column
Total = named range of transactional data - invoice total column
If just use DATE rather than YEAR and MONTH, Excel only totals transactions
for the single day. If I just want the month and year without regard to day,
is there a more efficient way of doing it than the above?
Thanks,
David