+ Reply to Thread
Results 1 to 3 of 3

How to find last value entered and than find the value before it and than substarct

  1. #1
    Registered User
    Join Date
    04-19-2013
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    2

    How to find last value entered and than find the value before it and than substarct

    Hi all,


    I would like to ask for your help with finding a formula that would
    find the last value entered , than subtract from it the value before.
    So (see the attached pic) the formula i need should identify 10 as the last value,
    than identify 7 as the last value before 10 and do 10-7 .
    The values will not be introduced at regular intervals.

    excel.png

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,816

    Re: How to find last value entered and than find the value before it and than substarct

    Put this in A13:

    =LOOKUP(10E10,A1:A12)-LOOKUP(10E10,INDEX(A1,1):INDEX(A1:A12,MATCH(LOOKUP(10E10,A1:A12),A1:A12,0)-1))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    04-19-2013
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to find last value entered and than find the value before it and than substarct

    Hi ,

    Wasn't expecting such fast reply so thanks Pete.
    Still I think I didn't expressed my self correctly in the first post. I'm not looking necessarily for "10" but for the first cell containing any value counting upwards and than for the next one.

+ 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