+ Reply to Thread
Results 1 to 5 of 5

Search in a 6x6 using first two characters by comparing to first two characters in column

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    90

    Search in a 6x6 using first two characters by comparing to first two characters in column

    So I'm trying to use a find function to look at the first cell that meets a condition in a column (F2:F25) (I've got that part locked in) then try to find a cell in a 6x6 range that initially will match but will be modified over time. The first two characters in the 6x6 (X1:AC6) will always stay the same, however, and no other cell in that range will have identical first two characters. On a match it needs to change its cell color to blue, which I've got locked in as well. Just having difficulty with the find portion. I thought using either like or instr would work but haven't had any luck so far.

    Is there a good way to do this?
    Please add *rep if I helped you!

  2. #2
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    258

    Re: Search in a 6x6 using first two characters by comparing to first two characters in col

    Show us what you've locked in an example file

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,188

    Re: Search in a 6x6 using first two characters by comparing to first two characters in col

    Will be along the lines of

    Please Login or Register  to view this content.
    Note that there is an undefined varaible of x which should refer to the original string for comparing, if I follow your description correcty, this would be the result of the Find function in F2:F25.

  4. #4
    Registered User
    Join Date
    06-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    90

    Re: Search in a 6x6 using first two characters by comparing to first two characters in col

    Below is the Macro I'm using

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    90

    Re: Search in a 6x6 using first two characters by comparing to first two characters in col

    Looks like that works perfectly, thanks a bunch!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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