Date Formula

Rportz

Board Regular
Joined
Mar 24, 2016
Messages
55
ABC
1Friday, April 15, 2022Monday, April 17, 2023
2

Enter date in B1; Returns date in C1:

Date to be returned, in C1, should be 12 months from date in B1, minus one day; however, if date in C1 falls on a Weekend, then the return date (c1) will be next business day.

*In the example above, the return date in C1 should show Monday, April 17, 2023.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Why should it return the 17th when 14th April 2023 is a Friday?
 
Upvote 0
Why should it return the 17th when 14th April 2023 is a Friday?
When I enter 4/15/2022, 12 months minus one day returns Sunday, April 16, 2023. Since the 16th is a Sunday, I need it to return the next business day which is Monday, April 17, 2023.
 
Upvote 0
How can 1 day less than a year be the 16th rather than the 14th?
 
Upvote 0
1652986386340.png


F15+(WEEKDAY(F15)=7)*2+(WEEKDAY(F15)=1)*1-1

This is the formula I'm using in the green cell. The green cell is returning Sunday instead of the next business day.
 
Upvote 0
That formula cannot return a date 1 year in the future. Assuming the blue cell is F15
 
Upvote 0
That formula cannot return a date 1 year in the future. Assuming the blue cell is F15

B15 is Blue Cell
C15 is the "12"
F15 is the date to the right that is not highlighted and has the following formula =EDATE(B15,C15)
 
Upvote 0
Ok, that makes more sense, but it still doesn't answer my question.
You said
Date to be returned, in C1, should be 12 months from date in B1, minus one day
2 months less one day from 15th April 22 is 14th April 23 which is a Friday.
So is your question wrong?
 
Upvote 0
Ok, that makes more sense, but it still doesn't answer my question.
You said

2 months less one day from 15th April 22 is 14th April 23 which is a Friday.
So is your question wrong?
I'm sorry. I need the green cell to return a date twelve months from the date entered in the blue cell, minus 1 day. If that date ends up landing on a weekend, then it needs to return the next business date.

Does this make sense?
 
Upvote 0

Forum statistics

Threads
1,215,559
Messages
6,125,517
Members
449,236
Latest member
Afua

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