+ Reply to Thread
Results 1 to 8 of 8

How to display last item in a category

  1. #1
    Registered User
    Join Date
    06-12-2005
    Posts
    31

    How to display last item in a category

    Back to my check register.

    I have a check register spreadsheet with a running balance. My question is how could I display in a separate cell the balance that is displayed at the end of the register?

    I cannot do a simple =d120 for example because everytime I add items to the register the balance goes one line down. If I add 5 items the last entry would be in cell d125. So how do I in a separate cell display the current balance that is shown in the last cell of the register?

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,624
    The formula below will track the last value in column D (whether it shrinks or grows) to another cell:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Ben's solution is good as long as there are no blanks. This doesn't care:

    =INDEX(D:D, MATCH(1E+307, D:D, 1))

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Here's a previous link you may find useful?

    http://www.excelforum.com/showthread.php?t=582824
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Simplest way to find the last numeric value in column D, in my opinion

    =LOOKUP(9.99999999999999E+307,D:D)

  6. #6
    Registered User
    Join Date
    06-12-2005
    Posts
    31
    Thanks again! Boy you guys are good.

  7. #7
    Registered User
    Join Date
    06-12-2005
    Posts
    31
    OK guys, I was wondering if I could take this a step further. I used the function =LOOKUP(9.99999999999999E+307,D:D) and this works great, but now I am thinking that I would prefer a function that would not display the very last item but rather display the last item based on todays date.

    Example:

    11/24/07 - Mobile - gas - $30.00 - "current balance"
    11/25/07 - Countrywide - Mortgage - $1000 - "current balance"
    12/05/07 - Verizon - Cell phone - $50.00 - "current balance"

    Let's say I know that Verizon will be automatically deducted on 12/05 so I have that in my register, but in the separate cell that I talked about above I would prefer to show my "current" balance as of todays date (in this case - 11/25/07). So is this possible?

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Assuming the dates are all in ascending order you could try

    =INDEX(D:D,MATCH(TODAY(),A:A))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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