Working with a date modification

dbarbella

New Member
Joined
Jun 6, 2017
Messages
32
Hi all,
I'm using this in Google Sheets.

I have two working formulas:

Take date in A1, and change to the next coming Friday in the calendar
=$A1+6-MOD(WEEKDAY($A1),7)

There is one anomaly that I can't seem to work out.
  • If A1 equals a Friday, then the formula shows the same day as being the next Friday.
    • so if A1 = 9/7/2018, it is returning 9/7/2018

How can I make that formula not choose the same Friday as A1, but the following Friday?
if A1 = Friday 9/7/2018, then the formula should return 9/14/2018

(and of course, 9/6/2018, would return 9/7/2018)

I'm looking to get that formula for finding the Next Thursday, and the Next Friday of A1
(two different formulas, that will be in different cells).

Thanks so much
-Dave
 
Last edited:

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I think this formula will do what you want...

=$A1+7-MOD(WEEKDAY($A1)+1,7)
 
Upvote 0
Thank you so much Rick, that did it.

I attempted to modify it for the Thursday version of the same, but was unsuccessful (Worked for some original days of the week, but not all).

Is there a Thursday variation of the same?
 
Upvote 0
I attempted to modify it for the Thursday version of the same, but was unsuccessful (Worked for some original days of the week, but not all).

Is there a Thursday variation of the same?
This seems to work...

=$A1+7-MOD(WEEKDAY($A1)+2,7)
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,409
Members
448,959
Latest member
camelliaCase

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