Can't figure out the formula.....

madddogcom

New Member
Joined
Feb 7, 2014
Messages
4
Working on a project tracking worksheet. My cells with formulas are as follows
1693511360342.png

  • Duration is the standard number input for a typical task
  • Start date is the Due Date or finish date minus the duration number: =J5-G5
  • The Due/finish Date is just the date it was finished.
  • The dates start on Monday for a whole week then the following week.
When the duration and due date is added, a formula in the week date column places an "X" there. With conditional formatting I then color the week green. Formula for adding the "X":=IF(AND(K$4>=$I5,K$4<=$J5),"X","")

The problem I have is anything less than 3 for a duration does not add the "X" in the work week and if a task finished on Tuesday and the task was 4 days work, thus starting on Thursday. My representation is off because we don't work weekends.

Can someone show me how to get the formula to work for anything less than 3 days and factor in no weekends also? I tried this, didn't work. =IF(or(weekday(K$4)=1,1)IF(AND(K$4>=$I5,K$4<=$J5),"X",""))

Regards,
Mike
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Please try to post more than 1 example for the forum to try to figure out how to do this. Mr. Excel has a tool xl2bb add in (link below) that allows you to post miniworksheets. At minimum please post a table that has the base data as well as expected results.

But, this is my attempt at it:

Mr excel questions 58.xlsm
GHIJKLM
4Task DurationStart DateDue DateMon 2023/08/14Mon 2023/08/21Mon 2023/08/28
53Mon 2023/08/21Thu 2023/08/24xx 
61Wed 2023/08/23Thu 2023/08/24 x 
72Tue 2023/08/22Thu 2023/08/24 x 
84Fri 2023/08/18Thu 2023/08/24xx 
95Thu 2023/08/17Thu 2023/08/24xx 
106Wed 2023/08/16Thu 2023/08/24xx 
117Tue 2023/08/15Thu 2023/08/24xx 
128Mon 2023/08/14Thu 2023/08/24xx 
139Fri 2023/08/11Thu 2023/08/24 x 
madddogcom
Cell Formulas
RangeFormula
L4:M4L4=K4+7
K5:M13K5=IF(OR( AND($I5>=K$4,$I5<=K$4+7), AND($J5>=K$4,$J5<=K$4+7) ),"x","")
I5:I13I5=WORKDAY.INTL(J5,-G5,1)
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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