+ Reply to Thread
Results 1 to 8 of 8

Find then assign reference numbers to same in a second column

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    97

    Find then assign reference numbers to same in a second column

    The following code is my basic attempt to achieve this result and it is far from complete as I simple have no idea how to progress it further.

    I need code to look through two columns of names (Column B and Column E). Where matches are found, the corresponding number in Column A, as it relates to the name in Column B, is to be copied to Column D as it relates to the same name in Column E.

    Column B only has unique names, and Column A only has unique numbers. Column E has multiples of the same name, so all entries in Column D must end up with it's related number.

    The list will also be huge (32000 +) so maybe need to use "Dictionary"?

    I have included an example worksheet of what I am trying to relay.

    All assistance is appreciated.

    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: Find then assign reference numbers to same in a second column

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Find then assign reference numbers to same in a second column

    Try
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Registered User
    Join Date
    07-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Find then assign reference numbers to same in a second column

    Thank you once again jindon. Your work is legend.
    I have made a miscalculation though and hope you will tweak your code please.

    To explain:

    Some of the "two character" "Name" entries (A.M., A.T., etc) will actually be related to a different "connection".
    This means that I need the code to identify each unique entry by way of a two column match instead of the one as at present.

    I have amended the Test worksheet accordingly and coloured the examples to show what I mean. sorry, but I did not foresee this.
    Attached Files Attached Files
    Last edited by Rabbitoh; 09-20-2021 at 01:47 AM. Reason: Add more info

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

    Re: Find then assign reference numbers to same in a second column

    You mean?
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Find then assign reference numbers to same in a second column

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    07-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Find then assign reference numbers to same in a second column

    Excellent jindon. This does exactly what I need it to do and using the dictionary makes it very fast. Thank you once again for your work.

  8. #8
    Registered User
    Join Date
    07-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Find then assign reference numbers to same in a second column

    Thank you so much for your input YasserKhalil. Knowing different ways of doing the same thing is extremely useful.

+ 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. [SOLVED] how to assign continuous numbers to column vlaues?
    By genetist in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2021, 05:41 AM
  2. Replies: 6
    Last Post: 03-17-2020, 11:51 PM
  3. Replies: 12
    Last Post: 07-12-2017, 04:01 PM
  4. Find Max of numbers using relative reference
    By anupbhansali in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-26-2013, 06:48 AM
  5. Replies: 3
    Last Post: 10-15-2012, 10:42 AM
  6. Lookup numbers in sheet and assign it's cell reference
    By dgraham in forum Excel General
    Replies: 11
    Last Post: 12-18-2007, 09:48 PM
  7. [SOLVED] looking to assign different numbers in column B to different words in column A
    By mike in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2005, 10:06 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