+ Reply to Thread
Results 1 to 3 of 3

Lookup woes

  1. #1
    Registered User
    Join Date
    01-31-2008
    Posts
    10

    Lookup woes

    Have been struggling with a problem for a few hours now

    I've attached a small sample of part of my sheet. I'm trying to put a function in cell AV4 to look in range B4:AT4 for a "v", If there is one to return the contents of the cell in range B3:AT3 which is in the same position in the row, but if there is no "v" return nothing.

    Book1.zip

    I then need AW4, AX4, AY4, and AZ4 to do the same but looking for "w", "x", "y" and "z" respectively, and I then need to do the same for each row (366 rows in total) but the result is always B3:AT3.

    I have the additional problem of what if, for example there is more than one "v" in a row, but until I sort this first part I can't even think how to do that.

    I've been experimenting with the IF, HLOOKUP and now LOOKUP, and I've used a COUNTBLANK to give me nothing if there is no entry in the row but I might just be confusing myself.

    As you can see from my sample the result I'm getting is always Z9 instead of the result which corresponds to the position of the entry.

    Hope someone can help while I've got some hair left

    myheadhurts

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try this formula in AV4 copied down and across the table:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by NBVC; 02-29-2008 at 02:30 PM.
    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
    Registered User
    Join Date
    01-31-2008
    Posts
    10

    Lookup Woes

    Perfect, thats absolutely brilliant, many many thanks

+ 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