+ Reply to Thread
Results 1 to 7 of 7

Associating the content in a Column with data in another column then concatenat the two in

  1. #1
    Registered User
    Join Date
    11-13-2014
    Location
    Gainesville, FL
    MS-Off Ver
    Excel 2013
    Posts
    11

    Associating the content in a Column with data in another column then concatenat the two in

    I have a very simple request that is absolutely baffling me: Here is the basic sample:

    I have a workbook that is divided into three sheets. The first sheet is my dashboard, the second sheet is all of my raw data, the third sheet contains all of the data I use for drop-downs and data validation in the second sheet.

    In the third sheet I have a table named Agency. It contains two columns; Column 1 contains the Agency name spelled out and Column two contains the abbreviation for that agency. One of the column in my second sheet is for Agencies and is a data validation drop down that pulls from the Abbreviation column in the Agency table located on sheet three.

    What I would like to do is:

    On sheet two, when I make a selection in the Agency column it associates the abbreviation I selected with the full name of the agency, then concatenates both of them into a third cell.

    Something like this:

    Sheet 2 Column D>Select "ADOT" excel associates "ADOT" with the full name of the agency in the ADOT row in sheet three and concatenates both into another field on sheet two. The result looks like this:

    Sheet Two:

    Col D Col F
    ADOT Alaska Department of Transportation ADOT

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,703

    Re: Associating the content in a Column with data in another column then concatenat the tw

    Post a sample worksheet that we can work with to make this happen. That will help with visualizing the solution.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-13-2014
    Location
    Gainesville, FL
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Associating the content in a Column with data in another column then concatenat the tw

    Sample Workbook (Excel_Forum).xlsx

    Here is a sample work book

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,703

    Re: Associating the content in a Column with data in another column then concatenat the tw

    In F2 =VLOOKUP(D2,CHOOSE({1,2},Table2[Abbreviation],Table2[Name]),2,0)&" ("&D2&")"

  5. #5
    Registered User
    Join Date
    11-13-2014
    Location
    Gainesville, FL
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Associating the content in a Column with data in another column then concatenat the tw

    Thank you so much. It worked like a charm.

  6. #6
    Registered User
    Join Date
    11-13-2014
    Location
    Gainesville, FL
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Associating the content in a Column with data in another column then concatenat the tw

    =VLOOKUP(D2,CHOOSE({1,2},Table2[Abbreviation],Table2[Name]),2,0)&" ("&D2&")"

    A few questions:

    What does {1,2} reference? My guess is the sheets?

    What does ,2,0 reference? No guess

    The actual workbook I'm using hase different sheet names, so I'm wondering where to revise the formula.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,703

    Re: Associating the content in a Column with data in another column then concatenat the tw

    The choose lets you change the vlookup from a left to right look up do a right to left look up. The 2 tells the vlookup to look in the second column for the result. the 0 tells excel to find an exact match.

    If you are unfamiliar with the Vlookup function, then look here http://www.techonthenet.com/excel/formulas/vlookup.php

+ 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. Inserting column headers text before the content of each cell in a column
    By Spacedone in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-27-2014, 10:18 AM
  2. How can I merge rows of data that have the same content in column A?
    By GregsExcel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-11-2013, 03:55 AM
  3. Associating data from one column to another
    By HotasL in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2012, 08:58 AM
  4. Replies: 2
    Last Post: 02-02-2012, 09:02 AM
  5. Replies: 5
    Last Post: 10-26-2011, 11:57 AM

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