+ Reply to Thread
Results 1 to 5 of 5

multi-column language lookup

  1. #1
    Registered User
    Join Date
    08-07-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    13

    multi-column language lookup

    Hello,

    I would like to build a language lookup table to dynamically translate labels in excel sheets. The lookup table looks something like this:

    Please Login or Register  to view this content.
    In the sheets I would like to use a VBA function to get the values:

    Please Login or Register  to view this content.
    My question is now, how to do the lookup most efficient. The language code is stored in a named range.

    Best regards,
    Mo

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: multi-column language lookup

    Why use VBa, VLOKUP should work
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    08-07-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: multi-column language lookup

    It's mostly a gut feeling. I feel more flexible with a function. Another reason is that I might have to change the function later to work with a language "matrix" instead of a table.
    Oh, by the way, how does a multi column lookup look like in a VLookup?

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: multi-column language lookup

    I'm not entirely sure what you mean, but I would have a table of translations on a hidden page 7 use VLOOKUP to populate cells using VLOOKup based on the country chosen

  5. #5
    Registered User
    Join Date
    08-07-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: multi-column language lookup

    Ok, let me give you some more background information. I am currently working on a prototype for excel based reports that support a wide range of languages. I am currently working on two ideas. The first (let's call it language_list) is described in the initial post:
    Please Login or Register  to view this content.
    The advantage of this is, that I can store not only a translation lable, but also a description or other values per TEXT_CODE.

    Another solution would be to have a language_matrix:
    Please Login or Register  to view this content.
    It uses the language_code as column headers and the text_code to identify rows. Advantage is, that it is much easier for the users to maintain the different translations.

    I would then use in the prototype the =getText( text_code) function to get a translation. Depending on the choosen solution I could simply change the VBA code of this function instead of rewriting the formulars in the report itself. So I can basically leave the report untouched and just change the implementation of the function.

    The code for the second solution is already implemented, but I am currently trying to find the most efficient way to implement the first solution.

    I found a solution (using match and index) here:
    http://www.dailydoseofexcel.com/arch...-column-match/
    However I have not tried it yet.

    Best regards,
    Mo.

+ 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