Help needed with Excel formula

Posted on 2014-08-07
Last Modified: 2014-08-11

I have 2 applications, data was migrated from App1 to App2. each app has a gui (front end) and a db(back end). I have the db mapping between the 2 applications and from that I need to find the Gui equivalent field names.

here I have App1 Gui names and their equivalent label in the db as shown below: (this would be column A and B in my spreadsheet)
Gui1                    DB1
Tag1       compn-name
Tag2       compn-service
Line no       line-num

here is the App2. Gui names and their equivalent label : (this would be column F and G in my spreadsheet)
Gui2                             DB2
TagA                inst.tagnumber
Service                 inst.service
Line number         data.dx

here is the mapping between the databases: (this would be columns K and L in my spreadsheet).
         DB Mapping      
DB1                                  DB2
line-num                      data.dx
compn-name               inst.tagnumber
compn-service      inst.service

I need a formula that will find the Gui mapping between the 2 applications.
so the result should show me:

Tag1      TagA
Tag2      Service
Line no      Line number

Please specify the formula needs to be written in which cell?

Attached is my spreadsheet containing this information.

Thanks, much,
Question by:shland
    LVL 1

    Expert Comment

    IS there anything common between the names in the GUI ??
    This looks difficult

    Author Comment

    no names are different, otherwise I could have used vlookup...

    Author Comment

    I was thinking there should be a IF Statement we could write possibly?
    LVL 11

    Expert Comment

    Can you please try the following:
    Cell A9

    Open in new window

    copy cell A9 down to A10 and A11

    Cell B9

    Open in new window

    copy cell B9 down to B10 and B11
    LVL 11

    Assisted Solution

    I have attached the Excel file with the above formulas.
    The advantage of using INDEX and MATCH compared to VLOOKUP is that you do not have to sort the lookup range.
    LVL 27

    Accepted Solution

    Here is an alternate solution which only requires one formula copied down.  

    I re-arranged your app tables in a way that helps visualize the relationships better, moving from left to right you can see the fields line up:
    example mapping
    Since you already know your Gui1 values, you can insert them in J2:J4 and then add this formula in K2 and copy down:


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
    Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
    This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
    This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now