+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : IFERROR(LOOKUP, how to return the first value in a row

  1. #1
    Forum Contributor
    Join Date
    04-20-2011
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    121

    Smile IFERROR(LOOKUP, how to return the first value in a row

    My formula works [=IFERROR(LOOKUP(2,1/(A3:AK3=A8),A2:AK2),"")]

    However, the value it returns is the last one in the row. (There could be multiple repeats in A3:AK3). e.g. if A8 appears in cells B3 and M3, it returns a date from M2.

    I need it to return the first value it sees, in this case it would be B2.

    Help appreciated. Have tried an hlookup also but cant get that to work either.

    Chambo



    Many many thanks for the help
    Last edited by Martin Chamberlin; 11-19-2011 at 05:16 PM. Reason: Another genius solved my problem. With Thanks
    Chambo1160

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: IFERROR(LOOKUP, how to return the first value in a row

    Try this version

    =IFERROR(INDEX(A2:AK2,MATCH(A8,A3:AK3,0)),"")
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    04-20-2011
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    121

    Re: IFERROR(LOOKUP, how to return the first value in a row

    Quote Originally Posted by daddylonglegs View Post
    Try this version

    =IFERROR(INDEX(A2:AK2,MATCH(A8,A3:AK3,0)),"")
    You rock man. Sorted with much gratitude,

    Chambo (Martin)

+ 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