+ Reply to Thread
Results 1 to 10 of 10

Formula to associate all values in column A to every value in column B

  1. #1
    Registered User
    Join Date
    08-15-2017
    Location
    Wyoming, USA
    MS-Off Ver
    2013
    Posts
    18

    Formula to associate all values in column A to every value in column B

    I have 2 columns and I'd like to take every single value in column A and associate it to every value in column B. The goal is to have column A have every association to column B. My spreadsheet is huge so I can't really do this by just manually manipulating the data.

    I've attached a pretty basic example of what I'm looking for as I'm having a hard time describing it through text. A1 - B7 has the raw data and A14 - B38 is what I'm hoping to do with a formula.

    Thank you,
    CB5
    Attached Files Attached Files

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Formula to associate all values in column A to every value in column B

    Hi CB5, perhaps something like this will work for you. This puts the result set into columns D:E.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-15-2017
    Location
    Wyoming, USA
    MS-Off Ver
    2013
    Posts
    18

    Re: Formula to associate all values in column A to every value in column B

    Hi Paul,

    Thank you for the quick response. I'm pretty green when it comes to anything outside of standard excel formulas...where would I implement your solution?

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Formula to associate all values in column A to every value in column B

    While waiting for Paul here is a formula solution.

    In the attached find two helper cells ... D13:E13. D13 is Named in Name Manager Name_Count Likewise for E13 Color_Count

    Then in D15 filled down until you get blanks
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and in E15 filled down until you get blanks.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  5. #5
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Formula to associate all values in column A to every value in column B

    Open your workbook then press ALT+F11 to open the Visual Basic editor.
    Double-click on 'Sheet1 (Sheet1)' on the left, then paste the code I provided on the right.
    Click anywhere within the code, then press F5 to run that macro.
    Go look at your worksheet.

    The code assumes your data is in A2:A## and B2:B##, then puts the results into D1:D## and E1:E##.

    You'll have to save the file as a Macro-enabled (.xlsm) file to keep the code available. If you save as .xlsx, it will prompt you about the code/macro.

  6. #6
    Registered User
    Join Date
    08-15-2017
    Location
    Wyoming, USA
    MS-Off Ver
    2013
    Posts
    18

    Re: Formula to associate all values in column A to every value in column B

    Dave,

    Thank you very much! The one part I'm not sure I understand is Output 2's reference to Output . For my actual data I'm hoping to create I don't have Output (A15:B15), rather that is what I'm trying to produce from My 2 raw data columns A1:B7

    I ended up just attaching my actual raw data. If you have time could you see if the formulas could be updated for the raw data listed here?

    Thank you
    Attached Files Attached Files

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Formula to associate all values in column A to every value in column B

    Thank you very much! The one part I'm not sure I understand is Output 2's reference to Output . For my actual data I'm hoping to create I don't have Output (A15:B15), rather that is what I'm trying to produce from My 2 raw data columns A1:B7
    Yes that is what Output2 does. I did it in columns D:E to make comparing the returns with the intended (A:B) easier.

    Here is another attachment with all work done in columns A:B. The named helper cells remain the same.

    PS I haven't looked at your latest upload. Will do now.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Formula to associate all values in column A to every value in column B

    Just looked at your latest upload (Post #6). The INDEX range in D15 needs to be changed. Try this formula. It works at my end.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    08-15-2017
    Location
    Wyoming, USA
    MS-Off Ver
    2013
    Posts
    18

    Re: Formula to associate all values in column A to every value in column B

    This works perfect now! Thank you!

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Formula to associate all values in column A to every value in column B

    You are welcome. Glad to help. Thank you for the feedback.

+ 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. Replies: 7
    Last Post: 10-23-2018, 10:18 AM
  2. Associate Column B with Column A
    By MegaMan22 in forum Excel General
    Replies: 1
    Last Post: 06-26-2017, 07:13 AM
  3. Replies: 7
    Last Post: 09-10-2013, 10:19 AM
  4. Text to Row instead of to column comma separated and associate related cells
    By oahmadi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-16-2013, 03:51 PM
  5. Associate a column data to another column data from a worksheet to another
    By matamorevictor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-15-2012, 08:54 PM
  6. Replies: 4
    Last Post: 02-19-2012, 02:58 PM
  7. [SOLVED] Associate External Data with an added column
    By cujimm in forum Excel General
    Replies: 1
    Last Post: 12-09-2005, 12:10 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