+ Reply to Thread
Results 1 to 3 of 3

Match Differently Formatted Text Columns

  1. #1
    Registered User
    Join Date
    06-17-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    14

    Match Differently Formatted Text Columns

    Hi All,

    I'm trying to pair up spend info from a source with revenue info that source generated which is many hundreds of rows long. My issue is that the reported Spend Source is in a slightly different format (capital letters, spaces added, etc) vs the revenue source. Wondering if there's a way (maybe some form of VLOOKUP?) that I could match the two if the columns have some form of common text?


    Eg. (more info in attached sheet)
    Spend Source:
    Website One - CoolStuff
    $100

    Revenue Source:
    websiteone-coolstuff
    $120

    Thanks for any help!
    Attached Files Attached Files
    Last edited by spiphix; 08-23-2016 at 07:19 PM.

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Match Differently Formatted Text Columns

    Hi -

    You can use SUBSTITUTE to get rid of extra spaces, and then use MATCH to find text that matches. MATCH doesn't care if letters are capitalized or not. Aa = aa according to MATCH. So you could write a little formula like this:

    =MATCH(SUBSTITUTE(A2," ",""),$E$2:$E$4,0)

    Which will return the row in E2:E4 that matches A2 (WebsiteOne-CoolStuff Note the spaces have been removed by SUBSTITUTE).

    The only problem I see with your data is abc123-websitetwo is never easily going to equal Websitetwo. Spaces and letter case is one thing. Deciphering text out of random text will be a problem. If there are only one or two cases where that occurs, you can probably work around it (e.g., find them manually, add a formula in a separate column that uses SUBSTITUTE to get rid of those few specific instances, etc.) If there's a lot of cases with random text, it's going to be a lot more difficult.

    Hope this helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Registered User
    Join Date
    06-17-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    14

    Re: Match Differently Formatted Text Columns

    Thanks loginjmor!

    It is about a thousand rows long, though this gets me 90% of the way there. I should be able to figure something out for the others.

    This helps a lot, thanks again.

+ 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] Printout doesn't match screen view (columns wrap differently).
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 03:05 PM
  2. [SOLVED] Printout doesn't match screen view (columns wrap differently).
    By SheriBee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. Printout doesn't match screen view (columns wrap differently).
    By SheriBee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. [SOLVED] Printout doesn't match screen view (columns wrap differently).
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  5. Printout doesn't match screen view (columns wrap differently).
    By SheriBee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. Printout doesn't match screen view (columns wrap differently).
    By SheriBee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. [SOLVED] Printout doesn't match screen view (columns wrap differently).
    By SheriBee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] Printout doesn't match screen view (columns wrap differently).
    By SheriBee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-13-2005, 01: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