+ Reply to Thread
Results 1 to 4 of 4

How to automatically populate a cell with the day.

  1. #1
    Registered User
    Join Date
    03-16-2014
    Location
    Vancouver
    MS-Off Ver
    Excel 2003
    Posts
    27

    How to automatically populate a cell with the day.

    Hey guys,

    I was wondering what the best formula would be to have a cell populate with the day of the week based on another cell having the date.

    Example:

    A2 = March 27, 2014
    B2 = Thursday

    I am currently using this formula:

    =CHOOSE(WEEKDAY(B19),"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")

    The problem I have is that if there is no date in the cell it will automatically show "Saturday". Is there anyway to have it just be blank?

    Thanks.

  2. #2
    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,049

    Re: How to automatically populate a cell with the day.

    Maybe this? (untested)

    =if(B19="","",CHOOSE(WEEKDAY(B19),"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"))

    Why not just format the cell to show the weekday though? Try custom format "dddd", instead of that big formula
    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

  3. #3
    Registered User
    Join Date
    03-16-2014
    Location
    Vancouver
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: How to automatically populate a cell with the day.

    Thanks.

    That formula works great.

  4. #4
    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,049

    Re: How to automatically populate a cell with the day.

    Did you consider just using format instead

+ 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. Replies: 0
    Last Post: 10-30-2012, 03:48 PM
  2. Automatically populate data based on another cell
    By fmluder93 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2011, 09:19 PM
  3. Populate cell value automatically between different tabs
    By chitian5057 in forum Excel General
    Replies: 3
    Last Post: 07-28-2010, 07:39 PM
  4. Automatically Populate Dependent Lists on other Cell
    By joseph_707 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2009, 02:33 PM
  5. Automatically Populate cell based on worksheet name
    By bjohnsonac in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2009, 10:00 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