+ Reply to Thread
Results 1 to 4 of 4

Find last entry in an array based on 1 criteria

  1. #1
    Registered User
    Join Date
    08-09-2010
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2003
    Posts
    2

    Find last entry in an array based on 1 criteria

    In the attached example, I am trying to find the last entry for Batch# in Column O based on the Part# stored as text in Column D. I used the following formula [=IF(ISERROR(VLOOKUP((D7 & ""),$D$6:$O6,12,FALSE)),"",(VLOOKUP((D7 & ""),$D$6:$O6,12,FALSE)))], and it returns the first occurrence for any given Part# which is not what I need. I certainly appreciate any help you may be able to give!
    Attached Files Attached Files
    Last edited by ryanh114; 08-09-2010 at 12:22 PM. Reason: [Solved]

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

    Re: Find last entry in an array based on 1 criteria

    Not entirely sure I follow the requirements but perhaps you want:

    M7:
    =IF(COUNTIF($D$6:$D6,$D7),LOOKUP(2,1/(D$6:D6=D7),O$6:O6),"")
    copied down

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

    Re: Find last entry in an array based on 1 criteria

    Perhaps?

    =LOOKUP(2,1/($D$6:$D$21=D6),$O$6:$O$21)

    copied down

    you can hide 0's by custom formatting as 0;-0;;@
    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.

  4. #4
    Registered User
    Join Date
    08-09-2010
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Find last entry in an array based on 1 criteria

    Thanks you both for you help, NBVC while this works as well, I am going to stick with the first response as it is a little cleaner without the conditional formatting.

+ 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