+ Reply to Thread
Results 1 to 3 of 3

Maybe: VLOOKUP with first occurrence of a value?

  1. #1
    Forum Contributor
    Join Date
    01-25-2010
    Location
    Virginia
    MS-Off Ver
    Excel 2013
    Posts
    104

    Maybe: VLOOKUP with first occurrence of a value?

    I have data that looks like the dummy data I've pasted below.

    The data in column A is sorted from high to low. The data in column B has lots of repeat values.

    Can someone tell me a formula that would tell me, using the dummy data below, what is the value in column A, for the first occurrence of the value "brown" in column B? (In other words, the returned value should be 854.)

    I'm guessing there's something fairly simple for this, but I can't seem to figure it out.

    Can someone help me?

    A B
    1 Profit Person
    2 985 smith
    3 965 jones
    4 854 brown
    5 654 brown
    6 425 brown
    7 311 smith
    8 301 brown

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

    Re: Maybe: VLOOKUP with first occurrence of a value?

    =Index(A:A,Match("Brown",B:B,0))

    you can replace "Brown" with a cell reference, if desired.
    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
    01-25-2010
    Location
    Virginia
    MS-Off Ver
    Excel 2013
    Posts
    104

    Re: Maybe: VLOOKUP with first occurrence of a value?

    Fantastic! Thank you VERY much.

+ 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