+ Reply to Thread
Results 1 to 3 of 3

Trying to write amacro to compare text in column A to garbage text in column B

  1. #1
    Registered User
    Join Date
    01-18-2012
    Location
    Pittsburgh
    MS-Off Ver
    Excel 2007
    Posts
    4

    Trying to write amacro to compare text in column A to garbage text in column B

    I have a new application at work that is beyond crap! I end up exporting data to Excel to do anything because I trust Excel and do not trust Tririga. I have a column of text such as "abc123" and "abc124" and a column of text that contains "what a piece of crap - abc123 - wow and wow" and "bvcf -yui234 - ouch - ouch - ouch" and on and on for many thousands of data entries. I can do the nested loops in a macro and need to come up with a statement that compares column A with column B to see if data in column A is contained in column B, and if it is, I'll just put a flag like "Yes" in column C. Please let me know if this makes sense to anyone and if anyone can help - PLEASE PLEASE do!

    -=BDD=-
    Last edited by Big Dawg Dad; 04-19-2013 at 02:38 PM.

  2. #2
    Registered User
    Join Date
    01-18-2012
    Location
    Pittsburgh
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Trying to write amacro to compare text in column A to garbage text in column B

    Anybody????

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Trying to write amacro to compare text in column A to garbage text in column B

    Hi, BDD,

    from what I read: have you looked up InStr in the VBA help? If s string is found within another the position of the first matching character will be returned, otherwise it would just return 0. Or you use FIND and look at parts of the cells instead of the whole. Third could be the use of Autofilter and flag the hits from there.
    ...because I trust Excel
    I canīt really agree with that from my point of view.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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