SUMIFS with multiple criteria

reynold

New Member
Joined
Nov 7, 2015
Messages
13
ABCD
1Date (ddmmyyyy)CityDepartmentExpense
201-11-2015MemphisHR6000
331-11-2015FortWorthHR7000
431-11-2015MemphisHR8000
501-12-2015MemphisHR9000
601-12-2015MemphisOperations10000

<tbody>
</tbody>

I want to calculate the expense for current month i.e. Nov for HR department in Memphis,
Answer should be 14000 (i.e.6000+8000),

I am using the formula:
SUMIFS(D:D,B:B,"Memphis",C:C,"HR",A:A,MONTH(A:A)=MONTH(TODAY()))

I tried entering with CTRL+ALT+Enter, but it gives error "#Value",


I am looking to include Current Month the formula, so that in dec, excel can calculate expenses for dec.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
If you want to use TODAY() in your function, you can use:

=SUMIFS(D:D,B:B,"Memphis",C:C,"HR",A:A,">"&TODAY()-DAY(TODAY()),A:A,"<="&EOMONTH(TODAY(),0))
 
Upvote 0
with a pivot table.


Book1
ABCDE
75Date (ddmmyyyy)CityDepartmentExpensemonth
761-11-2015MemphisHR600011
7730-11-2015FortWorthHR700011
7830-11-2015MemphisHR800011
791-12-2015MemphisHR900012
801-12-2015MemphisOperations1000012
81
82
83
84
85Som van ExpenseKolomlabels
86Rijlabels1112Eindtotaal
87FortWorth7.0007.000
88HR7.0007.000
89Memphis14.00019.00033.000
90HR14.0009.00023.000
91Operations10.00010.000
92Eindtotaal21.00019.00040.000
Blad8
Cell Formulas
RangeFormula
E76=MONTH(A76)
 
Upvote 0
I think you would find it easier if you had an extra column with the month in if that is a possibility, and then sum if s would be fine. but first there's isn't a 31st November. So currently it would return an error as excel is looking at that as a string not a date.
 
Upvote 0
Thank you Eric your formula worked like Gem ..

Now i am looking to get the same for particular month like November ..
 
Upvote 0
I'm glad you liked my formula. For a particular month, I can't think of any better way than Aladin's formula in post #2.
 
Upvote 0

Forum statistics

Threads
1,215,450
Messages
6,124,912
Members
449,195
Latest member
Stevenciu

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