Sumifs or another sum formula

sachavez

Active Member
Joined
May 22, 2009
Messages
469
Hello,

I'm stuck on writing a sumifs formula that will look at Year, Name, Dest, and Months from sum range "HVD".

I'm using names ranges:

Year = Event year
Name = Customer Name
Dest = Destination
HVD = sum range

Example, if I keyed in on Year 2022, Dest "DAYBLUFF", Month "Jan", Name "AGT SETBACK", result would = 199

YearNameORIG_333Orig StDestDest StSMRY_EQP_TYPJanFebMarAprMayJunJulAugSepOctNovDec
2022​
AGT SETBACKBIRMINGHAALBIRMINGHAALBVL
50​
0​
0​
0​
0​
0​
0​
0​
0​
0​
1​
0​
2022​
AGT SETBACKBIRMINGHAALDAYBLUFFMNBVL
110​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
10​
2022​
AGT SETBACKBIRMINGHAALDAYBLUFFMNTVL
89​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
1​
2022​
AGT SETBACKCHICAGOILDAYBLUFFMNBVL
650​
0​
0​
0​
0​
0​
0​
0​
0​
0​
0​
18​


Here's what I have so far: =sumifs(hvd,year,"2022",name,"AGT SETBACK"); HOWEVER, I am stuck on how to sum the numbers for the particular month.

Any suggestions?

Thanks, in advance
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
What version of Excel are you using? If using 365 maybe you can maybe do something like this assuming you wanted to add up all the months


VBA Code:
SUM(FILTER(F2:I5,(A2:A5=2022)*(B2:B5="AGT Setback")))

1707252866274.png


There is no HVD column on your sample so I just placed it next to the months. Is this something along the lines of what you are looking for? The answer is on cell A8
 
Upvote 0
What version of Excel are you using? If using 365 maybe you can maybe do something like this assuming you wanted to add up all the months


VBA Code:
SUM(FILTER(F2:I5,(A2:A5=2022)*(B2:B5="AGT Setback")))

View attachment 106434

There is no HVD column on your sample so I just placed it next to the months. Is this something along the lines of what you are looking for? The answer is on cell A8
Thanks for the reply. HVD is the entire lookup range (Jan-Dec). I'm using 365.
 
Upvote 0
In that case, this formula should work. You would just have to adjust the ranges to fit your data.

VBA Code:
=SUM(FILTER(F2:Q5,(A2:A5=2022)*(B2:B5="AGT Setback")))
 

Attachments

  • 1707253411844.png
    1707253411844.png
    17.9 KB · Views: 18
Upvote 0
I'm using 365.

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Thanks, but I've already got "Office 365" in my signature line.
 
Upvote 0
But not in your profile, which is where most members look. ;)
1707313609308.png
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,120
Members
453,021
Latest member
Justyna P

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