+ Reply to Thread
Results 1 to 9 of 9

Using Vookup to find value or Match?

  1. #1
    Registered User
    Join Date
    05-25-2007
    Posts
    4

    Question Using Vookup to find value or Match?

    Hi,

    can anyone help.

    What I am trying to do in theory sounds simple to me but I just cannot figure out how to do it.

    I have a part number and I need it to lookup through four sheets (this i have done through vlookup) so on the sheet I have the part number and four fields, in which one has the correct code against it. I need to put only the found code to the end so it can be copied into another sheet. But i cannot think of how to do this.

    the N/A's are a result of a nil find on the Vlookup so are formulated.

    I need to be able to put the found result in a new column at the end regardless of which lookup finds it.

    Hope this makes sense.

    Thank you.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444
    Hi,

    Can you post an example?

    Dave
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    05-04-2007
    Posts
    28

    explanation

    I think LianCragg has the following:

    4 cells, 3 of which are errors (#N/A), only one of which is a value.

    I then believe LianCragg wants a separate cell that looks in the 4 cells and prints only the one that has a value, whichever one that is, and i presume that can change..

    Not sure myself on how to do it, but think that explanation might help..

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444
    If the returned values were in A1:D1, and 3 of 4 were NA errors, this would return the one that isn't

    =INDEX(A1:D1,MATCH(0,A1:D1,-1))

  5. #5
    Registered User
    Join Date
    05-25-2007
    Posts
    4
    Hi,

    This is a very simplified version but i hope you get the gist.

    Your help is very much appreciated.

    Lian.

    how daft is that, this is an excel help forum but you cannot attach an excel sheet???

  6. #6
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Liancragg, Welcome to ExcelForum, the reason for not allowing .xls at the moment is because it can contain code which can be harmful!, you may zip the file and upload it.

    When titling your threads in future please create a title that helps others search for solutions to similar problems and helps you get the help you need!

    I have changed this one for you.
    Not all forums are the same - seek and you shall find

  7. #7
    Registered User
    Join Date
    05-25-2007
    Posts
    4
    Hi Sweep,

    no that formula didn't work. Please take a look at the example?

    Thank you.

    Lian

  8. #8
    Registered User
    Join Date
    05-25-2007
    Posts
    4
    Example.zip

    oopsy

  9. #9
    Registered User
    Join Date
    12-31-2005
    Location
    Atkins, Arkansas
    MS-Off Ver
    2013
    Posts
    63
    Try using the same formula that Sweep used except in place of the 0 use ""

    =INDEX(A1:D1,MATCH("",A1:D1,-1))

    For cell M2 in your example replace A1:D1 with C3:F3, for cell N2 replace
    A1:D1 with H3:K3.

+ 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