# How to sumif(s) using both date range and text

#### bikes_212

##### New Member
Hello,

I've successfully used the SUMIFS formula to pull # of gift certificates based on a date range.
Columns for the necessary data are:
B = Gift Certificate Type (Full or Partial)
F = Calendar Date ranges for 2013, 2014, and 2015
I = Date gift certificate sold

So far, I've been able to sum total # of gift certificates sold in a given year (2013 formula below):
=SUMIFS(\$C\$18:\$C,\$I\$18:\$I,">="&\$F\$3,\$I\$18:\$I,"<="&\$F\$4)

However, I'd need to break down# of gift certificates sold in a given year by gift certificate type.
For example, we sold 200 gift certificates in 2013 and the breakdown of that is 150 Partial and 50 Full.

In previous spreadsheets with only one year, i.e. no date range requirements, I've done this with:
=sumif((\$B\$18:\$B),"*Full",(C18:C))
however adding that to the date range formula does not seem to work.

Is there any way to sum using two requirements: within a date range + by specific text?

Please let me know of any other information needed.

Thanks!

### Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi bikes_212,

that is something that should work. I tried this in Google Spreadsheets and it works for me (notice I have ; instead of , due to language settings).

=sumifs(\$C\$18:\$C;\$B\$18:\$B;\$H3;\$I\$18:\$I;">="&\$F\$3;\$I\$18:\$I;"<="&\$F\$4)

Cheers,

Koen

Thank you very much, Koen! That works perfectly.

Replies
4
Views
215
Replies
5
Views
309
Replies
7
Views
335
Replies
3
Views
240
Replies
1
Views
236

1,203,455
Messages
6,055,541
Members
444,794
Latest member
HSAL

### 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.

### Which adblocker are you using?

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

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