+ Reply to Thread
Results 1 to 7 of 7

Calculate only if cell is populated by a date

  1. #1
    Registered User
    Join Date
    08-21-2014
    Location
    Port of Spain, Trinidad
    MS-Off Ver
    Excel 2010
    Posts
    2

    Calculate only if cell is populated by a date

    I want to calculate in D, the number of days between the date of payment (COLUMN C) and the date of application for the service (COLUMN A)
    . However if there is no date in either Column A or Column B, then I want to formula to do nothing.

    Similar formulas are required for E AND F.
    What is recommended
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Calculate only if cell is populated by a date

    Column D is for addresses.

  3. #3
    Registered User
    Join Date
    08-21-2014
    Location
    Port of Spain, Trinidad
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Calculate only if cell is populated by a date

    RIGHT YOU ARE

    I want to calculate in COLUMN P, the number of days between the date of payment (COLUMN O) and the date of application for the service (COLUMN H)
    . However if there is no date in either Column O or Column H then I want to formula to do nothing.

    Similar formulas are required for Q R AND S. What is recommended, PLEASE

    Attempted IF(N="PAID",P-H,0) ie if column N says YES the client was paid, calculate the days between the payment and application. If Column N does not say Yes, DO NOTHING. but its is not working.

  4. #4
    Registered User
    Join Date
    11-25-2013
    Location
    Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: Calculate only if cell is populated by a date

    Your formula includes column letters (which should include O instead of P), but are missing the row number. To leave the value blank when the condition is false, use "" instead of 0. So, in P2 you will want to enter =IF(N2="PAID",O2-H2,"") and then copy this down to the other rows.

    For Q, R and S, use the same formula but replace O2-H2 with the relevant calculation.

  5. #5
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Calculate only if cell is populated by a date

    Hi,

    Your requirement for Paid is not clear .
    But if dates fields or empty i used IF function

    Punnam
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-25-2014
    Location
    Bangalore
    MS-Off Ver
    2007
    Posts
    2

    Re: Calculate only if cell is populated by a date

    Hi Punnam,

    your formula was very helpful for me also. i have report which is auto generated and the date shows 2014-08-25 but the actual format is in general, but when i try to change it to date format its not getting changed.

    Please help

    Regards
    Shukur

  7. #7
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Calculate only if cell is populated by a date

    @ Shukur ,

    Hi. Unfortunately your post does not comply with Rule 2 of our Forum RULES.
    2. Don't post a question in the thread of another member -- start your own. If you feel it's particularly relevant, provide a link to the other thread. You may include up to 3 links to other URLs in a single post, no more, so only link to the relevant pages.

    Start a new thread .
    Sure we shall help you
    Punnam

+ 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. [SOLVED] once cell E1 is entered need input box for date to be populated in B1
    By mlski4751 in forum Excel General
    Replies: 4
    Last Post: 07-23-2014, 04:20 PM
  2. Macro that changes a cell when another one has a date populated in it.
    By photochic10 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-15-2013, 09:25 AM
  3. [SOLVED] Prompt input of future date in cell when another cell has been populated or modified
    By coffeemints in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2013, 06:46 PM
  4. Replies: 1
    Last Post: 08-08-2012, 12:47 PM
  5. Replies: 3
    Last Post: 08-12-2009, 05:23 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