Adding 21 days 10hr 46 min to 03/23/2020

2_RJJ

New Member
Joined
Aug 26, 2020
Messages
1
Office Version
  1. 2019
Platform
  1. MacOS
Example
Cell A1 contains 03/23/2020 at 06hr 21min
Cell B1 contains 21 Days 10hrs 46 mins

C1 = A1+B1. The result in C1 must include the date and the time of the addition. (A1+B1)

However, the resultant date in C1 needs to exclude dates that fall on weekends and Public Holidays, they are to be ignored. The result must only show weekday answers.

I have tried using the workday function, but I'm really struggling to get this working.

Any help would be very much appreciated.

Thanks

Ron
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Try something like this. Note that excel does not know public holidays by default. They are not the same in all countries and some vary by year. You will need to provide the formula with a list of public holiday dates. These are assumed to be in D1:D10 in the formula, but can be placed anywhere.

=WORKDAY(A1,B1,$D$1:$D$10)+MOD(A1,1)+MOD(B1,1)
 
Upvote 0

Forum statistics

Threads
1,215,011
Messages
6,122,680
Members
449,091
Latest member
peppernaut

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