+ Reply to Thread
Results 1 to 4 of 4

MS 2010 - IF Statement to reutrn date or leave cell blank

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    MS 2010 - IF Statement to reutrn date or leave cell blank

    Hi there,

    I'm sure this is a very simple solution but I can't seem to put them together, I am trying to say that if a cell contains text then return todays date, if no text leave blank, here is what I have tried.

    =IF(ISTEXT(C11094),"=NOW()","")

    Meaning if there is text in that cell return todays date, if no text leave blank. I may be way off base too.. Any help is much appreciated!!

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

    Re: MS 2010 - IF Statement to reutrn date or leave cell blank

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: MS 2010 - IF Statement to reutrn date or leave cell blank

    You were nearly there:

    =IF(ISTEXT(C11094),NOW(),"")

    If you only want the date, though, it would be better to use TODAY() instead of NOW(), and I would write it like this:

    =IF(C11094="","",TODAY())

    with one less function call.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    08-13-2012
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: MS 2010 - IF Statement to reutrn date or leave cell blank

    Thank you!!! yes that does the trick exactly, have a very wonderful day!

+ 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