Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# SUM the Amount based on Each Month for each year

Posted on 2016-08-27
Medium Priority
43 Views
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
Question by:Naresh Patel
[X]
###### 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
• 2

LVL 23

Assisted Solution

yo_bee earned 600 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 32

Accepted Solution

Subodh Tiwari (Neeraj) earned 1400 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))
``````
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

ID: 41773062
Thanks it is working for me.
0

LVL 32

Expert Comment

ID: 41773064
0

## Featured Post

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calculâ€¦
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
###### Suggested Courses
Course of the Month5 days, 15 hours left to enroll