Check Weekdays (3 days in a row)

dhana_ram

New Member
Joined
Oct 2, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Please I need help :D
I want to know which record has a >=3 days in a row in weekdays (saturday and sunday is not count)

For example:
Apple - they had a stamp date 3 days in a row (thursday, friday, monday) = Clear.
Pineapple - they had a stamp date >3 days but only 09 - 11 Feb that are consecutive days = So I need to remove 15 Feb.

Screenshot 2022-02-27 224627.png


Any ideas on how to identify which item that has a stamp date in consecutive days?

Thank you,
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Map1
ABC
1datumsfruit3Cons
2zo 27/02/2022apple0
3ma 28/02/2022apple1
4di 01/03/2022apple1
5wo 02/03/2022apple1
6do 03/03/2022apple1
7vr 04/03/2022apple1
8za 05/03/2022apple0
9zo 06/03/2022apple0
10ma 07/03/2022apple0
11di 08/03/2022banaan0
12wo 09/03/2022apple1
13do 10/03/2022apple1
14vr 11/03/2022apple1
15za 12/03/2022apple0
16zo 13/03/2022apple0
17ma 14/03/2022apple1
18di 15/03/2022apple1
19wo 16/03/2022apple1
20do 17/03/2022apple1
21vr 18/03/2022apple1
22za 19/03/2022apple0
23zo 20/03/2022apple0
Blad1
Cell Formulas
RangeFormula
C2:C23C2=(LEN(SUBSTITUTE(TEXTJOIN("",,IF((COUNTIFS([datums],[@datums]+SEQUENCE(5,,-2),[fruit],[@fruit])>0)*(WEEKDAY([@datums]+SEQUENCE(5,,-2),2)<=5),"1","0")),"111",""))<5)+0
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:C23Expression=$C2=1textNO
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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