+ Reply to Thread
Results 1 to 8 of 8

Automatically look up last value in a column and calculate difference

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    Canada
    MS-Off Ver
    Excel 2016
    Posts
    67

    Automatically look up last value in a column and calculate difference

    I have this in A1:

    Please Login or Register  to view this content.
    It works but I have to manually change it every time I add a new date in the column. How can I have it automatically calculate the difference between TODAY() and the last value in column A (so each time I add another date in a cell down the column)? So if I add a date in A4, it should now be TODAY()-A4, automatically, and so forth.

    Thank you kindly for any assistance!
    Attached Images Attached Images

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Automatically look up last value in a column and calculate difference

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    1
    Litter (10)
    2
    01/25/18
    3
    08/16/18
    4
    08/20/18
    5
    6
    7
    Dave

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Automatically look up last value in a column and calculate difference

    Try this:

    ="Litter ("&TODAY()-LOOKUP(9.99999999999999E+307,A:A)&")"
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Automatically look up last value in a column and calculate difference

    Yup. Better.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Automatically look up last value in a column and calculate difference

    It could look nicer, though:

    ="Litter ("&TODAY()-LOOKUP(1E+307,A:A)&")"


  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Automatically look up last value in a column and calculate difference

    Well it does say "Litter". LOL

  7. #7
    Registered User
    Join Date
    08-29-2013
    Location
    Canada
    MS-Off Ver
    Excel 2016
    Posts
    67

    Re: Automatically look up last value in a column and calculate difference

    Thank you so much that works great!

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Automatically look up last value in a column and calculate difference

    Thank you for the feedback and marking this thread Solved.

+ 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: 3
    Last Post: 02-17-2017, 06:31 AM
  2. [SOLVED] Creating an array to automatically calculate column F
    By kafarrell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-12-2014, 02:07 PM
  3. Replies: 8
    Last Post: 11-06-2013, 08:01 PM
  4. Date difference and automatically generate other values in another column
    By mubashar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2013, 11:48 PM
  5. [SOLVED] Formula to calculate time difference in column between defined cell value
    By abreet in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-24-2012, 07:49 AM
  6. Replies: 3
    Last Post: 03-17-2010, 07:28 AM
  7. VBA code to calculate two column values automatically
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2009, 04:31 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