Help with Sumif/sumifs functions

mrbeige

New Member
Joined
Dec 18, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm trying to simplify a data range. I have data from 1970 up to 2024. For each year, I have 11 different categories. I'm looking for a way to add together those 11 datapoints into one, in order to have a simpler range to use. I've tried to set things up so that my sumif function would use the years in E2 and forwards, but I've only been able to make things work by manually inputing "1970" (see E3). Is there a way to set up my function so that it can auto fill? Also, sorry for the french excel, SUMIF = SOMME.SI and SUMIFS = SOMME.SI.ENS . Thanks for the help!

Classeur1
ABCDEFGHIJ
1YearNameAmount (t)
21970Biomass275983422,9197019711972197319741975
31970Excavated earthen materials (including soil) nec01426761240
41970Fossil fuels5061183420
51970Metal ores11699949,38
61970Mixed and complex products nec.16483
71970Non-metallic minerals630906224,9
81970Products from biomass2036818,1
91970Products from fossil fuels0
101970Products from metals0
111970Products from non-metallic minerals0
121970Waste for final treatment and disposal0
131971Biomass279474673
141971Excavated earthen materials (including soil) nec0
151971Fossil fuels500802802
161971Metal ores10861919,78
171971Mixed and complex products nec.21701
181971Non-metallic minerals660877855
191971Products from biomass2009277,96
201971Products from fossil fuels0
211971Products from metals0
221971Products from non-metallic minerals0
231971Waste for final treatment and disposal0
Allemagne
Cell Formulas
RangeFormula
E3E3=TRANSPOSE(SUMIFS(_2024_02_04_DomesticMaterialConsumptionofGermanyin1970_2024bymaterialgroup[Amount (t)],_2024_02_04_DomesticMaterialConsumptionofGermanyin1970_2024bymaterialgroup[Year],"=1970"))
E4E4=SUMIFS(C:C,A:A,"=A2")
Named Ranges
NameRefers ToCells
DonnéesExternes_5=Allemagne!$A$1:$C$606E4
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I just found out that XL2bb translates function types, good to know.
 
Upvote 0
How about in E3 only
Excel Formula:
=SUMIFS(C:C,A:A,E2:J2)
 
Upvote 0
Huh, so it was as simple as that...

Thanks a lot! Problem solved!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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