Count item only once that is repeated in a given time line?

Marq

Well-known Member
Joined
Dec 13, 2004
Messages
914
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
Using Excel 2007

Column D (D3:D2000) contains dates, to which those dates are repeated....for instance I can have ten cells in column D with todays date, 2-25-13.

Column L (L3:L2000) Will have the name of a project and much like the dates the project can be repeated multiple times....so I can have a project called P0ABC123 listed twenty times in colum L and it be associated with various dates in column D...for example I can have P0ABC123 listed 3 times and the date could be 1-30-13....then I can have it listed five more times and the dates for those five times in column D can be 2-12-13.

I would like to have a formula that says does this:

"Look in column D for date range 2-18-13 thru 2-24-13 and then look in column L and list each project worked in that range.......then in another cell give me a count of how many jobs we worked in that range."

So if I have ten P0ABC123 in the date range, only list it once.......and if that was the ONLY job I worked in that range then the other cell that does the counting will have the number 1.

This is waaayyy too complicated for me to figure out I dont even know where to begin to start writing the formula.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Using Excel 2007

Column D (D3:D2000) contains dates, to which those dates are repeated....for instance I can have ten cells in column D with todays date, 2-25-13.

Column L (L3:L2000) Will have the name of a project and much like the dates the project can be repeated multiple times....so I can have a project called P0ABC123 listed twenty times in colum L and it be associated with various dates in column D...for example I can have P0ABC123 listed 3 times and the date could be 1-30-13....then I can have it listed five more times and the dates for those five times in column D can be 2-12-13.

I would like to have a formula that says does this:

"Look in column D for date range 2-18-13 thru 2-24-13 and then look in column L and list each project worked in that range.......then in another cell give me a count of how many jobs we worked in that range."

So if I have ten P0ABC123 in the date range, only list it once.......and if that was the ONLY job I worked in that range then the other cell that does the counting will have the number 1.

This is waaayyy too complicated for me to figure out I dont even know where to begin to start writing the formula.

Could you post smaple of your data?
 
Upvote 0
Could you post smaple of your data?

COLUMN D COLUMN L
1/10/13 E-456
1/11/13 E-456
1/11/13 E-456
1/11/13 E-555
1/11/13 E-555
1/9/13 E-987
1/11/13 E-987
1/11/13 E-987
1/10/13 P0123ABC
1/11/13 P0123ABC
1/11/13 P0123ABC
1/11/13 P0123ABC
1/9/13 P0321CBA
1/10/13 P0321CBA
1/10/13 P0321CBA
1/10/13 P098745
1/10/13 P098746
1/9/13 PV-123
1/10/13 PV-123
1/10/13 PV-123
1/9/13 PV-ABC
1/10/13 PV-ABC
1/10/13 PV-ABC


here is what the results should be if date range 1-9-13 thru 1-11-13:

LIST of Jobs Number of Jobs
E-456 9
E-555
E-987
P0123ABC
P0321CBA
P098745
P098746
PV-123
PV-ABC
 
Upvote 0
COLUMN D COLUMN L
1/10/13 E-456
1/11/13 E-456
1/11/13 E-456
1/11/13 E-555
1/11/13 E-555
1/9/13 E-987
1/11/13 E-987
1/11/13 E-987
1/10/13 P0123ABC
1/11/13 P0123ABC
1/11/13 P0123ABC
1/11/13 P0123ABC
1/9/13 P0321CBA
1/10/13 P0321CBA
1/10/13 P0321CBA
1/10/13 P098745
1/10/13 P098746
1/9/13 PV-123
1/10/13 PV-123
1/10/13 PV-123
1/9/13 PV-ABC
1/10/13 PV-ABC
1/10/13 PV-ABC


here is what the results should be if date range 1-9-13 thru 1-11-13:

LIST of Jobs Number of Jobs
E-456 9
E-555
E-987
P0123ABC
P0321CBA
P098745
P098746
PV-123
PV-ABC


Excel 2010
DELMNOPQ
11/9/2013E-4569
21/10/2013E-4561/11/2013E-555
31/11/2013E-456E-987
41/11/2013E-456P0123ABC
51/11/2013E-555P0321CBA
61/11/2013E-555P098745
71/9/2013E-987P098746
81/11/2013E-987PV-123
91/11/2013E-987PV-ABC
101/10/2013P0123ABC
111/11/2013P0123ABC
121/11/2013P0123ABC
131/11/2013P0123ABC
141/9/2013P0321CBA
151/10/2013P0321CBA
161/10/2013P0321CBA
171/10/2013P098745
181/10/2013P098746
191/9/2013PV-123
201/10/2013PV-123
211/10/2013PV-123
221/9/2013PV-ABC
231/10/2013PV-ABC
241/10/2013PV-ABC
25
Sheet1
Cell Formulas
RangeFormula
Q1=SUMPRODUCT(--(LEN(P1:P14)>0))
P1{=IFERROR(INDEX($L$2:$L$24,SMALL(IF(FREQUENCY(IF($L$2:$L$24<>"", IF(($D$2:$D$24>=$N$1)*($D$2:$D$24<=$N$2),MATCH(L$2:L$24,L$2:L$24,0))), ROW($L$2:$L$24)-ROW($D$2)+1),ROW($D$2:$D$24)-ROW($D$2)+1), ROWS($M$2:M2))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Excel 2010
DELMNOPQ
11/9/2013E-4569
21/10/2013E-4561/11/2013E-555
31/11/2013E-456E-987
41/11/2013E-456P0123ABC
51/11/2013E-555P0321CBA
61/11/2013E-555P098745
71/9/2013E-987P098746
81/11/2013E-987PV-123
91/11/2013E-987PV-ABC
101/10/2013P0123ABC
111/11/2013P0123ABC
121/11/2013P0123ABC
131/11/2013P0123ABC
141/9/2013P0321CBA
151/10/2013P0321CBA
161/10/2013P0321CBA
171/10/2013P098745
181/10/2013P098746
191/9/2013PV-123
201/10/2013PV-123
211/10/2013PV-123
221/9/2013PV-ABC
231/10/2013PV-ABC
241/10/2013PV-ABC
25
Sheet1
Cell Formulas
RangeFormula
Q1=SUMPRODUCT(--(LEN(P1:P14)>0))
P1{=IFERROR(INDEX($L$2:$L$24,SMALL(IF(FREQUENCY(IF($L$2:$L$24<>"", IF(($D$2:$D$24>=$N$1)*($D$2:$D$24<=$N$2),MATCH(L$2:L$24,L$2:L$24,0))), ROW($L$2:$L$24)-ROW($D$2)+1),ROW($D$2:$D$24)-ROW($D$2)+1), ROWS($M$2:M2))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.

I got it working!..thank you! works perfect
 
Last edited:
Upvote 0
Excel 2010
DELMNOPQ
11/9/2013E-4569
21/10/2013E-4561/11/2013E-555
31/11/2013E-456E-987
41/11/2013E-456P0123ABC
51/11/2013E-555P0321CBA
61/11/2013E-555P098745
71/9/2013E-987P098746
81/11/2013E-987PV-123
91/11/2013E-987PV-ABC
101/10/2013P0123ABC
111/11/2013P0123ABC
121/11/2013P0123ABC
131/11/2013P0123ABC
141/9/2013P0321CBA
151/10/2013P0321CBA
161/10/2013P0321CBA
171/10/2013P098745
181/10/2013P098746
191/9/2013PV-123
201/10/2013PV-123
211/10/2013PV-123
221/9/2013PV-ABC
231/10/2013PV-ABC
241/10/2013PV-ABC
25
Sheet1
Cell Formulas
RangeFormula
Q1=SUMPRODUCT(--(LEN(P1:P14)>0))
P1{=IFERROR(INDEX($L$2:$L$24,SMALL(IF(FREQUENCY(IF($L$2:$L$24<>"", IF(($D$2:$D$24>=$N$1)*($D$2:$D$24<=$N$2),MATCH(L$2:L$24,L$2:L$24,0))), ROW($L$2:$L$24)-ROW($D$2)+1),ROW($D$2:$D$24)-ROW($D$2)+1), ROWS($M$2:M2))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.

I want to add one more level of criteria..the whole formula wors as it should but now I only want it to count all of the jobs that only have "yes" in column "O"....column O has Yes and No listed ....so basically have the formula you created but make it only count the Yes's in column O......and this "Yes" criteria being the last level of criteria to be calculated....so the heirarchy would be..Date Range (column D)...Job count (column L)....then filter job count down to count the jobs that have "Yes" in column O.
 
Upvote 0

Forum statistics

Threads
1,215,106
Messages
6,123,124
Members
449,096
Latest member
provoking

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