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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Try:
Excel Workbook
ABCDE
1No. of sampleStatusDate
210P12/20/2017
311P12/21/2017
45C12/20/2017
58C12/22/2017
63P12/23/2017
75C12/27/2017
8
9
10NUMBER OF SAMPLE PENDINGP=FROM DATE12/20/2017
11NUMBER OF SAMPLE COMPLETEDC=TO DATE12/25/2017
12
13Pending3
14Completed2
Sheet
 
Upvote 0
Thanks for reply,
Actually I want sum of numbers corresponding to status pending or completed.
 
Upvote 0
Then this:
Excel Workbook
ABCDE
1No. of sampleStatusDate
210P12/20/2017
311P12/21/2017
45C12/20/2017
58C12/22/2017
63P12/23/2017
75C12/27/2017
8
9
10NUMBER OF SAMPLE PENDINGP=FROM DATE12/20/2017
11NUMBER OF SAMPLE COMPLETEDC=TO DATE12/25/2017
12
13
14Pending24
15Completede13
Sheet
 
Upvote 0
Hi, data as

A


B


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

<tbody>
</tbody>

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

<tbody>
</tbody>


<tbody>
</tbody>

In F10 cell I created Data validation list, for selection Routine or stability or Total.and formula used as

=SUMPRODUCT(--($B$2:$B$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),

While selecting stability or Routine it gives right result but for total of stability and Routine does not work formula.

I want formula such it gives sum of Routine and stability samples as well as for either stability or Routine.

Thanks.
 
Upvote 0
icon1.png
Re: Is possible conditional sum with from to date and text criteria?


I want help for this,you already replied this thread. I want add one more criteria as below,

ABCD
1No. of sampleStatusDateType
210P20/12/17Stability
311P21/12/17Routine
45C20/12/17Stability
58C22/12/17Routine
63P23/12/17Stability
75C27/12/17Stability

<tbody>
</tbody>


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

<tbody>
</tbody>

<tbody>
</tbody>
In F10 cell I created Data validation list, for selection Routine or stability or Total.and formula used as

=SUMPRODUCT(--($B$2:$B$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),

While selecting stability or Routine it gives right result but for total of stability and Routine does not work formula.

I want formula such it gives sum of Routine and stability samples as well as for either stability or Routine.

Thanks.
 
Upvote 0
Try:
Excel Workbook
ABCDEF
1No. of sampleStatusDate
210P12/20/2017Stability
311P12/21/2017Routine
45C12/20/2017Stability
58C12/22/2017Routine
63P12/23/2017Stability
75C12/27/2017Stability
8
9
10NUMBER OF SAMPLE PENDINGP=FROM DATE12/20/2017Total
11NUMBER OF SAMPLE COMPLETEDC=TO DATE12/25/2017
12
13
14Pending24
15Completede13
Sheet
 
Upvote 0
A somewhat shorter set up...

Row\Col
A​
B​
C​
D​
E​
F​
1​
No. of sample​
Status​
Date​
Type​
2​
10​
P​
20/12/17​
Stability​
3​
11​
P​
21/12/17​
Routine​
4​
5​
C​
20/12/17​
Stability​
5​
8​
C​
22/12/17​
Routine​
6​
3​
P​
23/12/17​
Stability​
7​
5​
C​
27/12/17​
Stability​
8​
9​
10​
Total
11​
NUMBER OF SAMPLE PENDING​
P​
=​
FROM DATE​
20/12/17​
24​
12​
NUMBER OF SAMPLE COMPLETED​
C​
=​
TO DATE​
25/12/17​
13​

In F11 enter and copy down:

=SUMPRODUCT(SUMIFS($A$2:$A$7,$B$2:$B$7,$B11,$C$2:$C$7,">="&$E$11,$C$2:$C$7,"<="&$E$12,$D$2:$D$7,IF($F$10="total","?*",$F$10)))
 
Upvote 0
Try:

ABCDEF
1No. of sampleStatusDate
210P12/20/2017Stability
311P12/21/2017Routine
45C12/20/2017Stability
58C12/22/2017Routine
63P12/23/2017Stability
75C12/27/2017Stability
8
9
10NUMBER OF SAMPLE PENDINGP=FROM DATE12/20/2017Total
11NUMBER OF SAMPLE COMPLETEDC=TO DATE12/25/2017
12
13
14Pending24
15Completede13

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


Excel tables to the web >> Excel Jeanie HTML 4

Yes it working, but it consider day only in date format, It should consider day, month, year. Is there any solution.
Thanks
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,019
Members
448,938
Latest member
Aaliya13

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