+ Reply to Thread
Results 1 to 2 of 2

VLOOKUP a value other than the first one

  1. #1
    Registered User
    Join Date
    09-27-2007
    Location
    New York
    Posts
    1

    VLOOKUP a value other than the first one

    Hi all,

    This is my problem:

    A1 0
    A2 3
    A1 1
    A2 7
    A2 5
    A2 2

    The col starting with A1 is the identifier and the col starting with 0 is the value I seek.

    As you can see there is two A1's, I want the first value it finds that is NOT zero

    Any help would be appreciated, Thanks!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If you table is in A1:B6, then try:

    =INDEX(B1:B6,MATCH(1,(A1:A6="A1")*(B1:B6>0),0))

    this formula must be confirmed with CTRL+SHIFT+ENTER not just ENTER,...you'll see { } brackets appear around it.

    Note: you can replace "A1" with cell reference housing the lookup value.

    you must reconfirm formula with CSE keys after any changes to it.
    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.

+ 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