+ Reply to Thread
Results 1 to 5 of 5

Display results based on the day of the week

  1. #1
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    207

    Display results based on the day of the week

    I was just wondering if you could help. I need to display results based on day of the week. The cells contains date format with the following type: Wednesday, March 14, 2012. I need to return the result with the following logic. If date contains Monday or Tuesday, display Yes, otherwise, No.

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Display results based on the day of the week

    Assuming dates are NUMBERS (not TEXT) which start in A2 ... Paste this in B2 and copy down:
    =IF(WEEKDAY(A2,2)<3,"YES","NO")

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 08-04-2017 at 09:34 PM.

  3. #3
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    207

    Re: Display results based on the day of the week

    I also need the same for Monday, Wednesday and Friday. Any ideas?

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Display results based on the day of the week

    Adapt leelnich's formula

    =IF(OR(WEEKDAY(A2,2)={1,3,5}),"YES","NO")
    Dave

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Display results based on the day of the week

    Looks like you've got it. However, for the sake of completeness, if your dates WERE text, this would work:
    =IF(OR(LEFT(A2,3)={"Mon","Tue"}),"YES","NO")

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 08-04-2017 at 08:56 PM.

+ 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] Display top three results based on column, based on major
    By alexllap in forum Excel General
    Replies: 2
    Last Post: 07-13-2017, 05:59 PM
  2. Ratio display based upon what day/week it is.
    By TodEth in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-16-2014, 10:28 AM
  3. Display results based on certain categories of users
    By tnovak in forum Excel General
    Replies: 2
    Last Post: 10-14-2014, 12:51 PM
  4. Display numerous results based on three criteria
    By 54321adam in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2013, 12:13 PM
  5. [SOLVED] Display Week Number based on special requirements
    By PY_ in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-05-2013, 08:50 AM
  6. Display Top 20 results based on certain criteria
    By ash_farooq in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-11-2012, 02:54 AM
  7. Display Week Dates based on a given Date
    By LordMarcus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2008, 01:38 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