+ Reply to Thread
Results 1 to 4 of 4

sum if defined date is less than or equal to current date

  1. #1
    Registered User
    Join Date
    06-15-2016
    Location
    BC
    MS-Off Ver
    excel 2013
    Posts
    52

    sum if defined date is less than or equal to current date

    Hello,

    I want my table to update based on defined dates. If today's date is less than or equal to my defined date, run the formula.
    example: =IF(A1>=$B$1,"",SUM(C1,D1))

    Cell B1 is simply =today()
    Cell A1 is a future date, and once I go past it the formula runs with out issue.

    The problem lies when the day is equal, the formula still isn't running. I thought this ">=" was less than or equal to, but it doesn't seem to be executing the equal to aspect.
    Further to this, if I am using just "equal to" the formula is still running, which it shouldn't be if the date is not equal to the current date.

    To note, even if I make it just equal to, it's still not executing the current date, but will the past dates which is very confusing.
    =IF(A1=$B$1,"",SUM(C1,D1))

    Any help would be appreciated, happy Friday!

    Thank you,
    Kanuck

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: sum if defined date is less than or equal to current date

    Try this:

    =IF(A1>=$B$1,SUM(C1:D1),"")

    > is GREATER than...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    06-15-2016
    Location
    BC
    MS-Off Ver
    excel 2013
    Posts
    52

    Re: sum if defined date is less than or equal to current date

    perfect - thank you Glenn... knew I was close!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: sum if defined date is less than or equal to current date

    Yep. You were!!

+ 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] subset of range defined by start date and date date in dedicated cells
    By Pragmaticite in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2015, 05:30 PM
  2. Highlight Rows Based on Date Range Using Static Date and Current Date
    By SaraStravers in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-23-2015, 07:38 PM
  3. [SOLVED] Need average of days for date values from date to current day that updates current date
    By FinGhost in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-12-2013, 04:41 PM
  4. [SOLVED] Calculate Defined Weekly Demand Based on Current Date
    By d_striker in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-09-2013, 03:24 PM
  5. adding current date then after saving the file current date function stops
    By gotbitey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2011, 02:15 PM
  6. MACRO for finding dates which are less than or equal to current date,
    By drsantosh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2011, 06:49 AM
  7. Replies: 4
    Last Post: 09-01-2011, 03:25 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