+ Reply to Thread
Results 1 to 11 of 11

If Cell is Empty create rule to Display the current Date

  1. #1
    Registered User
    Join Date
    09-05-2007
    Posts
    11

    If Cell is Empty create rule to Display the current Date

    Im trying to find a formula that when a cell is empty ie this cell is linked to another cell on another worksheet and info has not been entered or is 0 then i want the cell to display the the current date ie =NOW()

    Is this possible i have only beginners knowledge of excel so if anyone can help please make it as easy as possible to follow.

    Thanks

    Mark
    Edit/Delete Message

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    Like this?
    =IF(OR(A1=0,A1=""),NOW(),"Whatever else you like")

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    If Cell is Empty create rule to Display the current Date

    You don't say what the other cell may contain or what you want to display if the other cell has a value.

    See if this helps:

    =IF(N(Sheet1!A1)>0,"a number is there",TODAY())

    or maybe this:
    =IF(Sheet1!A1>0,Sheet1!A1,TODAY())

    Post back if you have more questions.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    09-05-2007
    Posts
    11
    Thanks for the quick response im well impressed.

    Can you do me a massive favour and tell me the formula if the cell is currently reading:-
    =+'Statement Log'!F5

    Sorry but i have limited knowledge.

  5. #5
    Registered User
    Join Date
    09-05-2007
    Posts
    11
    I also need advise how to do the following also:-

    Im trying to find a formula that when a cell is empty ie this cell is linked to another cell on another worksheet and info has not been entered then i want the cell to display the text AWAITING? Cell code at the moment is ='[Statement.xls]Statement Log'!$N$5 so wondered if you could give me the formula for this also?

    Is this possible i have only beginners knowledge of excel so if anyone can help please make it as easy as possible to follow.

    Thanks

    Mark

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    If Cell is Empty create rule to Display the current Date

    Quote Originally Posted by Sidewinder
    Thanks for the quick response im well impressed.

    Can you do me a massive favour and tell me the formula if the cell is currently reading:-
    =+'Statement Log'!F5

    Sorry but i have limited knowledge.
    =IF(N('Statement Log'!F5)>0,"a number is there",TODAY())

    or
    =IF('Statement Log'!F5>0,'Statement Log'!F5,TODAY())

  7. #7
    Registered User
    Join Date
    09-05-2007
    Posts
    11
    Bingo! Unbelievable, really appreciate this it has helped me out more than you can imagine was going to pull my hair out, lol

    Any chance you could work your magic with the following:-

    Im trying to find a formula that when a cell is empty ie this cell is linked to another cell on another worksheet and info has not been entered then i want the cell to display the text AWAITING and not critical make the cell background red with white bold text. Cell code at the moment is ='[Statement.xls]Statement Log'!$N$5 so wondered if you could give me the formula for this also?

  8. #8
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    If looking for a number greater than 0 this will work:
    =IF('[Statement.xls]Statement Log'!$N$5<=0,"AWAITING",'[Statement.xls]Statement Log'!$N$5)

    If looking to see if it is truly empty this will work:
    =IF('[Statement.xls]Statement Log'!$N$5="","AWAITING",'[Statement.xls]Statement Log'!$N$5)

    To change the format of the cell click on Format --> Conditional Formatting...
    then for the condition 1:
    Cell Value Is --> equal to --> ="AWAITING"
    Then click on Format... and change it as you need.
    Last edited by Ikaabod; 09-05-2007 at 01:52 PM.

  9. #9
    Registered User
    Join Date
    09-05-2007
    Posts
    11
    Thanks loads im not the best at this coding how would the formula go if the cell was linked to:-

    ='C:\Users\Public\Tapes\Shop Accounts\[2_FUNKY.xls]Stock Sheet'!$AF$4

  10. #10
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    =IF('C:\Users\Public\Tapes\Shop Accounts\[2_FUNKY.xls]Stock Sheet'!$AF$4="","AWAITING",'C:\Users\Public\Tapes\Shop Accounts\[2_FUNKY.xls]Stock Sheet'!$AF$4)

    I just replaced:
    [Statement.xls]Statement Log'!$N$5
    with:
    C:\Users\Public\Tapes\Shop Accounts\[2_FUNKY.xls]Stock Sheet'!$AF$4

  11. #11
    Registered User
    Join Date
    09-05-2007
    Posts
    11
    Thanks loads

+ 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