+ Reply to Thread
Results 1 to 4 of 4

Formula to leave cells blank or carry out date calculations depending on value in cell

  1. #1
    Registered User
    Join Date
    08-13-2015
    Location
    Portsmouth, UK
    MS-Off Ver
    2010, 2013
    Posts
    44

    Formula to leave cells blank or carry out date calculations depending on value in cell

    I have the following formulas in column F


    (a) =IF(G2="Completed","-"

    (b) =IF(E2="","",TODAY()-E2))
    What I need it to do is if cell G" = Completed, then it puts a - in the relevant cell in column F. The formula labelled "A" does this

    If there is no value in the cell in column E, I want the formula to leave the cell in column F blank The formula labelled "B" currenly does this


    What I am unable to do is combine both formulas. Can someone please advise

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,266

    Re: Formula to leave cells blank or carry out date calculations depending on value in cell

    Are you wanting to put a date and the "-" into one cell in column F? If so, try this:

    =IF(E2="","",TODAY()-E2)&IF(G2="Completed","-","")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-13-2015
    Location
    Portsmouth, UK
    MS-Off Ver
    2010, 2013
    Posts
    44

    Re: Formula to leave cells blank or carry out date calculations depending on value in cell

    Solved - many thanks

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,266

    Re: Formula to leave cells blank or carry out date calculations depending on value in cell

    You are welcome. :-)

+ 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. Formula to Count Consecutive Blank Cells in a Range Depending on Today's Date
    By tophatpete in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-28-2020, 05:12 AM
  2. [SOLVED] Formula to leave cell Blank until cells of formula have data
    By mbauman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-27-2015, 01:28 PM
  3. Replies: 4
    Last Post: 10-21-2015, 11:37 PM
  4. Replies: 3
    Last Post: 02-09-2015, 09:00 AM
  5. Replies: 5
    Last Post: 05-29-2013, 12:27 AM
  6. Replies: 4
    Last Post: 04-09-2012, 12:06 PM
  7. How to leave Date formula cell blank until date entry??
    By NewbieDateFormatter in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-16-2011, 07:50 AM

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