Search the next date from formula TODAY

kayza

Board Regular
Joined
Apr 29, 2015
Messages
61
Office Version
  1. 2007
Platform
  1. Windows
Hi Excel Master

I'm pretty stumped so I'm hoping someone can help!

Let's say the current day and date when using the formula =TODAY() is Monday, 01/11/2017, and I place that formula in cell A1

In cell C1, I want to display the date for Friday (from the date I illustrated above then the result I want is 5).
although the date in cell A1 changes according to the current date, the value in cell C1 still displays 5, and if the current date is equal to 5, then the value in cell C1 will change automatically generate the date for the next Friday. which is 12. and so on.

hopefully the above explanation can be understood
Thank you in advance
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
not sure if this is what you're after, this will show next Friday's date

=A1+7-WEEKDAY(A1+1)
 
Upvote 0
Hi AlanY, Thanks alot for your help
I have make some modifications from the formula you've given:
=TEXT(A1+9-WEEKDAY(A1);"d")


but unfortunetely, I made a critical mistake when giving an example of the current date,
I thought that by giving my own date example (not computer system date), it will make me more easier to apply into my workbook, but I was wrong, and I'm sorry


And since the first day in my workplace is Friday, so i guess the standard WeekDay formula couldn't answered my question. And, once again I'm pretty stumped here, so i tried to combined it with IF functions to change the first day become Friday. Although this combinations give me the value what I'm looking for, but it's look too long and also rough.
and here it is :
=TEXT(A1+9-IF(TEXT(WEEKDAY(A1);"d")="6";1;IF(TEXT(WEEKDAY(A1);"d")="5";7;IF(TEXT(WEEKDAY(A1);"d")="4";6;IF(TEXT(WEEKDAY(A1);"d")="3";5;IF(TEXT(WEEKDAY(A1);"d")="2";4;IF(TEXT(WEEKDAY(A1);"d")="1";3;2))))))-1;"d")




so, Is there any idea how to make it simple and better?
Any help would be appreciated


Thank you in advance
 
Upvote 0
Hi Tetra201,


This is absolute simple and perfect.
It works amazingly fast and save me a lot of time.
Once again thank you very much.


Best regards,
kayza
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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