Solved

Sum Per Month

Posted on 2016-10-13
7
48 Views
Last Modified: 2016-10-13
Experts,

How can I sum the attached per month?

thank you
screenprintSum-Per-Month.xlsx
0
Comment
Question by:pdvsa
  • 4
  • 2
7 Comments
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 41841757
put this and drag right

=SUMPRODUCT((MONTH($B$3:$KV$3)=MONTH(B$1))*($B$4:$KV$4))

see attached.
Sum-Per-Month.xlsx
0
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 41841765
Hi,

pls try
=SUMPRODUCT(--(DATE(YEAR($B$3:$KV$3),MONTH($B3:$KV$3),1)=B1),$B$4:$KV$4)

Open in new window

Regards
Sum-Per-MonthV1.xlsx
0
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 41841768
correction to my formula above

=SUMPRODUCT((MONTH($B$3:$KV$3)=MONTH(B$1))*((YEAR($B$3:$KV$3)=YEAR(B$1))*($B$4:$KV$4)))
Sum-Per-Month.xlsx
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Closing Comment

by:pdvsa
ID: 41841771
Thank you.  Rgonzo's accounted for the years which is what I was after.  August 2016 and August 2017 were the same answer under Professor's.  I might have not made that so clear though.
0
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 41841773
glad Rgonzo's solution worked for you. i did not notice at first glace your data had multiple years, so i posted a modified formula which is =SUMPRODUCT((MONTH($B$3:$KV$3)=MONTH(B$1))*((YEAR($B$3:$KV$3)=YEAR(B$1))*($B$4:$KV$4))) which works too.
0
 

Author Comment

by:pdvsa
ID: 41842037
Thank you for your follow up.  Much appreciated
0
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 41842244
you are welcome.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question