+ Reply to Thread
Results 1 to 11 of 11

VLookup/HLookup or Both.. Even Possible?

  1. #1
    Registered User
    Join Date
    05-17-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    6

    VLookup/HLookup or Both.. Even Possible?

    I am trying to create a spreadsheet which will auto input information depending on a Fuse Type, British Standard Rating, and Fuse Rating Rating(A).
    E.g.
    BS Rating = 60898
    Fuse Type = 1,2,B, (3+C) & 4
    Rating = various numbers.

    This will then return the Maximum Permitted Disconnection Time from the table you will see in the screen shot.

    I've attached a screen printto better illustrate my problem.

    Does it make sense? I'll try and explain further if not. I've been scratching my head all morning!

    Thanks very very much for any help you can offer.

    Regards

    \1

    EDIT:

    Thought i'd expand my issue a little further.

    Basicly for the first line I would like Cell S18 to look at E18 and F18. In this case the Values will be C(E18) and 3(F18) and will then look them up on the Range boxing in Red (I'll call it 60808). In this case the result will be N/A.
    Last edited by mardon; 05-18-2011 at 11:53 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VLookup/HLookup or Both.. Even Possible?

    The formula would be something like this:

    =INDEX($IX$19:$JC$38, MATCH($F18, $IW$19:$IW$38, 0), MATCH($E18, $IX$18:$JC$18, 0))


    Red - table of values to return answer from
    Green - match the correct row in the table
    Blue - match the correct column in the table
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: VLookup/HLookup or Both.. Even Possible?

    Posting a sample workbook would be much more effective than a screenshot. How does column D fit in?
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  4. #4
    Registered User
    Join Date
    05-17-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VLookup/HLookup or Both.. Even Possible?

    Amazing! :D

    Work has finished now so i'll play around with it tomorrow and report back.

  5. #5
    Registered User
    Join Date
    05-17-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VLookup/HLookup or Both.. Even Possible?

    Sample Worksheet coming Up..

    As requested, should make sense when you see it.

    http://www.fileserve.com/file/WPVVHDD
    Last edited by mardon; 05-17-2011 at 11:59 AM.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VLookup/HLookup or Both.. Even Possible?

    Quote Originally Posted by mardon View Post
    Work has finished now so i'll play around with it tomorrow and report back.
    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  7. #7
    Registered User
    Join Date
    05-17-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VLookup/HLookup or Both.. Even Possible?

    I'll have a play this morning and see how I get on. There may be further IF statements to add if it works.

    Help so far is most appriciated.

    Regards

    EDIT-- It returns the value "True" not a number from the table. Any ideas?
    Last edited by mardon; 05-18-2011 at 03:27 AM.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VLookup/HLookup or Both.. Even Possible?

    The formula given can't return TRUE.

    Post up your sample workbook with the data table. I only have Excel 2003, so if you would move that table to the left about 20 columns so it doesn't go past the last column IV, I would appreciate it.

    Then make sure your version of the formula is there, too, so I can see what's giving you a TRUE result.

  9. #9
    Registered User
    Join Date
    05-17-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VLookup/HLookup or Both.. Even Possible?

    I've changed the hidden rows and saved as 2003.

    The workbook is below, Regards

    File name: Blank Work Book.xls File size: 48.50 KB

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VLookup/HLookup or Both.. Even Possible?

    You put the formula into S18 twice. When you put the exact same formula into a cell twice, the equal sign on the second copy creates a permanent TRUE test, like = cat = cat.

    Take out the second copy of the formula and the result of 1.47 should appear.

  11. #11
    Registered User
    Join Date
    05-17-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VLookup/HLookup or Both.. Even Possible?

    I didn't even know that was possible.. What a fool JBeaucaire, what a legend. Thanks 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