+ Reply to Thread
Results 1 to 4 of 4

If the date is a weekday then...

Hybrid View

  1. #1
    Guest
    Join Date
    02-19-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    If the date is a weekday then...

    Hey everyone,

    This is my first post so, my apologies if there are any faux pas. I'm trying to do an IF function involving the date.

    Basically if the current day is a weekday then I want the cell value to be 30. If the current date is a weekend then I want the cell value to be 50. I'm pretty lost on how to write the formula so any help would be much appreciated

    Thanks for your time
    Last edited by thexanderharris; 02-19-2010 at 04:19 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,102

    Re: If the date is a weekday then...

    Here, try this:

    =IF(WEEKDAY(A1,2)>5,50,30)

    where A1 is your date

    Or this if you looking for TODAY()

    =IF(WEEKDAY(TODAY(),2)>5,50,30)
    Never use Merged Cells in Excel

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: If the date is a weekday then...

    Try

    =IF(WEEKDAY(TODAY(),2)<6,30,50)
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: If the date is a weekday then...

    Your post does not comply with Rule 6 of our Forum RULES. Common courtesy is the order of the day. Avoid coarse language, provide feedback to suggested solutions, and take the time to thank those who took their time to help you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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