+ Reply to Thread
Results 1 to 7 of 7

Match non-exact text and manipulate data to different rows and columns

  1. #1
    Registered User
    Join Date
    04-15-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2010
    Posts
    4

    Match non-exact text and manipulate data to different rows and columns

    Hi guys,

    Long time browser first time poster.

    Basically the webpage in A2 “get-your-application”, A3 “get-your-application?emailref” and A5 “get-your-application?mnote", are all the same webpage just tagged with “?emailref” or “?mnote” to indicate how the user accessed the site (went direct, clicked a link in an newsletter or clicked a link in an email).

    What I would like to do, and I’m not sure if it’s possible, is write a macro that will:

    1) Find ?emailref and move the data to column D, Find ?mnote and move the data to column E.

    2) Merge any common lines that only differ based on the tag at the end, into one line, so that the data for each page is consolidated into one line with the methods of access in the columns.

    I hope this makes sense and is in the right place, I’m not sure if it’s possible. Any assistance or guidance you can provide would be great as I’m stumped! Thanks.

    ast58_excel problem.xlsx

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

    Re: Match non-exact text and manipulate data to different rows and columns

    Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-15-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2010
    Posts
    4

    Re: Match non-exact text and manipulate data to different rows and columns

    Hi Jindon,

    Thanks for the quick reply mate. It's very close but not quite there. If possible I'd like the figure in c3 to appear in K2, then c5 to appear in L2 and then I2=Sum(J2:JL2) etc.

    Cheers mate
    Attached Files Attached Files

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

    Re: Match non-exact text and manipulate data to different rows and columns

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-15-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2010
    Posts
    4

    Re: Match non-exact text and manipulate data to different rows and columns

    Thank you! It works a treat in the sample. Is there a particular trick for when I copy and past into another workbook to run against the real data? I get a mismatch error?

    Or could you please advise the cause of the error and I'll have a closer look at the debugging?

    Many thanks
    Attached Images Attached Images

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

    Re: Match non-exact text and manipulate data to different rows and columns

    If you are talking about different file that I can't see.... no idea.

    It says Type mismatch, so could be data itself or something else.

  7. #7
    Registered User
    Join Date
    04-15-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2010
    Posts
    4

    Re: Match non-exact text and manipulate data to different rows and columns

    Thanks for your help, I didn't realise the headers of columns were different in the sample compared the the real source of the data. I fixed it up and it works great. Thanks for your help!

+ 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] Find exact match in multiple columns in 1 row with all other rows 90,000 rows.
    By KHurt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-02-2013, 01:38 PM
  2. Comparing two text columns and return data based on an exact match
    By AShah33 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-04-2013, 04:23 PM
  3. How to match in 2 sheets with columns with non exact Text data ?
    By Faisal85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2012, 03:28 PM
  4. Replies: 2
    Last Post: 05-08-2012, 07:17 PM
  5. [SOLVED] MATCH function - 2 columns w/ SIMILAR, not EXACT data
    By Jane in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2005, 12:06 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