+ Reply to Thread
Results 1 to 4 of 4

If a cell contains a date then sum

Hybrid View

  1. #1
    Registered User
    Join Date
    11-25-2014
    Location
    Leeds, England
    MS-Off Ver
    2010
    Posts
    49

    If a cell contains a date then sum

    Hi

    I am trying to get a formula to work. I want to calculate the sum cells A1-B1 if cell C1 contains a date. If C1 is blank then I want a 0 value.

    Thanks

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: If a cell contains a date then sum

    Try this ...

    =IF(ISBLANK(C1),0,SUM(A1:B1))

  3. #3
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: If a cell contains a date then sum

    =IF(C1="",0,A1-B1)

    Should do the trick

  4. #4
    Registered User
    Join Date
    11-25-2014
    Location
    Leeds, England
    MS-Off Ver
    2010
    Posts
    49

    Re: If a cell contains a date then sum

    thanks guys

+ 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. Looking to display data in a cell, only if today's date is 7 days past a cell's date
    By mbenderpetassure in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2015, 01:57 PM
  2. Date entry control-condition date in cell J>date in cell H
    By erkamu in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-01-2014, 07:04 AM
  3. Send an Email by cell date in comparison to actual date referencing cell text.
    By greaseebogus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-15-2014, 10:03 PM
  4. [SOLVED] Move date shown in cell to new cell directly left once date has passed
    By jamieswift1977 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-16-2013, 11:23 AM
  5. Replies: 2
    Last Post: 03-01-2013, 04:33 PM
  6. Replies: 1
    Last Post: 10-02-2012, 02:42 PM
  7. How to: Click on a cell, calendar pops up, pick a date, date appears in cell.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-08-2011, 01:56 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