+ Reply to Thread
Results 1 to 12 of 12

last instance in range excel cell location...

  1. #1
    Registered User
    Join Date
    09-02-2009
    Location
    new orleans
    MS-Off Ver
    Excel 2003
    Posts
    6

    last instance in range excel cell location...

    I just used the excellent formula =row(index(range,match(1,index,--(range)>0),0),0))) to give me the first instance of a number, but i am wondering if there is a formula to give me the last instance of the number as well? Maybe? This would save me much time if possible.

    Thanks so much!

    C
    Last edited by callen503; 09-02-2009 at 04:20 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: last instance in range excel cell location...

    something like... =Lookup(2,1/(--(criteria_range)>0),result_range)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    08-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    149

    Re: last instance in range excel cell location...

    DonkeyOte posted a solution to a question yesterday that was nearly identical to what you want... the trick was in the MATCH to use an extremely large number (like 9.99999E+307) for the value being sought.

    You can see his formula here: http://www.excelforum.com/2156367-post7.html

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: last instance in range excel cell location...

    Thanks masteff, just to clarify (given the other example had the solution embedded within an AVERAGE call) in this instance possibly something like:

    Please Login or Register  to view this content.
    or simpler still

    Please Login or Register  to view this content.
    However, if as implied by your earlier formula & NBVC's interpretation thereof that not all numbers are valid (ie must be > 0) then his solution will work whereas the above would not.

  5. #5
    Registered User
    Join Date
    09-02-2009
    Location
    new orleans
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: last instance in range excel cell location...

    i am still having issues...cannot get either of these to work. and are they going give me the cell column of the last instance? the problem is that i am new to indexes and matches (in excel at least), so i am not even sure how to begin to modify this formula.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: last instance in range excel cell location...

    Give a more specific example indicating the actual ranges and conditions to be met (if any)

  7. #7
    Registered User
    Join Date
    09-02-2009
    Location
    new orleans
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: last instance in range excel cell location...

    here goes...i hope that this makes sense
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-02-2009
    Location
    new orleans
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: last instance in range excel cell location...

    By the way, the orange highlight is the formula that I need. I am not even sure if this can be done? I keep getting zeros in my formulas.

    Thank you to everyone for responding!

    C

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: last instance in range excel cell location...

    So yes you would need to use the approach outlined already by NBVC, eg:

    Please Login or Register  to view this content.
    Though if you only intend to use this to retrieve dates you can dispense with O & P and just use

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    09-02-2009
    Location
    new orleans
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: last instance in range excel cell location...

    Omg, y'all are geniuses! Thank you so much! Now I can probably even sleep tonight! Yay!

    C

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: last instance in range excel cell location...

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  12. #12
    Registered User
    Join Date
    09-02-2009
    Location
    new orleans
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: last instance in range excel cell location...

    solved turned on. thank you once again everyone.

    have an excellent day.

    C

+ 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