# WEEKDAY & TODAY function.

#### bedgar

##### New Member
Hi Everyone!

So I have an Excel doc that I print out for a hand written report. I have a week beginning cell that should always show the upcoming Monday date, UNLESS today is Monday, then it should show today's date. I usually print this out on Friday, but last week did not have time to get it done. So today I open it for the first time on a Monday and it is showing me next Monday's date.

This is the code I was using which worked great if not a opened on Monday:
Code:
``=TODAY()+(7-WEEKDAY(TODAY(),2)+1)``

So I attempted to modify it and at first thought I nailed it. To test I set my computer date to a Thursday and opened it up. It showed the date for that Thursday and not the upcoming Monday as expected. Here is that faulty code:
Code:
``=IF(WEEKDAY(TODAY()=2),TODAY(),TODAY()+(7-WEEKDAY(TODAY(),2)+1))``

Any help is appreciated.

### Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Re: Help with a WEEKDAY & TODAY function.

Hi & welcome to MrExcel
Try
=IF(WEEKDAY(TODAY(),2)=1,TODAY(),TODAY()+(7-WEEKDAY(TODAY(),2)+1))

Last edited:
Re: Help with a WEEKDAY & TODAY function.

That was it. Thank you Fluff! You made my day.

Re: Help with a WEEKDAY & TODAY function.

You're welcome & thanks for the feedback

Re: Help with a WEEKDAY & TODAY function.

I know you asked for WEEKDAY and TODAY, but here is a shorter way:
=WORKDAY.INTL(TODAY()-1,1,"0111111")

Format as date.

Re: Help with a WEEKDAY & TODAY function.

Here is a shorter way with WEEKDAY and TODAY:

=TODAY()+7-WEEKDAY(TODAY(),12)

Re: Help with a WEEKDAY & TODAY function.

Thanks Scott and Tetra. Simplified is definitely better. I have been humbled like always. You guys all rock!

Replies
1
Views
80
Replies
0
Views
395
Replies
1
Views
132
Replies
4
Views
567
Replies
0
Views
135

1,196,323
Messages
6,014,643
Members
441,834
Latest member
GHOSTOF309

### 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.

### Which adblocker are you using?

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

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