+ Reply to Thread
Results 1 to 9 of 9

VLOOKUp Help

  1. #1
    Registered User
    Join Date
    07-24-2009
    Location
    Tamworth, ENgland
    MS-Off Ver
    Excel 2003
    Posts
    6

    VLOOKUp Help

    Hi All,

    I have searched for this problem prior to posting and tired many solutions, but i just cant seem to get the correct formula to work, I give in.

    I need to Display some information in a cell "C7" on sheet "Input" the information
    needs to look at Cell C4 & C5. these need to be the lookup value.

    the array would be on the second sheet "DuctworkSizes" $A:$C then the information it returns would be in column C (3)

    I Can get the formula to work if i just use one Lookup_Value but not with 2.

    Sample Code: =VLOOKUP(C4,DuctworkSizes!A2:C22,3,FALSE)

    I've Tried =VLOOKUP(C4:C5,DuctworkSizes!A2:C22,3,FALSE) Doesnt Work

    I've Tried =VLOOKUP(C4&C5,DuctworkSizes!A2:C22,3,FALSE) Doesnt Work

    I've Tried =VLOOKUP((C4:C5),DuctworkSizes!A2:C22,3,FALSE) Doesnt Work

    any Help would be really appreciated.

  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,454

    Re: VLOOKUp Help

    Could you please post an example of your data?
    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
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: VLOOKUp Help

    c4&c5 should work but you might need to include any space
    c4&" "&c5
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    07-24-2009
    Location
    Tamworth, ENgland
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VLOOKUp Help

    Martin Tried to used those and they dont work, please see screen shots of examples

    First Picture is the input screen with the formula shown in the formula bar

    \1

    this is the Ductworksizes sheet showing the array.

    \1

  5. #5
    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,454

    Re: VLOOKUp Help

    Simplest thing to do is to add a "helper" column in the Duckworksizes sheet concatenating columns A and B (eg C1=A1&B1). Then use that column as the lookup table array.

  6. #6
    Registered User
    Join Date
    07-24-2009
    Location
    Tamworth, ENgland
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VLOOKUp Help

    Dave,

    Tried that. Must be missing something In DuctworkSizes Sheet I Added the header Helper and then put the following formula in all way down.

    =A2&B2 and it would give me a value of 0.21.5

    so back on the input sheet i added a invisible cell and did the same C6=C4&C5

    Which adds the two cells together depending on what ever value user enters. then in C7 value i added =VLOOKUP(C6,DuctworkSizes!C2:C22,4,FALSE) and i get the #REF!

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: VLOOKUp Help

    try
    =INDEX(ductworksizes!C2:C20, MATCH(C4 & C5, INDEX(ductworksizes!A2:A20 & ductworksizes!B2:B20, 0), 0))

  8. #8
    Registered User
    Join Date
    07-24-2009
    Location
    Tamworth, ENgland
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VLOOKUp Help

    I've Uploaded The Excel sheet,

    as you notice their can be 21 different variations of 0.20

    Regards

    Dan
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-24-2009
    Location
    Tamworth, ENgland
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VLOOKUp Help

    Thanks Martin,

    Seems to have done the trick, seems rather complex formula though.

+ 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