Can you please help me produce 200 as the answer for total of all deposits received for the month of January regardless of year? A received deposit being one that is true as in the example.
Can you please help me produce 200 as the answer for total of all deposits received for the month of January regardless of year? A received deposit being one that is true as in the example.
Try this:
=SUMPRODUCT((MONTH($B$2:$B$5)=1)*($C$2:$C$5))
You seem to have 3 January dates in your sample workbook.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Thanks for helping Ali. I need the formula to also consider if column A is True. That's why the total should only be 200 and not 300.
That wasn't clear in your opening post.
This, then:
=SUMPRODUCT((MONTH($B$2:$B$5)=1)*($A$2:$A$5="TRUE")*($C$2:$C$5))
That only produces 0 for me...
oh, I got it! I changed ="TRUE" to >""
Thank you Ali!
Look:
Excel 2016 (Windows) 32 bit
A B C 1Received Date Amount 2True 05/01/2019 100 3 08/01/2019 100 4 05/02/2020 100 5True 08/01/2020 100 6 7received in January 200
Sheet: Hoja1
Excel 2016 (Windows) 32 bit
C 7 =SUMPRODUCT((MONTH($B$2:$B$5)=1)*($A$2:$A$5="TRUE")*($C$2:$C$5))
Sheet: Hoja1
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks