Excel : How to do

Eric Saccoia
Eric Saccoia used Ask the Experts™
on
Here is what I am trying to achieve,

In sheet 1 column C  have value which are month and year (Jan-2015), now in adjacent  column D I have a value in $ (15000,00).

In sheet 2 I Need A1 to give me the sum of all value in column D with the adjacent value being (Jan-2015) and so on.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015
Commented:
You don't need a formula to get that summary. A pivot table can automatically create such summary for you.

Insert a Pivot Table, drag the Month and Year Field into the Row Area and drag the Value into the Values Area, and you will have instant summary one like you want to have.

If you don't know how to insert a Pivot Table, just read about it and if unable to insert it own, please upload a small sample workbook, I can help you in creating such summary.

Author

Commented:
Much easier than anticipated, Thanks a lot I didn't know about pivot table but it worked like a charm. A+
Subodh Tiwari (Neeraj)Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015

Commented:
As far as the formula is concerned, you may use SUMIF for that purpose.

On Sheet2, list all your unique months in col. A starting from A2, where A1 being the header Month.
In B1, input Total.

Now in B2 use the SUMIF formula like this.....

=SUMIF(Sheet1!<your month range in sheet1 e.g. C2:C100>,A2,Sheet1!<your value range on Sheet1, say D2:D100)

Remember to make both the referenced range symmetrical in size.
Subodh Tiwari (Neeraj)Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015

Commented:
You're welcome Eric!
Glad you found the solution helpful. :)
Subodh Tiwari (Neeraj)Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015

Commented:
A Tip:

Convert your data on Sheet1 into a Excel Table by selecting a cell inside the data set and press Ctrl+T and that will convert your data set to an excel table.
Now insert your pivot table based on your table. The advantage of this is, whenever you add new data on Sheet1, just go to Sheet2 where you have inserted the pivot table, right click inside the pivot table and select Refresh, and your pivot table will reflect the new data which you added on Sheet1.

Helpful?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial