Assing task date

MohitMathur

New Member
Joined
May 26, 2014
Messages
12
Hi All,

Please find the attached file, where I am finding date in column 'C' and here condition, if sat and sun comes so ignore the date and jump on Next working day but for Monday it will jump on wed because 09Jul and 10 Jul task already been assigned.

Regards
Mohit


DayDate1Output
Thu5-Jul-185-Jul-18
Thu5-Jul-185-Jul-18
Thu5-Jul-185-Jul-18
Fri6-Jul-186-Jul-18
Fri6-Jul-186-Jul-18
Fri6-Jul-186-Jul-18
Sat7-Jul-189-Jul-18
Sat7-Jul-189-Jul-18
Sat7-Jul-189-Jul-18
Sun8-Jul-1810-Jul-18
Sun8-Jul-1810-Jul-18
Sun8-Jul-1810-Jul-18
Mon9-Jul-1811-Jul-18
Mon9-Jul-1811-Jul-18
Mon9-Jul-1811-Jul-18

<tbody>
</tbody>
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hey Mohit,

So what happens to Tuesday task ? It gets assigned in the same day before the task of Monday which has been assigned to Wednesday ? Can you extend the sample data to inlcude the 2nd week as well so we can understand the logic
 
Upvote 0
Hey Mohit,

So what happens to Tuesday task? Does it get assigned on the same day before the task of Monday which has been assigned to Wednesday? Can you extend the sample data to include the 2nd week as well so we can understand the logic


"So here task "A" I have to complete on 2nd Jul and " B" on 3rd Jul and so on but when I see Task " F" that comes on Sat and Task "G" on Sunday but that task I have to complete on Mon which is 9th Jul.
so I have to just skip the SAT and SUN but in continues date order."

DayTaskDateResult
MonA2-Jul-182-Jul-18
TueB3-Jul-183-Jul-18
WedC4-Jul-184-Jul-18
ThuD5-Jul-185-Jul-18
FriE6-Jul-186-Jul-18
SatF7-Jul-189-Jul-18Task F has to complete on 7th but on 7th we have SAT so this task has to move to Next Monday.
SunG8-Jul-1810-Jul-18Task G have to complete on 8th but on 8th we have SUN so this task has to move to Next Tuesday
MonH9-Jul-1811-Jul-18for Monday my date should be Wednesday
TueI10-Jul-1812-Jul-18
WedJ11-Jul-1813-Jul-18
ThuK12-Jul-1816-Jul-18
FriL13-Jul-1817-Jul-18
SatM14-Jul-1818-Jul-18Same here
SunN15-Jul-1819-Jul-18Same here
MonO16-Jul-1820-Jul-18
TueP17-Jul-1823-Jul-18
WedQ18-Jul-1824-Jul-18

<tbody>
</tbody>



Best Regards,
mohit
 
Upvote 0
Ok, maybe the easiest way to do it is identify the first date in column D then copy the below formula


Book1
ABCDEFG
1DayTaskDateResultDate DayResult Day
2MonA02-Jul-1802-Jul-18MonMon
3TueB03-Jul-1803-Jul-18TueTue
4WedC04-Jul-1804-Jul-18WedWed
5ThuD05-Jul-1805-Jul-18ThuThu
6FriE06-Jul-1806-Jul-18FriFri
7SatF07-Jul-1809-Jul-18SatMon
8SunG08-Jul-1810-Jul-18SunTue
9MonH09-Jul-1811-Jul-18MonWed
10TueI10-Jul-1812-Jul-18TueThu
11WedJ11-Jul-1813-Jul-18WedFri
12ThuK12-Jul-1816-Jul-18ThuMon
13FriL13-Jul-1817-Jul-18FriTue
14SatM14-Jul-1818-Jul-18SatWed
15SunN15-Jul-1819-Jul-18SunThu
16MonO16-Jul-1820-Jul-18MonFri
17TueP17-Jul-1823-Jul-18TueMon
18WedQ18-Jul-1824-Jul-18WedTue
Sheet1
Cell Formulas
RangeFormula
D3=WORKDAY(D2,1)
 
Upvote 0
I think my above suggestion is not correct as it is not considering the dates in column C. Again, use the below forumla after manually setting up the first date in column D


Book1
ABCDEFG
1DayTaskDateResultDate DayResult Day
2MonA02-Jul-1802-Jul-18MonMon
3TueB03-Jul-1803-Jul-18TueTue
4WedC04-Jul-1804-Jul-18WedWed
5ThuD05-Jul-1805-Jul-18ThuThu
6FriE06-Jul-1806-Jul-18FriFri
7SatF07-Jul-1809-Jul-18SatMon
8SunG08-Jul-1810-Jul-18SunTue
9MonH09-Jul-1811-Jul-18MonWed
10TueI10-Jul-1812-Jul-18TueThu
11WedJ11-Jul-1813-Jul-18WedFri
12ThuK12-Jul-1816-Jul-18ThuMon
13FriL13-Jul-1817-Jul-18FriTue
14SatM14-Jul-1818-Jul-18SatWed
15SunN15-Jul-1819-Jul-18SunThu
16MonO16-Jul-1820-Jul-18MonFri
17TueP17-Jul-1823-Jul-18TueMon
18WedQ18-Jul-1824-Jul-18WedTue
Sheet1
Cell Formulas
RangeFormula
D3=IF(WORKDAY(D2,1)>=C3,WORKDAY(D2,1),IF(OR(WEEKDAY(C3)=1,WEEKDAY(C3)=7),WORKDAY(C3,1),C3))
 
Upvote 0
If you want the first cell to be picked up by the formula instead of manual, use the below

=IFERROR(IF(WORKDAY(D1,1)>=C2,WORKDAY(D1,1),IF(OR(WEEKDAY(C2)=1,WEEKDAY(C2)=7),WORKDAY(C2,1),C2)),IF(OR(WEEKDAY(C2)=1,WEEKDAY(C2)=7),WORKDAY(C2,1),C2))
 
Upvote 0

Forum statistics

Threads
1,215,700
Messages
6,126,285
Members
449,308
Latest member
VerifiedBleachersAttendee

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