Formula that considers two criteria

tbrynard01

Board Regular
Joined
Sep 20, 2017
Messages
129
Office Version
  1. 365
Platform
  1. Windows
I have a sheet that has a date column and a category and would like to add the totals for all the lines with the same category within a specified date range together. I'm using this below, but it's including items outside of this date range

IF(AND('Check Register-Sep2017'!C:C,9/1/17,9/30/17),SUMIFS('Check Register-Sep2017'!H:H,'Check Register-Sep2017'!F:F,"Red"),0)

Can anyone please help?

Thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Within the nested AND statement, you have to phrase the conditions as equations. This is different than the SUMIMF syntax.
Try this:
=IF(AND('Check Register-Sep2017'!C1>9/1/17,'Check Register-Sep2017'!C1<9/30/17),SUMIFS('Check Register-Sep2017'!H:H,'Check Register-Sep2017'!F:F,"Red"),0)
 
Upvote 0
Maybe,

=IF(AND('Check Register-Sep2017'!C1>=0+"9/1/17",'Check Register-Sep2017'!C1<=0+"9/30/17"),SUMIFS('Check Register-Sep2017'!H:H,'Check Register-Sep2017'!F:F,"Red"),0)

Regards
 
Upvote 0
Maybe,

=IF(AND('Check Register-Sep2017'!C1>=0+"9/1/17",'Check Register-Sep2017'!C1<=0+"9/30/17"),SUMIFS('Check Register-Sep2017'!H:H,'Check Register-Sep2017'!F:F,"Red"),0)

Regards

Thank you I tried both suggestions but neither worked :(
 
Upvote 0
I have a sheet that has a date column and a category and would like to add the totals for all the lines with the same category within a specified date range together. I'm using this below, but it's including items outside of this date range

IF(AND('Check Register-Sep2017'!C:C,9/1/17,9/30/17),SUMIFS('Check Register-Sep2017'!H:H,'Check Register-Sep2017'!F:F,"Red"),0)

Can anyone please help?

Thanks

Try:

=SUMIFS('Check Register-Sep2017'!H:H,'Check Register-Sep2017'!F:F,"Red",'Check Register-Sep2017'!C:C,">=9/1/17",'Check Register-Sep2017'!C:C,"<=9/30/17")
 
Upvote 0

Forum statistics

Threads
1,215,231
Messages
6,123,756
Members
449,120
Latest member
Aa2

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