In addition to my previous post, I have another requirement to add to the formula.
I would like to sum all values based on the "month" as well as the "Part" column (see attached).
In addition to my previous post, I have another requirement to add to the formula.
I would like to sum all values based on the "month" as well as the "Part" column (see attached).
In D2 and copied down:
Formula:Please Login or Register to view this content.
In D8 and copied down:
Formula:Please Login or Register to view this content.
BSB
Your 10 July column header is not 2018 - it's 2002 - so the correct answer is 13. That aside, you are missing a criterion:
=SUMPRODUCT((MONTH(H$1:K$1)=C2)*(YEAR(H$1:K$1)=2018)*(H$2:K$8)*(Table1[Part]=$B$2))
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.
For your sumproduct formula add this as well.... *(Table1[Part]=$B$2). I tried it and giving correct results
Try this
D2=SUMPRODUCT(($G$2:$G$8=$B$2)*($H$2:$K$8)*(MONTH($H$1:$K$1)=C2))
D8=SUMPRODUCT(($G$2:$G$8=$B$8)*($H$2:$K$8)*(MONTH($H$1:$K$1)=C8))
Adding criteria for year if you want.
Last edited by congnt92; 08-29-2018 at 02:44 AM.
Please note that most of the solutions offered have the YEAR criterion missing.
The year criterion was not the reason for the very high value returned - that was due to missing the fourth criterion. The year is, I am convinced, a mistake in the header, which the OP assumes is also 2018 (look at the colour coding we were given for guidance).
You can get out of your box again now.
Very perceptive of you, didn't notice Thanks for the solution, that was indeed simpler then I anticipated. Is my assumption correct in the fact that any additional validation can just be added in the formula?
Within reason, yes.
Are you confirming that I was right about the year? Just want to know so that I can gloat a bit ...
haha, not sure if it was 2002, but i was definitely not 2018. And regarding the other solutions; yes, yours was the best (and easiest ). So gloat away!
Tada! Back of the net ...
Thanks for marking the thread as solved.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks