Is the sumif the best option?

islic1411

New Member
Joined
May 6, 2015
Messages
6
Good Morning MrExcel!

I am trying to get the syntax correct but I am not 100% sure the SumIF is the right command for what I am after or if it should be some very long if statement.
I would greatly appreciate any insight you have:

I think can do this with pivot charts to get the sum but I am trying to pull over totals based on category (project charge type) and week #. I am trying to build it into a standard accounting sheet type format and wasn't real sure if that was the right path to take either.

I am pulling the data below, I have my accounting sheet broken out into the revenue along the top and then a line to reduce the revenue by that weeks revenue. I have 14 different project charge types

WeeksWeek 17Week 18Week 19
Airline(need this total from the second example table)(need this total from the second example Table)(need this total from the second example Table)
Tools(need this total from the second example Table)(need this total from the second example Table)(need this total from the second example Table)
Car(need this total from the second example Table)(need this total from the second example Table)(need this total from the second example Table)
Payroll(need this total from the second example Table)(need this total from the second example Table)(need this total from the second example Table)

<tbody>
</tbody>


Example table #2 (this is a data connection coming from SharePoint and is pulled into a table) There will be about 15 weeks worth of charges, I am guessing about 250 lines or so once the project is nearing the end.

Week NumberCharge Category (types)Charge AmountSave LocationProject Name
Week 17Tools800.00(sharepoint url)Name of the project
Week 17Approved Incidentals300.00(sharepoint url)
Name of the project.
Week 18Payroll50000.00SharePointProject
Week 18Tools500.00SharePointProject

<tbody>
</tbody>
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Looks like a SUMIFS() will do what you want, for example:


Excel 2013
ABCDEFGHIJ
1Week NumberCharge Category (types)Charge AmountSave LocationProject NameWeeksWeek 17Week 18Week 19
2Week 17Tools800(sharepoint url)Name of the projectAirline000
3Week 17Approved Incidentals300(sharepoint url)Name of the project.Tools8005000
4Week 18Payroll50000SharePointProjectCar000
5Week 18Tools500SharePointProjectPayroll0500000
Sheet1
Cell Formulas
RangeFormula
H2=SUMIFS($C:$C,$B:$B,$G2,$A:$A,H$1)
 
Upvote 0
Assuming you have the example table #2 in A1:D5,

using table nomenclature:
=SUMPRODUCT((Table1[Charge Category (types)]=B$1)*(Table1[Week Number]=$A3)*Table1[Charge Amount])

using standard nomenclature:
=SUMPRODUCT(($B$14:$B$17=$A2)*($A$14:$A$17=B$1)*$C$14:$C$17)

Good luck,

CN.
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,760
Members
449,095
Latest member
m_smith_solihull

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