+ Reply to Thread
Results 1 to 7 of 7

Matching Multiple repeating values in one column with another

  1. #1
    Registered User
    Join Date
    10-23-2009
    Location
    Norwich, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Matching Multiple repeating values in one column with another

    Matching Multiple repeating values in one column with another.

    I have a three columns of data that I need to map the requird Ids in Col A against multiple repeats in Col C. AS per data below

    ID req Ids Repeating values
    REQ123 12234 12234
    REQ124 12235 12234
    REQ125 12236 12234
    REQ126 12237 12234
    REQ127 12238 12234
    REQ128 12239 12234
    REQ129 12240 12234
    REQ130 12241 12234
    REQ131 12242 12234
    REQ132 12243 12235
    REQ133 12244 12235
    REQ134 12245 12235
    REQ135 12246 12235
    REQ136 12247 12235
    REQ137 12248 12235
    REQ138 12249 12235
    REQ139 12250 12235
    REQ140 12251 12235
    REQ141 12252 12236
    REQ142 12253 12236
    REQ143 12254 12236
    REQ144 12255 12236
    REQ145 12256 12236
    REQ146 12257 12236
    REQ147 12258 12236
    ....................12237
    ....................12237
    ....................12237
    ....................12237
    ....................12237
    ....................12237
    ....................12237
    ....................12237
    ....................12237


    Any ideas how I can do this?

    Thanks

    steve
    Last edited by stevebbbb; 10-25-2009 at 07:19 AM.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Matching Multiple repeating values in one column with another

    Column A and C do not match. Please specify the before and after situation by example.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Registered User
    Join Date
    10-23-2009
    Location
    Norwich, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Matching Multiple repeating values in one column with another

    Hi, sorry will try and explain again, Column A & B are the same legnth and are aligined correctly. What I want to do is each time a data item in B matches C I want the ref in A to be placed in Column D. The difficulty is, as the Ref in C repeats so many times normal Match is not working. Column B and A have 950 values. Column C has 29,000. So I want to end up with 29,000 refs from A matching the correct values in C. Example columns below..am struggling with the formating so will show each column one after the other.

    Column A Values

    REQ123
    REQ124
    REQ125
    REQ126
    REQ127
    REQ128
    REQ129
    REQ130
    REQ131
    REQ132
    REQ133
    REQ134
    REQ135
    REQ136
    REQ137


    Column B Values

    12234
    12235
    12236
    12237
    12238
    12239
    12240
    12241
    12242
    12243
    12244
    12245
    12246
    12247
    12248


    Column C Values

    12234
    12234
    12234
    12234
    12234
    12234
    12234
    12234
    12234
    12235
    12235
    12235
    12235
    12235
    12235
    12235
    12235
    12235
    12236
    12236
    12236
    12236
    12236
    12236
    12236


    Column D Values

    REQ123
    REQ123
    REQ123
    REQ123
    REQ123
    REQ123
    REQ123
    REQ123
    REQ123
    REQ124
    REQ124
    REQ124
    REQ124
    REQ124
    REQ124
    REQ124
    REQ124
    REQ124
    REQ125
    REQ125
    REQ125
    REQ125
    REQ125
    REQ125
    REQ125

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Matching Multiple repeating values in one column with another

    In D1:

    =INDEX(A:A, MATCH(C1, B:B, 0))

    ...and copy down.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    10-23-2009
    Location
    Norwich, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Matching Multiple repeating values in one column with another

    Thanks loads - JBeaucaire, that works a dream!

    Cheers.

    Steve

    PS - do I need to set this to resolved?

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Matching Multiple repeating values in one column with another

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

  7. #7
    Registered User
    Join Date
    10-23-2009
    Location
    Norwich, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Matching Multiple repeating values in one column with another

    Have updated status and added to your Rep!

+ 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