Excel Formulae (Date Logic)

saatt79

New Member
Joined
Dec 17, 2017
Messages
5
Hi,

I need a formulae to calculate Due Date including Week-end and Excluding Holidays only


Input = Start Date and No. of Days


Output = Due Date


Logic = Start Date+No.of Days-Holidays (include Saturday and Sunday)
 
What is Day 0 with your calculation?


Excel 2010
ABCDE
1Start6-Dec-176-Dec-17
2Days37-Dec-17
312-Dec-179-Dec-17
410-Dec-17
5
12a
Cell Formulas
RangeFormula
B3=WORKDAY.INTL(B1,B2,"0000000",Hol)
Named Ranges
NameRefers ToCells
Hol='12a'!$E$1:$E$4
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Thanks so much for your valuable contribution. I have just checked with one of my scenario to calculate due with your formulae and result seems to be incorrect. Below is the example I used,
Start Date = 12/6/2017 | No. of days = 3 | Holidays = 12/6,12/7,12/9,12/10

Due Date should be = 12/13... Below is the manual calculation for the result. Can you pls help...

12/6 - Holiday
12/7 - Holiday
12/8 - Day 0
12/9 - Holiday
12/10 - Holiday
12/11 - Day 1
12/12 - Day 2
12/13 - Day 3

Why 12/8 is Day 0? Shouldn't it be Day 1?

If you don't want to count the first day maybe...
=WORKDAY.INTL(A2,B2+1,"0000000",Holidays)

M.
 
Upvote 0
Reason for picking 12/8 as 0 Day is because that's our first working day and we will consider any receipt as 0 Day for calculating our Turn around time. Because always the day we receive an inventory is always zero day.
I tried updating the below formulae and I am getting #value error

Why 12/8 is Day 0? Shouldn't it be Day 1?

If you don't want to count the first day maybe...
=WORKDAY.INTL(A2,B2+1,"0000000",Holidays)

M.
 
Upvote 0
Thanks so much. When I apply this formulae I am getting #value error. can you pls help

Worked for me

[TABLE="class: grid"]
<tbody>[TR]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"]
A
[/TD]
[TD="bgcolor: #DCE6F1"]
B
[/TD]
[TD="bgcolor: #DCE6F1"]
C
[/TD]
[TD="bgcolor: #DCE6F1"]
D
[/TD]
[TD="bgcolor: #DCE6F1"]
E
[/TD]
[/TR]
[TR]
[TD="bgcolor: #DCE6F1"]
1
[/TD]
[TD]
StartDate​
[/TD]
[TD]
Days​
[/TD]
[TD]
Result​
[/TD]
[TD][/TD]
[TD]
Holidays​
[/TD]
[/TR]
[TR]
[TD="bgcolor: #DCE6F1"]
2
[/TD]
[TD]
12/06/2017​
[/TD]
[TD]
3​
[/TD]
[TD]
12/13/2017​
[/TD]
[TD][/TD]
[TD]
12/06/2017​
[/TD]
[/TR]
[TR]
[TD="bgcolor: #DCE6F1"]
3
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12/07/2017​
[/TD]
[/TR]
[TR]
[TD="bgcolor: #DCE6F1"]
4
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12/09/2017​
[/TD]
[/TR]
[TR]
[TD="bgcolor: #DCE6F1"]
5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12/10/2017​
[/TD]
[/TR]
[TR]
[TD="bgcolor: #DCE6F1"]
6
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Formula in C2
=WORKDAY.INTL(A2,B2+1,"0000000",Holidays)
where Holidays = E2:E5

Check if the date in A2 is a real date (number), not text.
Try in an empty cell
=ISNUMBER(A2)
it should return TRUE if A2 contains a date.

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,225,760
Messages
6,186,874
Members
453,381
Latest member
tcell

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