+ Reply to Thread
Results 1 to 2 of 2

Checking if cell contains part of a string in another cell.

  1. #1
    Registered User
    Join Date
    08-17-2014
    Location
    london
    MS-Off Ver
    2010
    Posts
    17

    Checking if cell contains part of a string in another cell.

    Thinking of it like this, I have 2 columns of data, and the Right column has a string of text, e.g Qsdf, and the left column has the string in it, usually without the Q, eg sdf.
    This data goes for around 500 rows, so I am wondering if a macro would be possible that checked to see that the left hand column is contained within the right hand column, for each row, and maybe producing a MsgBox if not?

    Ive tried coding it but I cannot seem to rationalise it in my head, I know you would define a string, then select the RHS column but how does one compare it the the LHS, Using loops?

    Alex

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Checking if cell contains part of a string in another cell.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Bold part of cell string
    By willara23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2013, 02:19 AM
  2. [SOLVED] Replacing part of a string with a value of cell for each row
    By diamanthian in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2013, 04:26 PM
  3. Replies: 3
    Last Post: 07-08-2006, 02:45 PM
  4. Move Part of Cell String
    By tom in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-13-2005, 02:05 PM
  5. select part of a cell value string
    By rich_j_h in forum Excel General
    Replies: 2
    Last Post: 05-19-2005, 07: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