Date LOOKUP within Week Commencing Displays number

Pippy79

Board Regular
Joined
Nov 18, 2021
Messages
90
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a question, i have a list of dates and when the date falls within the week commencing date range i want it to display a number (1 in this example).

below is a small data set showing what I need it to look like.

hopefully someone can help?

Thanks!!



ABCDE
1​
APRAPRAPRAPR
2​
Week Commencing02/04/202309/04/202316/04/202323/04/2023
3​
8-Oct-23​
4​
25-Apr-23​
1
5​
26-Apr-23​
1
6​
27-Apr-23​
1
7​
28-Apr-23​
1
8​
29-Apr-23​
1
9​
30-Apr-23​
1
10​
5-Apr-23​
1
11​
5-Apr-23​
1
12​
5-Apr-23​
1
13​
5-Apr-23​
1
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
This maybe. Make sure dates are true dates.

=IF(AND(A3>=E$2,A3<E$2+7),1,"")
 
Upvote 0
Solution
how aout
=IF(AND($B4>=C$3,$B4<C$3+7),1,"")

BUT
30th april is shown as 1 and thats 7 days ahead so a SUNDAY again

Book4
ABCDEF
1
2APRAPRAPRAPR
32Week Commencing4/2/234/9/234/16/234/23/23
438-Oct-23    
5425-Apr-23   1
6526-Apr-23   1
7627-Apr-23   1
8728-Apr-23   1
9829-Apr-23   1
10930-Apr-23    
11105-Apr-231   
12115-Apr-231   
13125-Apr-231   
14135-Apr-231   
Sheet1
Cell Formulas
RangeFormula
C4:F14C4=IF(AND($B4>=C$3,$B4<C$3+7),1,"")
 
Upvote 1

Forum statistics

Threads
1,213,556
Messages
6,114,284
Members
448,562
Latest member
Flashbond

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