ehous31900
New Member
- Joined
- Dec 31, 2024
- Messages
- 2
- Office Version
- 365
- 2021
- Platform
- Windows
I am trying to calculate sums off columns based on the year extracted from a Cell (month, day, year) and a cell with text ROUVY.
The application is tracking milage over many years extracting totals per year and extracting rouvy (indoor riding) from outdoor riding.
I have the formula working separately, However, I have not been able to combined them.
The following works:
=SUMPRODUCT((YEAR(B9:B24)=B1)*D9:D24)
=SUMPRODUCT(--(YEAR(B9:B24)=B1),D9:D24)
=SUMIF($A$9:$A10000,"ROU*",$D$9:D10000)
this does not work:
=SUMPRODUCT(IF(YEAR(B9:B24)=B1,1,0),IF(A9:A24="ROU*",1,0),D9:D24)
Thanks, Ed
The application is tracking milage over many years extracting totals per year and extracting rouvy (indoor riding) from outdoor riding.
I have the formula working separately, However, I have not been able to combined them.
The following works:
=SUMPRODUCT((YEAR(B9:B24)=B1)*D9:D24)
=SUMPRODUCT(--(YEAR(B9:B24)=B1),D9:D24)
=SUMIF($A$9:$A10000,"ROU*",$D$9:D10000)
this does not work:
=SUMPRODUCT(IF(YEAR(B9:B24)=B1,1,0),IF(A9:A24="ROU*",1,0),D9:D24)
Thanks, Ed