Date Check return 1

JW2989

New Member
Joined
Jan 18, 2022
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi, I need some help with a date formula. I need the formula to output a '1' if the project falls within 2 dates specified.

1) Each project has a Start and End Date (column F and G)
2) I want the add a formula into the table cells that: Checks if the project Start and End dates fall within the Week commencing dates at the top in Row H7:T7.
3) Add a 1 if its within that date range so I can conditionally format

I have made a mock of of what I would expect for Project A showing 1's in the weeks the project is running

Book3
EFGHIJKLMNOPQRSTU
5
6JanuaryFebruaryMarch
7Project NameStart DateEnd Date03/01/202210/01/202217/01/202224/01/202231/01/202207/02/202214/02/202221/02/202228/02/202207/03/202214/03/202221/03/202228/03/202204/04/2022
8Project A12/01/202218/02/202201111110
9Project B28/01/202230/04/2022
10Project C15/01/202230/03/2022
11
Sheet1
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
How about
Excel Formula:
=--AND($F8<=H$7+6,$G8>=H$7)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,477
Messages
6,125,031
Members
449,205
Latest member
Eggy66

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