+ Reply to Thread
Results 1 to 6 of 6

Find specified text in string

  1. #1
    Registered User
    Join Date
    09-03-2018
    Location
    Holland
    MS-Off Ver
    2010
    Posts
    21

    Find specified text in string

    I'm comparing two strings.
    Car tire type hypersonic 3 extra = wsFrom.Cells(j, KolomFrom)
    Car tire ultra advanced hypersonic 3 type extra = wsTo.Cells(i, KolomTo)

    Is it possible to find multiple predefined values in a string.

    So If wsFrom.Cells(j, KolomFrom) contains "tire" & "extra" And wsTo.Cells(i, KolomTo) also contain "tire" & "extra" Then... etc.

    This is how it doesn't work :

    Please Login or Register  to view this content.
    Hope it's clear enough.

    Thanks!

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Find specified text in string

    Try something like this:

    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    09-03-2018
    Location
    Holland
    MS-Off Ver
    2010
    Posts
    21

    Re: Find specified text in string

    Works great! Thanks!

    Is there a way to get rid of the case sensitivity?

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Find specified text in string

    Use LCase or UCase.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-03-2018
    Location
    Holland
    MS-Off Ver
    2010
    Posts
    21

    Re: Find specified text in string

    Thanks Kokosek! Perfect!

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Find specified text in string

    You welcome.
    If You happy with solution, please use thread tools and mark thread as SOLVED.

    Thanks for rep.

+ 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. Replies: 5
    Last Post: 07-10-2017, 10:36 AM
  2. Replies: 4
    Last Post: 03-30-2015, 03:20 PM
  3. Replies: 2
    Last Post: 03-18-2015, 07:30 PM
  4. Replies: 5
    Last Post: 02-11-2015, 10:41 PM
  5. [SOLVED] Find and extract text string from within another text string
    By huy_le in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-12-2013, 03:22 PM
  6. Find and extract text string from within another text string
    By huy_le in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2013, 09:01 PM
  7. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM

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