Forcing the due date to be a Friday

jazzista

Board Regular
Joined
Sep 15, 2014
Messages
86
Hello: I have a list of invoices with due dates per the attached list. How can I create a formula where I am forcing the due to be a Friday? I have tried using =IF(WEEKDAY(I5,1)<>6,WEEKDAY(i5,1)-6,I5) but I am missing the original due date and something else and of course, the formula does not work .I want to create a new column called Friday Due date with the new dates . Can somebody help please? Thanks in advance


Due date
Weekday nunb
Weekday
22-Jan-17
1
Sunday
14-Feb-17
3
Tuesday
25-Jan-17
4
Wednesday
13-Mar-17
2
Monday
20-Jan-17
6
Friday
27-Feb-17
2
Monday
30-Mar-17
5
Thursday
20-Mar-17
2
Monday
30-Jan-17
2
Monday
13-Feb-17
2
Monday
6-Jan-17
6
Friday
7-Jan-17
7
Saturday
19-Feb-17
1
Sunday
15-Feb-17
4
Wednesday

<tbody>
</tbody>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Are you saying the due date should be the NEXT friday, or Previous Friday ?
Which version of Excel ?

If you have XL2010+, this will return the following Friday from a given date (or remain the same for date that is already friday)
=WORKDAY.INTL(A2-1,1,"1111011")
 
Upvote 0
to push to the next Friday, an option would be
Code:
=D7+(7-WEEKDAY(D7,16))
 
Upvote 0
Hi Jonmo1: I have excel 2010. This formula worked nicely and yes I needed for the following Friday: This is what I needed. How would you do it if you wanted to retrieve the prior Friday? Thanks for the help. Regards


Are you saying the due date should be the NEXT friday, or Previous Friday ?
Which version of Excel ?

If you have XL2010+, this will return the following Friday from a given date (or remain the same for date that is already friday)
=WORKDAY.INTL(A2-1,1,"1111011")
 
Upvote 0
Jonmo1: I meant to say that I have excel 2016. Thanks . And very clever and elegant solution Thanks again
 
Upvote 0
Two weeks +1 makes next week, but also need +1 for the Saturday, makes 16. Then we back up a hair.
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,315
Members
449,081
Latest member
tanurai

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