Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

SUM the Amount based on Each Month for each year

Posted on 2016-08-27
4
37 Views
Last Modified: 2016-08-27
Hi Experts,

Will any one provide me a formula which can calculate amount based on every month for particular year.i have dates in column N for the year from 2012 to 2016 and amount in column O...is there any formula like drop down and populate months like 1 jan 2012 - 1 fab 2012...........1 dec 2012 - 1 jan 2013 - 1 feb 2013----------1dec2013 - 1jan2014---------------------------1jan2016------1aug2016 in column Q and total amount for that months in column R.

See Attached
EE-Ledger-Return.xlsm
0
Comment
Question by:itjockey
  • 2
4 Comments
 
LVL 22

Assisted Solution

by:yo_bee
yo_bee earned 150 total points
ID: 41773048
I would recommend a pivot table for what you are looking to accomplish.  

Select the entire range including the header names and click insert > pivot table.

From there a new worksheet will be created.
Once created you can create a group of dates by month and year.

To do this add the date column to your row or column.
Once added you will see all your dates. Right click on any one of date > group and select month and year.

At this point you and pivot the groupings by month and year.
0
 
LVL 30

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 350 total points
ID: 41773058
Assuming date is Q2, then try this....

In R2
=SUMIFS($O$2:$O$169,$N$2:$N$169,">="&Q2,$N$2:$N$169,"<="&EOMONTH(Q2,0))

Open in new window

and copy down.

Refer to the attached for details. You will also find a tab called Pivot visualizing the same output in the form of Pivot Table.
EE-Ledger-Return.xlsm
0
 
LVL 8

Author Closing Comment

by:itjockey
ID: 41773062
Thanks it is working for me.
0
 
LVL 30

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41773064
You're welcome. Glad to help.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
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…

809 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