sumif multiple columns

Mr2017

Well-known Member
Joined
Nov 28, 2016
Messages
644
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

I'd like to create a sumif formula that sums up data based on criteria in multiple columns, but not sure if this is possible?

In the table below, I'd like to sum up the number of HOURS for Greg (a user) that are

i) approved (column G)
ii) billable (column H)
iii) from the month of August (column I)
iv) from the 16/17 financial year

Then answer should be 2 (because the 5 hours in column F are non-billable - see column H). So 1 hour from the 4th of March and 1 hour from the 5th of March would be summed up to give the value 2, because those hours fulfill all the above criteria.

Is that possible? A basic part of the results would like like the second table below. Thanks in advance!

ABCDEFGHIJ
ClientProjectWork ItemUserDateHoursStateBillable?Month NameFY
XX CaliburChecksGreg 03-Mar-165Non-BillableMar
XX CaliburChecksGreg 04-Mar-161ApprovedBillableMar16/17
XX CaliburChecksGreg 05-Mar-161ApprovedBillableMar16/17

<colgroup><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>


Second table

2016
Month
UserMarchApril
GregSum of approved hours in March 2016
Value should be 2 (1 hour on 4th & 1 hour on 5th March)

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Kinda like:
=SUMIFS(Hours,State,"Approved",Billable?,"Billable",Month_Name,"Mar",FY,"16/17")
Named ranges were created from your column headers to make formula more readable.
 
Upvote 0
Thanks Spiller BD - that was the most useful article I read on sumifs - explained things clearly!

Thanks again.
 
Upvote 0
Thanks tcardwell - yes, I used that format with named ranges to construct the formula. Previous articles I'd read weren't helpful, but I was able to compile what you described after reading the article Spiller BD posted. Thank you both.
 
Upvote 0

Forum statistics

Threads
1,216,272
Messages
6,129,822
Members
449,538
Latest member
cookie2956

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