SOLVED

Need to Highlight the range of Dates (Week) where today date is fallen

Brass Contributor

Hi I have a set of dates (7 days) set termed as Week-1,2,& 3.

 

I want to highlight the cell range where today date has fallen. Can you please help 

 

WEEK 1WEEK 2WEEK 3
18-Dec-2124-Dec-2114-May-2220-May-2209-Jul-2215-Jul-22
25-Dec-2131-Dec-2101-Jan-2207-Jan-2221-May-2227-May-22
01-Jan-2207-Jan-2204-Jun-2210-Jun-2206-Aug-2212-Aug-22
08-Jan-2214-Jan-2219-Mar-2225-Mar-2218-Jun-2224-Jun-22
6 Replies

@Sameer_Kuppanath_Sultan "Where today's date has fallen". What does that mean? What would you like to highlight in the example data set with today being the 13th of May 2022?

@Sameer_Kuppanath_Sultan 

As has already been said, your intention is not entirely clear from the text. Nevertheless, I am sending you these links, maybe they will help you :)
...if not, please describe in more detail :).
 

Use conditional formatting to highlight information

=Z1=TODAY()

 

Excel WEEKNUM Function

=WEEKNUM(A1,1)

 

@NikolinoDE 

 

Please See below table, today date 13-05-2022, which is fallen between 10-05-2022 to 16-05-2022 range in week 2 (Circled).

 

What I need is a conditional formatting (Green), whenever the date fallen between range of dates. (Weeks).

 

Sameer_Kuppanath_Sultan_1-1652446537283.png

 

best response confirmed by Sameer_Kuppanath_Sultan (Brass Contributor)
Solution

@Sameer_Kuppanath_Sultan 

With conditional formatting

=((B2<$A2)*(C2>$A2)*(MOD(COLUMN(B2),2)=0))+((B2>$A2)*(A2<$A2)*(MOD(COLUMN(B2),2)=1))

Before that, highlight B2:G7 and then Formula in Conditional formatting and select color.

 

...maybe it will help :)

 

NikolinoDE

@Sameer_Kuppanath_Sultan 

here is a suggested solution with SUMPRODUCT...I think it fits better :)).

=SUMPRODUCT(($B2:$G2<$A2)*($C2:$H2>$A2)*(MOD(COLUMN($B2:$G2),2)=0))

1 best response

Accepted Solutions
best response confirmed by Sameer_Kuppanath_Sultan (Brass Contributor)
Solution

@Sameer_Kuppanath_Sultan 

With conditional formatting

=((B2<$A2)*(C2>$A2)*(MOD(COLUMN(B2),2)=0))+((B2>$A2)*(A2<$A2)*(MOD(COLUMN(B2),2)=1))

Before that, highlight B2:G7 and then Formula in Conditional formatting and select color.

 

...maybe it will help :)

 

NikolinoDE

View solution in original post