+ Reply to Thread
Results 1 to 7 of 7

Partial match to search number and text

  1. #1
    Forum Contributor
    Join Date
    05-10-2019
    Location
    Penang, Malaysia
    MS-Off Ver
    2016
    Posts
    262

    Partial match to search number and text

    Hi All,

    I have an issue for searching for a partial number or text for only with 7(number) or 7 pieces (text). This is what I want to achieve.
    However, it also searches anything with 7 & returns as TRUE which is wrong, eg 71 (number) or 71 pieces (text).

    Any help is great appreciated. Please find the attachment.

    Thank-You very much.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Partial match to search number and text

    Maybe something like =OR(A1=7,ISNUMBER(SEARCH("7 ",$A1))).

  3. #3
    Forum Contributor
    Join Date
    05-10-2019
    Location
    Penang, Malaysia
    MS-Off Ver
    2016
    Posts
    262

    Re: Partial match to search number and text

    Hi Jie,

    Thanks for your help & it worked!

    Will close this thread to Solved & reputation issued to you.

    Thank-You very much

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Partial match to search number and text

    Please try

    =--LEFT(A1,FIND(" ",A1&" "))=7

    or

    =ISNUMBER(FIND(" 7 "," "&A1&" "))
    Last edited by Bo_Ry; 02-17-2022 at 04:03 AM.

  5. #5
    Forum Contributor
    Join Date
    05-10-2019
    Location
    Penang, Malaysia
    MS-Off Ver
    2016
    Posts
    262

    Re: Partial match to search number and text

    Hi Bo,

    Yes it solved too. reputation added to you too.

    Thank-You very much

  6. #6
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Partial match to search number and text

    Quote Originally Posted by Bo_Ry View Post
    Please try

    =--LEFT(A1,FIND(" ",A1&" "))=7
    I thought about using that formula too, but then I realized if I have something like "I have 7 pieces", then the formula is going to fail.

  7. #7
    Forum Contributor
    Join Date
    05-10-2019
    Location
    Penang, Malaysia
    MS-Off Ver
    2016
    Posts
    262

    Re: Partial match to search number and text

    Hi Jie,
    Yes you are right!, perhaps i should be more specific for any text with 7 or just number 7 .

    Thank-You very much.

+ 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] Index match 2 items returning multiple results & search for partial text
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2020, 01:45 PM
  2. [SOLVED] Index/Match combining with Search (partial text string)
    By iasinschi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-29-2018, 05:08 PM
  3. Search and Match partial text string to full text and return a value
    By homa5424 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2017, 10:52 AM
  4. Replies: 9
    Last Post: 09-05-2017, 11:35 AM
  5. [SOLVED] Function that will search partial text match and place a 1 in column
    By thebrin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2017, 01:38 AM
  6. Search variable number of sheets to find partial match on name
    By carolmwondering in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2014, 01:44 PM
  7. Search and copy based on partial text match
    By PIQalap in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2014, 11:36 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