+ Reply to Thread
Results 1 to 3 of 3

Match cell << containing >> '' XXXX '' when I merge my worksheets

  1. #1
    Registered User
    Join Date
    07-08-2018
    Location
    Belgium
    MS-Off Ver
    97
    Posts
    2

    Match cell << containing >> '' XXXX '' when I merge my worksheets

    Hello everyone,

    I was trying to merge two worksheets (ws1 and ws2) with an same ID column (in the first worksheet ws1).
    I managed this with the following code:

    Please Login or Register  to view this content.
    The trouble is that sometimes my ID cells contain two IDs separated by a comma ... And I wondered if it was possible to make a match based on what the cell contains.

    Capture.PNG

    So if I have an cell X: '' 825634767, 825634766 ''
    So when in my other worksheet I have a cell '' 825634767'' and a cell '' 825634766 '', it can apply the same treatment for the two cells that match with my cell X

    In my code, the column that can contain an X cell is that of ws2
    While my first sheet (ws1) should contain the details (column C) of the ws2 having match.


    What do you think please ?
    Thank you for reading!

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    6,986

    Re: Match cell << containing >> '' XXXX '' when I merge my worksheets

    .
    First divide the strings in your columns so there is only one number per cell. Not knowing which column your project might have two numbers separated by a comma,
    this small macro focus's on Col B :

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

  3. #3
    Registered User
    Join Date
    07-08-2018
    Location
    Belgium
    MS-Off Ver
    97
    Posts
    2

    Re: Match cell << containing >> '' XXXX '' when I merge my worksheets

    Hey Logit ,
    thanks for your answer!
    Last edited by Pulsar12; 07-16-2018 at 01:33 PM.

+ 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. formatting x-xxxx as x-xxxx.00
    By emilybart in forum Excel General
    Replies: 9
    Last Post: 06-19-2015, 03:28 PM
  2. Replies: 9
    Last Post: 11-05-2013, 11:06 PM
  3. String manipulation xxx/xxxx/xxxx//
    By mikedu in forum Excel General
    Replies: 3
    Last Post: 04-13-2011, 04:33 PM
  4. Replies: 3
    Last Post: 08-06-2009, 03:02 PM
  5. Macro to Create Worksheet 'xxxx' and list All Worksheets in Workbook
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2009, 08:58 AM
  6. 2 worksheets, need to merge and/or match
    By ppiracing in forum Excel General
    Replies: 2
    Last Post: 11-30-2007, 02:54 PM
  7. Replies: 1
    Last Post: 07-01-2005, 06:05 PM

Tags for this Thread

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