Is possible conditional sum with from to date and text criteria?

babaso_tawase

Board Regular
Joined
Feb 5, 2017
Messages
59
Office Version
  1. 2007
Platform
  1. Windows
Hi Every one,
I want your help regarding conditional sum.
I am using EXCEL 2003, that don't have SUMIFS function.
I have data as
Column A= number of sample
Column B= Status C=complete, P=pending
Column C =Date

ABC
1No. of sampleStatusDate
210P20/12/17
311P21/12/17
45C20/12/17
58C22/12/17
63P23/12/17
75C27/12/17

<tbody>
</tbody>

9ABCDE
10NUMBER OF SAMPLE PENDINGP=FROM DATE20/12/17
11NUMBER OF SAMPLE COMPLETEDC=TO DATE25/12/17
12

<tbody>
</tbody>


<tbody>
</tbody>
I want formula to calculate from certain period of date , number of sample completed and number sample pending.

I AM USING THIS FORMULA BUT NOT WORKING
FOR PENDING SAMPLE =SUMPRODUCT((B2:B7=B10)*(E10<=C2:C7<=E11)*A2:A7)
FOR COMPLETED SAMPLE =SUMPRODUCT((B2:B7=B11)*(E10<=C2:C7<=E11)*A2:A7)

Thanks EVERY ONE...
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
For example, data having from date 05/02/18 to 20/03/18 and I want Conditional sum from date 05/03/18 to 10/03/18 then formula takes sum from 05/02/18 to 10/03/18 , considering only day and not month and year.
 
Upvote 0
For example, data having from date 05/02/18 to 20/03/18 and I want Conditional sum from date 05/03/18 to 10/03/18 then formula takes sum from 05/02/18 to 10/03/18 , considering only day and not month and year.

Care to specify the conditions for the data that you see in post #9 along with the outcome for that data?
 
Upvote 0

ABCDEF
1No. of sampleStatusDate


210C
05/11/2017
Stability

311C
31/11/2017
Stability


45C09/12/2017
Stability

58P
25/12/2017
Routine


63C
12/12/2017
Stability

75C18/11/2017
Stability

8





9





10NUMBER OF SAMPLE PENDINGP=FROM DATE05/11/017
Total
11NUMBER OF SAMPLE COMPLETEDC=TO DATE20/11/2017

12





13





14Pending0




15Completede23





<colgroup><col style="width:30px; "><col style="width:226px;"><col style="width:68px;"><col style="width:75px;"><col style="width:96px;"><col style="width:75px;"><col style="width:87px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B14=IF($F$10="Total",SUMPRODUCT(--($B$2:$B$7=$B$10),--($C$2:$C$7>=$E$10),--($C$2:$C$7<=$E$11),$A$2:$A$7),SUMPRODUCT(--($D$2:$D$7=$F$10),--($B$2:$B$7=$B$10),--($C$2:$C$7>=$E$10),--($C$2:$C$7<=$E$11),$A$2:$A$7))
B15=IF($F$10="Total",SUMPRODUCT(--($B$2:$B$7=$B$11),--($C$2:$C$7>=$E$10),--($C$2:$C$7<=$E$11),$A$2:$A$7),SUMPRODUCT(--($D$2:$D$7=$F$10),--($B$2:$B$7=$B$11),--($C$2:$C$7>=$E$10),--($C$2:$C$7<=$E$11),$A$2:$A$7))

<tbody>
</tbody>

<tbody>
</tbody>

In this example sum of total completed sample from 05/11/2017 to 20/11/2017 should be 15 but formula result gives 23. Means it takes sum of date 05 to 20 of both month 11 and 12 instead of only 11 month.
Thanks
 
Upvote 0
It gives result = FALSE in my workbook.
For every date more than 12 gives FALSE result.
 
Upvote 0
Cell C3 contains date 31/11/2017.
I think our date format dd/mm/yyyy is not working in formula, it should be mm/dd/yyyy.If this logic is correct then how to convert dd/mm/yyyy to mm/dd/yyyy so that formula can work.
Thanks
 
Upvote 0

Forum statistics

Threads
1,215,268
Messages
6,123,966
Members
449,137
Latest member
yeti1016

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