+ Reply to Thread
Results 1 to 3 of 3

Sort and match variables from lookup tables to create concatenated string

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,946

    Sort and match variables from lookup tables to create concatenated string

    Hi Guys,

    i have list in column A like here:

    Screenshot_43.png

    where i have to loop one by one and match with SourceTables(T_region,t_Device,t_Genre,t_Order) order and values.

    The Result is:

    Urządzenie > PC, Gatunek > Akcja, Adveture, Region > Wersja Global
    (Device> PC, Genre> Action, Adventure, Region
    > Global)

    So first of all i have to match all variables from column A and know from what table is coming from (like using if statement from source tables):

    GLOBAL--> Wersja GLOBAL (t_Region)
    PC --> PC (t_Device)
    Adventure --> Przygoda (t_Genre)
    Action --> Action (t_Genre)

    And after this i want to create concatenated string based on Category (table entity) and atributes (example without ORDER):

    [A2]: Region > GLOBAL (i know that global is in t_Region table)
    [A3]: Device > PC (i know that PC is in t_Device)
    [A4]: Genre > Adventure (i know that Adventure is in t_Genre table)
    [A5]: Genre > Action (i know that Actionis in t_Genre table)

    result:
    Region > GLOBAL, Device > PC, Genre > Action, Adventure

    As you can see Region is Parent Category and Global is the atribute of it so i have Region > GLOBAL,
    in case of Genre we have 2 atributes so i have Genre (Parent) > Action, Adventure.

    And what is important i have to maintain also order from t_Order table:
    Name Order
    Device 1
    Genre 2
    Region 3

    So we have as last result:

    Device> PC, Genre> Action, Adventure, Region > Global which translates (match from source tables) into: Urządzenie > PC, Gatunek > Akcja, Adveture, Region > Wersja Global

    Do you have maybe any idea for this?
    What objects i can use and how to do this?

    Please help,
    Jacek
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by jaryszek; 07-21-2020 at 02:59 AM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Sort and match variables from lookup tables to create concatenated string

    Not really sure about the logic of your result, so outputs differently.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,946

    Re: Sort and match variables from lookup tables to create concatenated string

    thank you jindon very much!

    It is awesome!

    I think i have to change a little but i can adjust it.

    Best,
    Jacek

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Create concatenated string from variables in another table
    By Andrew Hope in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-30-2013, 03:27 PM
  2. Create concatenated string from variables in another table
    By Andrew Hope in forum Excel General
    Replies: 4
    Last Post: 12-30-2013, 01:03 PM
  3. [SOLVED] Match multiple substrings in a cell against a lookup table and return concatenated values
    By stevewc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2013, 10:50 AM
  4. Replies: 10
    Last Post: 11-28-2012, 08:06 AM
  5. [SOLVED] Table lookup & return of concatenated string from Row
    By jdfjab in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-26-2012, 04:24 PM
  6. Making proper names out of concatenated string variables
    By TryToExcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2010, 06:25 PM

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