+ Reply to Thread
Results 1 to 5 of 5

Return value based on weekday or weekend

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    57

    Return value based on weekday or weekend

    I need a formula that returns the value based on if it is a weekday or weekend

    Date Value Weekday Weekend
    Mon 21
    Tue 30
    Wed 58
    Thur 14
    Fri 8
    Sat 47
    Sun 22


    Thank you

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Return value based on weekday or weekend

    Hi

    'It' being what exactly? A date cell, a text string, today's date???

    A workbook would be useful so please upload one. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well. or instance is there some rule that connects the numbers you show to the days of the week or are they just arbitrary?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Return value based on weekday or weekend

    Maybe something like this?
    A
    B
    C
    D
    1
    Date Value Weekday Weekend
    2
    Mon
    21
    21
    3
    Tue
    30
    30
    4
    Wed
    58
    58
    5
    Thur
    14
    14
    6
    Fri
    8
    8
    7
    Sat
    47
    47
    8
    Sun
    22
    22


    C2=IF(D2="",B2,"")
    D2=IF(OR(A2="sat",A2="sun"),B2,"")
    both copied down as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    06-10-2013
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    57

    Re: Return value based on weekday or weekend

    Thank you guys

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Return value based on weekday or weekend

    Happy to help

+ 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] Calculate Weekday and weekend rates
    By sirdon in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-22-2018, 08:20 PM
  2. [SOLVED] weekend and weekday formulas
    By oxcor in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 11-14-2017, 01:21 PM
  3. [SOLVED] Weekday/Weekend Formula
    By nmckever in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-19-2017, 04:36 PM
  4. [SOLVED] Convert date to weekday or weekend
    By RookA1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2017, 01:09 PM
  5. [SOLVED] Have VBA Identify if it is a weekend or weekday
    By jdoerr1021 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-17-2016, 06:37 PM
  6. Average Last 7 Days by Weekday/Weekend
    By cleone1387 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-28-2014, 01:32 PM
  7. [SOLVED] Calculate Overtime Weekday different from Weekend
    By Lg101 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-07-2014, 04:41 PM

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