sumifs with date and text criteria

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
272
Office Version
  1. 365
Platform
  1. Windows
Microsoft Excel 2007:



I have the following formula in J45, which gives wrong answer as 0.
=SUMIFS(D5:D33,C5:C33,">="&H40,E5:E33,"<="&H41,G5:G33,"TaxSave")



D5:D33 Amount in numericals
C5:C33 Start date in dd-mm-yyyy format
E5:E33 End date in dd-mm-yyyy format
G5:G33 Text msg, (example: Current Old TaxSave)
H40 Helper with Start date (example 01-04-2018)
H41 Helper with End date (example 31-03-2019)
End date is greater than Start date.



In my worksheet I have text TaxSave in G14 only.



Kindly correct the formula suitably.

Thanking you,
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
The formula looks correct.

What do you get with:

=COUNT(D5:D33)

=COUNT(E5:E33)

=COUNT(E5:E33)

+COUNTIFS(G5:G33,"TextSave")
 
Upvote 0
Microsoft Excel 2007
=count(D5:D33) Answer 23
=count(C5:C33) Answer 23
=count(E5:E33) Answer 23
=count(E5:E33)+countif(G5:G33,"TaxSave") Answer 24
 
Upvote 0
As requested in my first post, I want to sum from Column D; with start date condition from Column C;
with End date condition from column E; and text condition from Column G.
Kindly refer formula in my first post.
InG14 only text Taxsave. C14 date 30-07-2018. D14 is amount 54718. Correct answer: 54718. But I get 0 answer.
 
Upvote 0
As requested in my first post, I want to sum from Column D; with start date condition from Column C;
with End date condition from column E; and text condition from Column G.
Kindly refer formula in my first post.
InG14 only text Taxsave. C14 date 30-07-2018. D14 is amount 54718. Correct answer: 54718. But I get 0 answer.

If G14 = TaxSave, C14 = 30-07-2015, D14 = 54718, AND

=G14 = "TaxSave" yields TRUE

=ISNUMBER(C14) yields TRUE

=(C14 >= "30-07-2018"+0) * (C14 <= "30-07-2018"+0) yields 1

=ISNUMBER(D14) yields TRUE

then you should get: 54718 with the formula you already have.
 
Upvote 0

Forum statistics

Threads
1,214,402
Messages
6,119,299
Members
448,885
Latest member
LokiSonic

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