+ Reply to Thread
Results 1 to 5 of 5

How to return yesterdays date unless today is monday then return previous fridays date

  1. #1
    Registered User
    Join Date
    10-24-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    13

    How to return yesterdays date unless today is monday then return previous fridays date

    Hello,

    I need a formula that will return yesterdays date like =today()-1 however if today is Monday i need it to return fridays date instead of sundays.


    Hope this exlains it well enough.


    Ciaron

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: How to return yesterdays date unless today is monday then return previous fridays date

    =if(weekday(today()=2),today()-3,today()-1)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-24-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    13

    Re: How to return yesterdays date unless today is monday then return previous fridays date

    Yes thats perfect thank you very much!

  4. #4
    Registered User
    Join Date
    06-07-2019
    Location
    Singapore
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    5

    Re: How to return yesterdays date unless today is monday then return previous fridays date

    try =TODAY()-1-IF(WEEKDAY(TODAY(),2)=1,2)


    --------------------------------------------------------------------------------
    Please click on the small star icon below the post if the response helps

  5. #5
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: How to return yesterdays date unless today is monday then return previous fridays date

    Quote Originally Posted by alansidman View Post
    =if(weekday(today())=2,today()-3,today()-1)
    I am not sure but closing bracket in condition should be like above.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Find Text Within Table, Return First Row Date, Then Compare to Today's Date
    By EduardStoo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2019, 10:47 AM
  2. [SOLVED] Return Next Date After Today - No Arrays
    By hardofhearing in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2016, 04:10 PM
  3. [SOLVED] VBA Date of Previous Weeks Monday From Current Date
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-24-2014, 03:50 AM
  4. [SOLVED] Find yesterdays date in range and return row number to be used in offset
    By graphicgoose in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-13-2014, 09:20 PM
  5. [SOLVED] Return the date of the previous Monday
    By pickslides in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-19-2014, 10:01 AM
  6. [SOLVED] Display Fridays date (and message) if current date is Monday
    By Pierce Quality in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2013, 09:40 AM
  7. Using Today Date to return YTD budget
    By brotherwo in forum Excel General
    Replies: 21
    Last Post: 02-21-2011, 11:04 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1