+ Reply to Thread
Results 1 to 6 of 6

If cell contains a date then another cell should turn to sero or blank?

Hybrid View

  1. #1
    Registered User
    Join Date
    09-18-2013
    Location
    Kamloops, Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    If cell contains a date then another cell should turn to sero or blank?

    Hey all,

    New to posting so forgive me if I seem a little green...I am. Here's my issue in a nutshell:

    I am trying to track shipping of some items. I have my sheet set up so that it calculates how long we have had an item (so I know when I need to ship it). I need to be able to zero that field out once the item has shipped. So I think I need to be able to create a formula that says if there is a date present in cell O2, then cell E2 should change to either zero or blank. I think I am running into problems because I already have a formula in cell E2 and I can't figure out how to incorporate the two. I have this formula in cell E2:

    =IF(A2="","",C2-A2)

    I sure hope I am making sense?? I have been staring at this and trying multiple formulas and getting nowhere....any help would sure be appreciated.

    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    633

    Re: If cell contains a date then another cell should turn to sero or blank?

    TRY this:

    =IF(OR(a2="",ISNUMBER(o2)),"",C2-A2)
    If I've helped U pls click on d *Add Reputation

  3. #3
    Registered User
    Join Date
    09-18-2013
    Location
    Kamloops, Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: If cell contains a date then another cell should turn to sero or blank?

    That's perfect! You guys are awesome and so quick. I appreciate the help!!

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: If cell contains a date then another cell should turn to sero or blank?

    Hi,

    A nested IF would also work:
    Formula: copy to clipboard
    =IF(O2>0,"",IF(A2="","",C2-A2))

    Though bhenlee's solution is more elegant

    Regards,
    Aardigspook

  5. #5
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    633

    Re: If cell contains a date then another cell should turn to sero or blank?

    You're welcome sissyboot.

    Please mark this thread as solve if you're satisfied with the resolution

  6. #6
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: If cell contains a date then another cell should turn to sero or blank?

    You're welcome.
    And a belated welcome to the forum!

+ 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: 6
    Last Post: 06-08-2015, 05:20 PM
  2. Calculate differnce between 2 dates, but if 1 date cell is blank leave cell blank
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-11-2014, 11:31 PM
  3. Turn blank cell to hyphen in particular cell
    By jcmckeon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-12-2014, 10:11 PM
  4. Replies: 2
    Last Post: 03-01-2013, 04:33 PM
  5. Replies: 1
    Last Post: 10-02-2012, 02:42 PM
  6. How to make a date cell turn red
    By Snaggles in forum Excel General
    Replies: 2
    Last Post: 07-19-2010, 12:40 PM
  7. Replies: 3
    Last Post: 11-03-2009, 03:06 PM

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