Bi weekly formula...

Iain McBride

New Member
Joined
Aug 17, 2018
Messages
38
Hi - trying to formulate a Gantt chart to allow me to show where some of our employees will be on a daily basis.

So far I have the formula:
=IF(AND(G$8="Tues",G$9>=$D17,G$9<=$E17),"X","")

This allows me to highlight where people are (in this example) every Tuesday - is there a way to highlight the areas they work on a bi-weekly basis?

Thanks in advance

Iain
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi,

Do not know what bi-weekly means to you ... and since you seem not to use actual dates ...

May be something along this line could help :

Code:
=IF(AND(OR(G$8="Tues",G$8="Thur"),G$9>=$D17,G$9<=$E17),"X","")
 
Upvote 0
Hi James,
The formula highlights where the employee is every Tuesday - however there are instances whereby they are working every OTHER Tuesday - and trying to find a formula to work for that element (if possible)
 
Upvote 0
Hi,

As I said earlier ... you seem not to use actual dates ... is that right ...?

Is there a number of fixed columns between your Tuesdays ...?
 
Upvote 0
James - I have amended the formula to:

=IF(AND(P$8="Thur",P$9>=$D10,P$9<=$E10),"X","")

and the spreadsheet looks like:

MonTuesWedThurFriMonTuesWedThurFriMonTuesWedThurFriMonTuesWedThurFriMonTuesWedThurFri
Task IDName of EWTask DurationStart dateEnd Date03/09/201804/09/201805/09/201806/09/201807/09/201810/09/201811/09/201812/09/201813/09/201814/09/201817/09/201818/09/201819/09/201820/09/201821/09/201824/09/201825/09/201826/09/201827/09/201828/09/201801/10/201802/10/201803/10/201804/10/201805/10/2018
Stuart 31510/09/201822/07/2019 ### X X X
31510/09/201822/07/2019 X X X X
6101/10/201801/12/2018 X
6101/10/201801/12/2018 X
7029/04/201908/07/2019
7007/01/201918/03/2019
7029/04/201908/07/2019
7007/01/201918/03/2019
31507/09/201819/07/2019 X X X X X
31807/09/201822/07/2019 X X X X
0

<colgroup><col><col><col><col><col><col><col span="2"><col><col><col><col span="3"><col><col><col span="3"><col><col><col span="3"><col><col><col span="3"><col></colgroup><tbody>
</tbody>

So the days are running across the column (with weekends there but hidden).

Not sure if that adds any more clarity or not?!
 
Upvote 0
Iain,

First the good news... you are actually using Dates and Not Text ....

In which cell are you using the formula shown ?

Is the first Monday in Column F ....?
 
Upvote 0
Sorry for the lack of info - struggling to get my head around this (can you tell?? lol)

Yes Monday is in Column F

I copied the formula from Cell P10

Iain
 
Upvote 0
Well ... little by little ... you will get there ...

Say we are dealing with Row 10 ... which I understand is the First row of your table ...

Is your objective to show an X ... for all the Thursdays which appear within the time frame defined by cells D10 (start date) and E10 (end date) ...
 
Upvote 0
By the way ... to be on the safe side ... can you confirm the following :

1. In cell F9 there is an input date 03-09-2018 and all following dates in row 9 have in fact the formula = F9 + 1 copied till the last column ...

2. In cell F8 ... you have the formula = F9 ... and the custom format applied : ddd
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,696
Members
449,048
Latest member
81jamesacct

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