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

data >> text to columns >> 3rd step choose for MDY
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
ABCDEF
1No. of sampleStatusDate
210C05/11/2017Stability
311C31/11/2017Stability
45C09/12/2017Stability
58P25/12/2017Routine
63C12/12/2017Stability
75C18/11/2017Stability
8
9
10NUMBER OF SAMPLE PENDINGP=FROM DATE05/11/017Total
11NUMBER OF SAMPLE COMPLETEDC=TO DATE20/11/2017
12
13
14Pending0
15Completede23


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))
If in Column A each cell having value 1, I decided not to use column A and remove it as each cell having value 1, then what will be formula based on number of corresponding cell count?
 
Upvote 0
Dear Sir,
Thanks for your answer for Is possible conditional sum with from to date and text criteria? Formula works perfect.
Formula which was suggested by you as below..


ABCDEF
1No. of sampleStatusDate
210C05-11-17Stability
311C31/11/2017Stability
45C09-12-17Stability
58P25-12-17Routine
63C12-12-17Stability
75C18-11-17Stability
8
9
10NUMBER OF SAMPLE PENDINGP=FROM DATE05/11/017Total
11NUMBER OF SAMPLE COMPLETEDC=TO DATE20-11-17
12
13
14Pending0
15Completede23



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

I am using above formula as per mrexcel discussion output. Now I don't want now column B, I used single row for every entry, so can I use count cell formula based on date and text as per column D and E?

Thank sir.
 
Upvote 0

Forum statistics

Threads
1,215,026
Messages
6,122,743
Members
449,094
Latest member
dsharae57

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