formula to count 2 weeks

Lukma

Board Regular
Joined
Feb 12, 2020
Messages
240
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi guys

Can anyone assist with COUNTIFS Formula based on multiple criteria and count on every 2 weeks

In Column O23 i need to count how many of D is entered for every 2 weeks
In Column O23 i need to count how many of P is entered for every 2 weeks
i Have my WeekNum in Column K23

Appreciate with a formula that can do the counting in every 2 weeks

Weekly Planning Supply Chain Performance 2021.xlsx
KLMNO
23Week No'sMonthly Mus End DateMus-NoSupply VesselD/P VSL
245301-Jan-213705ADNOC-810P
255301-Dec-203706ADNOC-224D
2601-Jan-213666-OASL SWIFTD
275301-Jan-213707Z-POWERD
28101-Jan-213708SMIT LUZOND
295301-Jan-213709SMIT LUMUTD
30101-Jan-213710B-LIBERTY-313D
31101-Jan-213711MAC PHOENIXD
32101-Jan-213712ADNOC-812P
33101-Jan-213713A-HERCULESP
34101-Jan-211LCT-TARFFAHP
35101-Jan-212ADNOC-850P
36101-Jan-213ADNOC-510D
37101-Jan-214A-GRACED
38101-Jan-215MARCAP-2P
39101-Jan-216QMS DELTAD
40101-Jan-217ADNOC-1011D
41101-Jan-218QMS NEPTUNED
42101-Jan-219ADNOC-221D
43101-Jan-2110SEACOR ALPSD
44101-Jan-2111ADNOC-229D
45101-Jan-2112LCT-MARWAH-1P
46101-Jan-2113Z-OCEANP
47101-Jan-2114ADNOC-230D
48101-Jan-2115A-LIBERTY D
49101-Jan-2116ADNOC-851P
50101-Jan-2117A-CHLOED
51101-Jan-2118ADNOC-225D
52101-Jan-2119ADNOC-811P
53101-Jan-2120SWISSCO RUBYP
54101-Jan-2121ADNOC-512D
55101-Jan-2122AMS-RUBYD
56101-Jan-2123ADNOC-511D
57101-Jan-2124ADNOC-810P
58101-Jan-2125ADNOC-812P
59101-Jan-2126MAC PHOENIXD
60101-Jan-2127QMS MARIMBAD
61101-Jan-2128ADNOC-227D
62101-Jan-2129LCT-WARDEHD
63201-Jan-2130Z-STARD
64201-Jan-2131B-HOMERED
65201-Jan-2132ADNOC-226D
66201-Jan-2133Z-POWERD
67201-Jan-2134ADNOC-223D
68201-Jan-2135SMIT LUMUTD
69201-Jan-2136A-HERCULESP
70201-Jan-2137LCT-TARFFAHP
71201-Jan-2138SEACOSCO OHIOD
72201-Jan-2139ADNOC-224D
73201-Jan-2140A-LIBERTY D
74201-Jan-2141M-SUPPORTERD
75201-Jan-2142Z-OCEANP
76201-Jan-2143ADNOC-510D
77201-Jan-2144LCT-MARWAH-1P
78201-Jan-2145MUBARAK SPIRITD
79201-Jan-2146ADNOC-512D
80201-Jan-2147A-CHLOED
81201-Jan-2148ADNOC-811P
Vessels Activity Report
 

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.
Something like this?

It will probably give some erroneous results when thereis week 53 data for the beginning and end of the same year, in which case it would need to be done on date instead of week number. I'm not going to attempt a formula to do that without a better explanation of how the weeks should be paired.
Book1
QRST
23From weekTo WeekDP
245312513
2523145
264500
276700
288900
Sheet2
Cell Formulas
RangeFormula
S24:T28S24=SUM(COUNTIFS($K$24:$K$81,$Q24:$R24,$O$24:$O$81,S$23))
Q25:Q28Q25=R24+1
R25:R28R25=Q25+1
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Hi Jason
Thanks with the reply, what I need is to count the D in column O
Let say I replace my weeknum with a date and time entry example 1/10/2021 10:00 and next row is 2/10/21 14:00 and so on, how can I count how many times D appear in column O for every two weeks in a month

My manager want me to use a formula to count the numbers of time D appear for every two weeks in a month that is 14 days
I will appreciate so I can change my week number to date
 
Upvote 0
That still doesn't tell me how the weeks should be paired.

What is the criteria for identifying the beginning and end of a 2 week period? More specifically, how would you decide which are the correct dates / week numbers for the first 2 week period of the year?
 
Upvote 0
Jason thanks so much
But is there a way I could do this by date entry
The first criteria range is column O and am looking for the how many times D occured in every two weeks
Please advise me how to derive on this and if there is better way to count it in every 14 days of the month
Thanks
 
Upvote 0
If you don't answer the question that I asked then I can't help you!! I can write formulas, I can not read minds!

How do you decide where the first 2 weeks of the year should start and end??
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,752
Members
448,989
Latest member
mariah3

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