Can anyone advise me on how to calculate the monthly sales based on the data given ?
Thx
Can anyone advise me on how to calculate the monthly sales based on the data given ?
Thx
In Monthly sheet, in cell B6 use,and copy down.Formula:Please Login or Register to view this content.
If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.
If your requirement has been solved please mark your thread as Solved.
In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".
Kindly use [FORMULA] or [CODE] tags when posting your code.
Regards,
Sarang
Dear Saarang84,
Is there any simpler function or formula, eg. VLOOKUP to be used in this calculation.
SUMIFS is a relatively simple function, and no more complicated than a VLOOKUP. I suspect it's just that you're not familiar with it. A VLOOKUP would not work in this instance as it only looks up one value and only returns one value. It could be done with a SUMPRODUCT function or an array formula, but they are more complicated, especially to explain.
Please add reputation by clicking on the * if I have helped.
Please mark the thread SOLVED if your issue has been resolved.
Thanks, Glenn.
Saarang84's suggestion is the best formula for this application.
You can shorten it a bit by removing the Monthly sheet name:
=SUMIFS(Data!B:B,Data!A:A,">="&EOMONTH(A6,-1)+1,Data!A:A,"<="&A6)
Here's another way to write it:
=SUMIFS(Data!B:B,Data!A:A,">="&A6-DAY(A6)+1,Data!A:A,"<="&A6)
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks