Skip sunday in Today()

annadinesh

Board Regular
Joined
Mar 1, 2017
Messages
123
Office Version
  1. 2019
Platform
  1. Windows
Dear Experts

i have a date formula in a cell =today()

i want a formula or vba which skips the date of sunday and shows the date on monday of every month.


Please support


Regards


Dinesh Saha
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Do you mean the cell always shows the date of the upcoming Monday?
Or it shows the current date, but on Sunday it shows the date of the next day (Monday)?

Sorry but "the date on monday of every month" doesn't make sense.
 
Upvote 0
Do you mean the cell always shows the date of the upcoming Monday?
Or it shows the current date, but on Sunday it shows the date of the next day (Monday)?

Sorry but "the date on monday of every month" doesn't make sense.

SERVICE BOOKING REPORT 22.12.2023
No. of CallSME NAMENo. of BookingBooking ConvertedConverted RatioBooking Not Reported
BINITA SAHA000%0
BOOKING LIST 23.12.2023
SL No.Customer NameRegd. NumberBooking NumberSA NameReported Y/N
BOOKING LIST 24.12.2023


Like : in this sheet Booking List is showing of today that is 23.12.23

and iin 2nd list it was showing 24.12.2023 which is holiday of our office , i want it should shows 25.12.23 instead of 24.12.23
 
Upvote 0
Your second date should refer to the first, rather than doing its own calculation.

Your mention of a holiday is still not consistent with your first post talking about Monday.

So I'll give you a formula that will give you the next day, unless the next day is a Sunday. In that case it will give you Monday.

Excel Formula:
=A4+1+IF(WEEKDAY(A4,16)=1,1,0)

It can be copied to the other days down below as long as each section has the same number of rows.
 
Upvote 0
Solution
What version of Excel are you using? Please edit your profile.
"Holidays" is a named range of holiday dates.
2 alternatives for you to review.

T202312a.xlsm
ABCDEF
1Holidays
2Sat 23-Dec-2325-12-23
3Sat 23-Dec-23
7e
Cell Formulas
RangeFormula
B2B2=LET(d,TODAY(),IF(WEEKDAY(d,2)=7,d+1,d))
B3B3=WORKDAY.INTL(TODAY()-1,1,11,Holidays)
Named Ranges
NameRefers ToCells
Holidays='7e'!$F$2B3
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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