SOLVED
Home

Using Excel SUMIF with a condition and a Date Range

%3CLINGO-SUB%20id%3D%22lingo-sub-362456%22%20slang%3D%22en-US%22%3EUsing%20Excel%20SUMIF%20with%20a%20condition%20and%20a%20Date%20Range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-362456%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20aggregating%20data%20that%20rolls%20into%20my%20spreadsheet%20every%20two%20weeks.%20I%20keep%20the%20raw%20data%20on%20a%20secondary%20tab%20called%20%22Form%20Responses.%22%20I'm%20currently%20using%20the%20formula%20below%20to%20parse%20through%20the%20raw%20data%2C%20find%20inputs%20that%20have%20%22Activation%22%20in%20Column%20B%2C%20and%20then%20sum%20the%20responses%20in%20Column%20C.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3ESUMIF%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E(%3C%2FSPAN%3E%3CSPAN%3E'Form%20Responses'!%24B%3A%24B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20string%20%22%3E%22*activation*%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E%2C%3C%2FSPAN%3E%3CSPAN%3E'Form%20Responses'!C%3AC%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3EIn%20Column%20A%20of%20the%20%22Form%20Responses%22%20tab%2C%20I%20have%20the%20date%20that%20the%20data%20was%20entered.%20%3C%2FSPAN%3E%3CSPAN%3E%3CFONT%20face%3D%22Inconsolata%2C%20monospace%2C%20arial%2C%20sans%2C%20sans-serif%22%3EI'm%20looking%20for%20a%20way%20to%20only%20pull%20in%20data%20from%20two%20week%20date%20ranges.%20So%2C%20for%20example%2C%20I'd%20like%20to%20pull%20in%20only%20data%20that%20satisfies%20the%20parameters%20in%20the%20formula%20above%20%3CSTRONG%3EAND%3C%2FSTRONG%3E%20that%20came%20in%20between%201-14%20days%20%3CSTRONG%3EAFTER%3C%2FSTRONG%3E%20February%2025.%20%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3ESo%2C%20ultimately%2C%20I%20need%20a%20formula%20that%20can%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E-%20Search%20%3C%2FSPAN%3E%3CSPAN%3EColumn%20B%20from%3C%2FSPAN%3E%3CSPAN%3E%20the%20%22Form%20Responses%22%20tab%20for%20the%20word%20%22Activation%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E-%20Sum%20the%20total%20in%20Column%20C%20from%20the%20%22Form%20Responses%22%20tab%20in%20rows%20where%20%22Activation%22%20is%20in%20Column%20B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E-%20But%20only%20pulls%20in%20data%20between%201-14%20days%20after%202%2F25%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3EAnyone%20have%20any%20ideas%3F%20Thanks%20in%20advance!%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-362456%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-363020%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20SUMIF%20with%20a%20condition%20and%20a%20Date%20Range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363020%22%20slang%3D%22en-US%22%3EYou%E2%80%99re%20welcome.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-362894%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20SUMIF%20with%20a%20condition%20and%20a%20Date%20Range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-362894%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you!%20This%20worked%20perfectly!%20Really%20appreciate%20your%20help!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-362469%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20SUMIF%20with%20a%20condition%20and%20a%20Date%20Range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-362469%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20formula%20you%20need%20in%20ResponseSummary!D2%20of%20the%20attached%20file%20is%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3DSUMIFS('Form%20Responses'!C%3AC%2C%3CBR%20%2F%3E'Form%20Responses'!A%3AA%2C%22%26gt%3B%3D%22%26amp%3BA2%2C%3CBR%20%2F%3E'Form%20Responses'!A%3AA%2C%22%26lt%3B%3D%22%26amp%3BB2%2C%3CBR%20%2F%3E'Form%20Responses'!B%3AB%2C%22*%22%26amp%3BC2%26amp%3B%22*%22)%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello, 

 

I'm aggregating data that rolls into my spreadsheet every two weeks. I keep the raw data on a secondary tab called "Form Responses." I'm currently using the formula below to parse through the raw data, find inputs that have "Activation" in Column B, and then sum the responses in Column C. 

 

=SUMIF('Form Responses'!$B:$B,"*activation*",'Form Responses'!C:C)

 

In Column A of the "Form Responses" tab, I have the date that the data was entered. I'm looking for a way to only pull in data from two week date ranges. So, for example, I'd like to pull in only data that satisfies the parameters in the formula above AND that came in between 1-14 days AFTER February 25.

 

So, ultimately, I need a formula that can:

 

- Search Column B from the "Form Responses" tab for the word "Activation"

- Sum the total in Column C from the "Form Responses" tab in rows where "Activation" is in Column B

- But only pulls in data between 1-14 days after 2/25

 

Anyone have any ideas? Thanks in advance!

3 Replies
Highlighted
Solution

The formula you need in ResponseSummary!D2 of the attached file is: 

=SUMIFS('Form Responses'!C:C,
'Form Responses'!A:A,">="&A2,
'Form Responses'!A:A,"<="&B2,
'Form Responses'!B:B,"*"&C2&"*")

Highlighted

Thank you! This worked perfectly! Really appreciate your help! 

Highlighted
You’re welcome.
Related Conversations
Rearrangement and initials.
Ocasio27 in Excel on
0 Replies
Page vs Image Scaling
DarylA in Excel on
0 Replies
return max in date range based on X column #
mryno in Excel on
0 Replies
Excel help
nefroti in Excel on
1 Replies
Unhiding Multiple Columns (A-H) are hidden.
jbtaxman in Excel on
2 Replies
Excel file data recovery
Malneedi_Vamsi in Excel on
0 Replies