RichThompson

New Member
Joined
Apr 29, 2016
Messages
5
I've been trying various different formulas to have excel check a for a value in a date column that is greater than or equal to a predefined start date. Then I need it to count if the dates are within condition and product operation is complete.
Eg. Start date is Monday any dates past Monday will also be checked and then a count of how many "ticks" correspond to that date. It's a task counter, how many tasks did you complete this week sort of thing.
Any help would be appreciated as I've been bashing my head against a desk for days with this.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hey,

see if this works for you:

Excel 2007
ABCDE
1DateStatusStart DateCount
21-Apr-16complete2-Apr-165
32-Apr-16in progress10-Apr-162
43-Apr-16in progress14-Apr-161
54-Apr-16complete15-Apr-160
65-Apr-16in progress1-Apr-166
76-Apr-16complete
87-Apr-16in progress
98-Apr-16in progress
109-Apr-16complete
1110-Apr-16in progress
1211-Apr-16complete
1312-Apr-16in progress
1413-Apr-16in progress
1514-Apr-16complete
1615-Apr-16in progress
1716-Apr-16in progress
1817-Apr-16in progress
1918-Apr-16in progress
2019-Apr-16in progress
2120-Apr-16in progress

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>


Worksheet Formulas
CellFormula
E2=COUNTIFS($A$2:$A$21,">="&$D2,$B$2:$B$21,"complete")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Julian
 
Upvote 0
It's Close but no banana,

no im not using my phone and am actually at a computer i can now show you what i'm trying to do.
so, firstly lets use our reference cells in the top row so we can see what's going on.

ABCDEFGHIJK
127/04/16
2
3Dateserial numberoperation1op2op3op4op5op6op7
425/04/161
526/04/162
627/04/163
728/04/164
829/04/165
930/04/166
1001/05/167

<colgroup span="12" width="85"></colgroup> <tbody>
</tbody>

<colgroup span="9" width="85"></colgroup><tbody></tbody>

So i need to count number of operations complete for any days within a week. so for arguments sake say 27/04/16 was the week start and 01/05/16 was where we were today. this file will have data before the date that will be counted into a standard counter which is why, i need excel to count all the ticks in ops 1-7 only for the dates greater than or equal to the specified start date. its a weekly tracker, so the date will change every week and i only want it to count data from the current week, any older data still needs to be there within the archive file but ommited from the counter if its date is before the specified start date. if you have any ideas id greatly appreciate it. i've tried =Countifs(AA,">="&J1,C:I,K1) and well, it just isn't having any of it.
Help on this would be greatly appreciated.
 
Upvote 0
Hey, maybe try this:

Code:
=SUMPRODUCT((A4:A10>=J1)*(C4:I10=K1))

An alternative with countifs would be adding up the countifs for each column, like
=countifs(A4:A10,">="&J1,C4:C10,K1)+countifs(A4:A10,">="&J1,D4:D10,K1)+countifs(A4:A10,">="&J1,E4:E10,K1)+.....

Julian
 
Upvote 0
I think you may have just done it, ive tested it on the basic sheet i provided to the thread and the sum product function seems to work very well. if not then a large string of countifs+Countifs....... may take a while to set up but should in theory work. thanks so much.
 
Upvote 0
Hey, maybe try this:

Code:
=SUMPRODUCT((A4:A10>=J1)*(C4:I10=K1))

An alternative with countifs would be adding up the countifs for each column, like
=countifs(A4:A10,">="&J1,C4:C10,K1)+countifs(A4:A10,">="&J1,D4:D10,K1)+countifs(A4:A10,">="&J1,E4:E10,K1)+.....

Julian


Bad news, it didn't work. Seemed to work in libre office (as I don't have excel at home) but isn't working in excel. It's just counting the number of ticks regardless of the date criteria set. Any further suggestions?
 
Upvote 0
Hey,

I am using Excel 2010 and its working for me.
Maybe post the actual formula youre using, it might be theres some kink.
And finally make sure the date in J1 is right. If the date is smaller than any date in A4:A10 that would explain why it counts every tick.
 
Upvote 0
It did work it was me being a muppet I had date columns as A:A and data range as A:p which made it throw up an error about unable to get all the resources to calculate. (Due to it being an infinite data source) once I'd set it to finite as in the example you gave it works fine so I've used A1:a100000 and data range as B1:B100000 now it works perfectly. Thanks again for the help.
 
Upvote 0

Forum statistics

Threads
1,216,586
Messages
6,131,571
Members
449,655
Latest member
Anil K Sonawane

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