+ Reply to Thread
Results 1 to 8 of 8

Date Formula

  1. #1
    Registered User
    Join Date
    12-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Date Formula

    Hi,

    I have created a formula in cell C1, something like this =text(b1,"dddd"). Other words, when I type the date in cell B1, the day will automatically pop up in cell c1. It works fine but there is one problem which is after I clear the date in B1, the day still stay there. Now, how do I get rid of the day when the date in cell b1 was erased?

    Thanks.

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

    Re: Date Formula

    How about...

    =IF(B1<>"",TEXT(B1,"dddd"),"")
    HTH
    Regards, Jeff

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Date Formula

    try this

    =IF(B1<>"",TEXT(B1,"dddd"),"")

  4. #4
    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: Date Formula

    How are you clearing/erasing B1?

    I suggest you upload your workbook and describe exactly what you do.
    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.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: Date Formula

    Try this version

    =TEXT(B1,"dddd;;")
    Audere est facere

  6. #6
    Registered User
    Join Date
    12-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Date Formula

    Quote Originally Posted by jeffreybrown View Post
    How about...

    =IF(B1<>"",TEXT(B1,"dddd"),"")
    Jeff,

    It works, thanks a bunch!

  7. #7
    Registered User
    Join Date
    12-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Date Formula

    daddylonglegs, Richard Buttrey & rcm:

    Thank you for all your helps. They all work well.

    Have a happy holiday!

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

    Re: Date Formula

    You are welcome and Happy Holidays to you and yours

+ 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