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

bikes_212

New Member
Joined
May 28, 2015
Messages
2
Hello,

I am using a Google Spreadsheet to calculate total number of gift certificates sold by year AND (ideally) by gift certificate type (2 types: full or partial). An example spreadsheet with fake data is here: https://docs.google.com/spreadsheets/d/1R_fTPMrQ8TOASynK6dR1Ma65yNRu5gsIsBB49-10lXE/edit?usp=sharing

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)
C= Total Gift Certificates sold
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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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
 
Upvote 0

Forum statistics

Threads
1,215,583
Messages
6,125,664
Members
449,247
Latest member
wingedshoes

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