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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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

A
B
C
D
E
1
StartDate​
Days​
Result​
Holidays​
2
12/06/2017​
3​
12/13/2017​
12/06/2017​
3
12/07/2017​
4
12/09/2017​
5
12/10/2017​
6

<tbody>
</tbody>


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,216,106
Messages
6,128,863
Members
449,473
Latest member
soumyahalder4

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