BamLindsay
New Member
- Joined
- Jan 16, 2024
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
Hello,
Hoping someone can help me with a sumproduct formula that is not giving me the right answer please. I have a P&L with month in the column and GL code in the row and I am trying to create a formula that will add all the columns less than or equal to a given date input so that I can calculate the year to date number depending on month input.
The formula seems to work on most of the rows but not for all of them (see above). The formula I am using is =SUMPRODUCT(($AF$14:$MX$179)*($B$14:$B$179=$B45)*($AF$7:$MX$7<=$OD$5)). I can't figure out why for this row it does not seem to add up to the correct value. Any help is much appreciated.
Thanks!
Hoping someone can help me with a sumproduct formula that is not giving me the right answer please. I have a P&L with month in the column and GL code in the row and I am trying to create a formula that will add all the columns less than or equal to a given date input so that I can calculate the year to date number depending on month input.
The formula seems to work on most of the rows but not for all of them (see above). The formula I am using is =SUMPRODUCT(($AF$14:$MX$179)*($B$14:$B$179=$B45)*($AF$7:$MX$7<=$OD$5)). I can't figure out why for this row it does not seem to add up to the correct value. Any help is much appreciated.
Thanks!