Results 1 to 7 of 7

To find partial text

Threaded View

gan_xl To find partial text 08-06-2013, 09:38 AM
TMS Re: To find partial text 08-06-2013, 09:50 AM
gan_xl Re: To find partial text 08-06-2013, 10:15 AM
gan_xl Re: To find partial text 08-06-2013, 10:18 AM
gan_xl Re: To find partial text 08-06-2013, 10:12 AM
TMS Re: To find partial text 08-06-2013, 10:16 AM
TMS Re: To find partial text 08-06-2013, 10:44 AM
  1. #1
    Forum Contributor
    Join Date
    03-13-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2003
    Posts
    152

    To find partial text

    Hi

    Below is my search and find program. It is fine if I find whole word but it is not working when i try to find partial text.

    Seach keyword : max

    The following texts available in the rows and the program should find below texts

    maxddd
    ddmaxfff
    ddmax


    inp = InputBox("Enter The Keyword To Search")
    uinp = UCase(inp)
    
    For i = 6 To 500
    
    Worksheets("Sheet1").Cells(i, 5).Select
    
    v1 = UCase(Worksheets("Sheet1").Cells(i, 5).Value)
    v2 = UCase(Worksheets("Sheet1").Cells(i, 6).Value)
    v3 = UCase(Worksheets("Sheet1").Cells(i, 7).Value)
    v4 = UCase(Worksheets("Sheet1").Cells(i, 8).Value)
    v5 = UCase(Worksheets("Sheet1").Cells(i, 9).Value)
    
    
    If uinp = "*" & v1 & "*" Or uinp = "*" & v2 & "*" Or uinp = "*" & v3 & "*" Or uinp = "*" & v4 & "*" Or uinp = "*" & v5 & "*" Then
    rownumb = ActiveCell.Row
    Worksheets("Sheet1").Rows(rownumb & ":" & rownumb).Hidden = False
    k = 1
    End If
    
    Next i

    It is not working

    If uinp = "*" & v1 & "*" Or uinp = "*" & v2 & "*" Or uinp = "*" & v3 & "*" Or uinp = "*" & v4 & "*" Or uinp = "*" & v5 & "*" Then
    Please help.

    Thanks.
    Last edited by gan_xl; 08-06-2013 at 11:07 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [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
  2. [SOLVED] Conditional formating based on text in 2 columns (but only partial text!)
    By Icehockey44 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2012, 06:26 AM
  3. [SOLVED] Find partial text in cell and assign variable a value if found
    By lday75 in forum Excel General
    Replies: 4
    Last Post: 07-26-2012, 01:36 PM
  4. Replies: 16
    Last Post: 04-20-2010, 01:27 PM
  5. matching partial text within one cell to partial text within another
    By Solstice in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-03-2010, 09:13 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