+ Reply to Thread
Results 1 to 5 of 5

Nested Vlookup

  1. #1
    Registered User
    Join Date
    09-25-2006
    Location
    North West, UK
    MS-Off Ver
    2010
    Posts
    73

    Nested Vlookup

    Hi all

    I have attached a small sample of some data I am working on (the total is about 6000 lines overall spread over 30 worksheets), but I am stuck trying to get a nested vlookup to work, can anyone help please?

    What I have

    A list of codes contained in 'A' and values in 'B'. I have grouped together the codes in colum 'A' starting with the same 4 digits, and gave them a named range. Columns G and H show all the possible range names. 'K' is a list of all the seperate codes (I know it is the same as 'A', but this is just an example to get a formula working)

    What I would like formula column L

    to lookup the first 4 digits in column 'K', use that value to lookup the range name in 'G & H', then using the FULL code in K, look for that in the corresponding name range and return the value from 'B'

    I hope that makes sense, but I am sure looking at the formula I have tried will clarify it

    Thanks
    Attached Files Attached Files
    Last edited by Althas; 02-12-2009 at 10:06 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Nested Vlookup

    Not entirely sure I'm following the concept (presumably the embedded lookup will generate references to various sheets in your file) but for the purposes of your demo:

    Please Login or Register  to view this content.
    Note: INDIRECT is Volatile so if you have lots of them performance will be affected (adversely) -- see http://www.decisionmodels.com/calcsecretsi.htm for more info on Volatility and all things Calculation ...

  3. #3
    Registered User
    Join Date
    09-25-2006
    Location
    North West, UK
    MS-Off Ver
    2010
    Posts
    73

    Re: Nested Vlookup

    Thanks Donk :-)

    Yes, sorry I should have said, the range names will be on other sheets within the same workbook, does that make a dofference to this?

    Cheers

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Nested Vlookup

    If the references you're using in conjunction with INDIRECT are contained within the same workbook then that's fine... INDIRECT will run into issues when the target is external and closed at which point other approaches need to be sought (like morefunc.xll / INDIRECT.EXT). Doesn't sound like this is an issue for you though... beware of volatility though pending size of your file.

  5. #5
    Registered User
    Join Date
    09-25-2006
    Location
    North West, UK
    MS-Off Ver
    2010
    Posts
    73

    Re: Nested Vlookup

    Thanks I will give it a go and see how badly it effects the file. Thanks for all your help

+ 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