+ Reply to Thread
Results 1 to 3 of 3

Matching two columns (differing zeros)

  1. #1
    Registered User
    Join Date
    09-19-2011
    Location
    londen, engeland
    MS-Off Ver
    Excel 2003
    Posts
    20

    Matching two columns (differing zeros)

    Hey everyone!

    I have two separate datasets that need to be matched using the CUSIP code (company identifier). The problem is that in one dataset the code is 8-digit with zeros in the end and in the other dataset it is 7-digit code (thus without zeros). Thus I have a choice to either add zero in the end for 7-digit code, or remove the zero from the 8-digit code. Please see the attachment.

    Many thanks in advance.

    Hans
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Matching two columns (differing zeros)

    =MATCH(D2&"0",A$2:A$31,0)
    and copy down
    but most of your sample doesnt match even with a 0 added, not really the best sample data I've seen.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    09-19-2011
    Location
    londen, engeland
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Matching two columns (differing zeros)

    Thank you, Special-K!

    The sample I provided is just 30 observations out of 800, and thus I expect eventual matches (based on dataset characteristics).
    Adding/removing zeros from the end of the value is just the first step, as to match two datasets, I will be using Vlookup.
    Thus for this moment, I need to either add a zero to the end of the second column, or remove a zero from the end of the first column.

    I hope I explained myself more clear now, if not, please let me know!

    Thanks,

    Hans

+ 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. Unstack 2 columns of differing data into a single table
    By ricky419 in forum Excel General
    Replies: 2
    Last Post: 03-26-2013, 12:21 AM
  2. Matching data (of differing ranges) from one column to another
    By cloudwalking in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2013, 12:53 PM
  3. Replies: 2
    Last Post: 06-12-2012, 02:24 PM
  4. [SOLVED] Compare and align rows of multiple but differing columns of data
    By e abor in forum Excel General
    Replies: 0
    Last Post: 06-06-2006, 12:10 PM
  5. [SOLVED] excel charting formulas - sum of 2 columns with differing data
    By John Watson @ barkoff container in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-19-2005, 10:05 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