Calculating a Date, Returning a previous date if Weekend

sarahmoa

New Member
Joined
Jun 5, 2016
Messages
16
I've tried to find a formula, but I'm having trouble making any of them work for me.

I'd like to try to calculate a date, but roll to the previous Friday if it falls on a weekend.

B3 - Date
C3 - Due x number of days before B3
D3 - Mailing Days (this would also be subtracted from the number of days.
E3 - Due Date
My formula is in column E:
=B3-C3-D3 will calculate the due date, but I'd like it to roll to the previous Friday if the date falls on the weekend.

I've also seen other formulas account for holidays as well - does this have to be a separate spreadsheet for reference, or is there anything native in Excel?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Put your list of holidays in the sheet (or could be another sheet), I've used range H2:H10 in the current sheet.

Then in E3 try

=WORKDAY(B3-C3-D3+1,-1,$H$2:$H$10)
 
Upvote 0
Look at the following functions in Excel:

WORKDAY
WORKDAY.INTL

NETWORKDAYS
NETWORKDAYS.INTL
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,438
Messages
6,124,873
Members
449,192
Latest member
MoonDancer

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