+ Reply to Thread
Results 1 to 4 of 4

Return numbers of days from a day

  1. #1
    Registered User
    Join Date
    08-25-2017
    Location
    Phoenix, AZ
    MS-Off Ver
    2013
    Posts
    74

    Return numbers of days from a day

    Hello I am using Office 2007.

    Here is what I need the formula to do:

    If today is Thursday, show the date for the following Monday (as in 8/28/17)

    If today is Friday, show the date for the following Tuesday (as in 8/29/17)

    If today is Monday or Tuesday or Wednesday, add one to today's date and display tomorrow's date

    Here is the formula I'm using but it's not right

    =if(or(weekday(today() =4), (weekday(today()=5), today()+4,today()+1)))


    What am I doing wrong? Thanks for your help in advance

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Help with a date

    Maybe something like...

    =IF(OR(WEEKDAY(TODAY(),2)={1,2,3}),TODAY()+1,IF(OR(WEEKDAY(TODAY(),2)={4,5}),TODAY()+4,""))
    Last edited by jeffreybrown; 08-25-2017 at 07:13 PM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    08-25-2017
    Location
    Phoenix, AZ
    MS-Off Ver
    2013
    Posts
    74

    Re: Return numbers of days from a day

    Wow, that works! Thank you very much!

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Return numbers of days from a day

    You're welcome. Glad it helped!

+ 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. [SOLVED] Return Data From Last 7 Days
    By tangmere.milli in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-08-2018, 12:49 PM
  2. Return all dates that occur in the next 30 days
    By puzzlelover22 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2014, 03:32 PM
  3. Converting numbers of days into numbers of months
    By Gurditt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2013, 05:58 AM
  4. [SOLVED] Number of Days Between Dates but if no Date go to next and return # of Days
    By Bikeman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-14-2012, 12:02 PM
  5. [SOLVED] Vlookup formula - return only numbers for cells containing text and numbers
    By Andrew E Smith in forum Excel General
    Replies: 11
    Last Post: 07-03-2012, 06:07 AM
  6. Return only work days
    By mhart210 in forum Excel General
    Replies: 1
    Last Post: 08-18-2005, 12:05 PM
  7. [SOLVED] function to return days
    By crapit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-01-2005, 09:05 AM

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