+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Show Formula for only date

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-16-2011
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    112

    Show Formula for only date

    I want the formula below to work only if there is a date Enter in the cell. If there is next I want to ignore the formula

    =IF(A1="",B1,A1)

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Show Formula for only date

    Hi Jerseynjphillypa,

    =if(c1="","",<your formula>)


    Use above formula where I am assuming that cell C1 is to be checked for date.. thanks.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Valued Forum Contributor
    Join Date
    06-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    341

    Re: Show Formula for only date

    What is in the cell if it is not a date?

    Since dates in excel are numeric and large numbers and assuming you don't go back to 0AD but stay in the 1990+ range, you could use
    =IF(ISNUMBER(A1),A1,B1)

    If you have numbers in the cell if it isn't a date but those numbers are fairly small, you can use:
    =IF(AND(ISNUMBER(A1),A1>30000),A1,B1)

+ 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