Need to Show SUM of Multiple Columns Based on Criteria

mfarhankhan87

New Member
Joined
Sep 17, 2021
Messages
2
Office Version
  1. 2019
  2. 2016
  3. 2010
Platform
  1. Windows
Hello Everyone,

I hope everyone is doing great. I need to show sum of multiple columns based on months in the summary sheet under year to date columns (highlighted in light blue).

I have applied the formula for the reporting month, now I want to show the sum of July+August, if August is selected in the reporting month Cell, or, July+August+September if September is selected and so on.

I have tried different formulas but I am unable to get any result on this. Can somebody help me out in developing a formula for this issue?

screenshots are attached for your references.

I would be really thankful.

Best Wishes.

Farhan
 

Attachments

  • Data.PNG
    Data.PNG
    38.3 KB · Views: 18
  • Summary.PNG
    Summary.PNG
    32.5 KB · Views: 17

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Use below concept to calculate total between two date

Book1
ABCDE
1DateValues
21-Aug-21808.00Date To5-Aug-21
32-Aug-2118,770.00Date From10-Aug-21
43-Aug-2134,012.00Answer298,301.00
54-Aug-211,365.00
65-Aug-2191,868.00
76-Aug-2166,720.00
87-Aug-2114,462.00
98-Aug-218,791.00
109-Aug-2198,328.00
1110-Aug-2118,132.00
1211-Aug-2165,731.00
1312-Aug-2139,846.00
1413-Aug-2186,506.00
1514-Aug-2148,209.00
1615-Aug-2168,341.00
1716-Aug-2160,251.00
1817-Aug-2148,844.00
1918-Aug-2165,470.00
2019-Aug-2128,365.00
2120-Aug-2177,293.00
Sheet1
Cell Formulas
RangeFormula
E4E4=SUMIFS($B$2:$B$176,$A$2:$A$176,">="&$E$2,$A$2:$A$176,"<="&$E$3)
 
Upvote 0
Welcome to the MrExcel board!

You will generally get better/faster help if you give us sample data in a form that we can copy from to test. So I suggest that you investigate XL2BB

I have assumed that the dates in row 1 of the Budget(?) sheet and D1 of the Summary sheet are real dates (numbers). Since it appears the main data only starts from July there should be no need to worry about the starting date for the Year to Date calculations.
Anyway, you could give something like this a go to see if it suits what you are trying to do.

mfarhankhan87.xlsm
CDEFGHIJKLMNO
13Mat.CodeJul-21Aug-21Sep-21Oct-21Nov-21Dec-21Jan-22Feb-22Mar-22Apr-22May-22Jun-22
141001167447564589
151002867146452982
161003753734182678
Budget



mfarhankhan87.xlsm
ABCDEF
1Reporting MonthAugust-21
2
3
4YTD
5Budget
6100312
7100214
810017
Summary
Cell Formulas
RangeFormula
F6:F8F6=SUMPRODUCT((Budget!D$13:O$13<=D$1)*(Budget!C$14:C$16=A6),Budget!D$14:O$16)
 
Upvote 0
Solution
Thank you very much Peter, It worked like a charm. Have a great day ahead!
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,996
Messages
6,122,636
Members
449,092
Latest member
bsb1122

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top