+ Reply to Thread
Results 1 to 8 of 8

How to use IF & FIND to find out diferent string in cell

  1. #1
    Registered User
    Join Date
    06-12-2017
    Location
    Hong Kong
    MS-Off Ver
    2013
    Posts
    4

    How to use IF & FIND to find out diferent string in cell

    Since I need to sort out difference codes (e.g. T01, T02, T03, T04, T05, T06, T07, T08, T09) in each cells, Iwrite formula =if(find("T01", B1), "T01", (find("T02", B1), "T02", (find("T03", B1), "T03", (find("T04",B1), "T04", "0")
    It does not work. Please help to point out my problem, and suggest the correct formula. My Excel level is elementary. Thanks to all.

  2. #2
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Quebec, Canada
    MS-Off Ver
    2013
    Posts
    232

    Re: How to use IF & FIND to find out diferent string in cell

    I guess that is what you were trying to do, although there most likely are better ways to do this

    Please Login or Register  to view this content.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to use IF & FIND to find out diferent string in cell

    Here is another way
    Enter all T0 in column D
    Enter formula in C1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v B C D
    1 Text T03 and text T03 T01
    2 Text and T09text T09 T02
    3 Text T01 and text T01 T03
    4 Text TEXT and text T05 T05 T04
    5 Text and T07text T07 T05
    6 Text T04 and text T04 T06
    7 Text Text and T08 T08 T07
    8 Text T03 and text T03 T08
    9 Text T06 and text T06 T09
    Last edited by AlKey; 06-12-2017 at 10:08 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    06-12-2017
    Location
    Hong Kong
    MS-Off Ver
    2013
    Posts
    4

    Re: How to use IF & FIND to find out diferent string in cell

    Quote Originally Posted by Jdevil View Post
    I guess that is what you were trying to do, although there most likely are better ways to do this

    Please Login or Register  to view this content.
    Thanks, an excellence feedback !!!

  5. #5
    Registered User
    Join Date
    06-12-2017
    Location
    Hong Kong
    MS-Off Ver
    2013
    Posts
    4

    Re: How to use IF & FIND to find out diferent string in cell

    Thanks, and an excellence suggestion.
    Appreciated !

  6. #6
    Registered User
    Join Date
    06-12-2017
    Location
    Hong Kong
    MS-Off Ver
    2013
    Posts
    4

    Re: How to use IF & FIND to find out diferent string in cell

    Quote Originally Posted by AlKey View Post
    Here is another way
    Enter all T0 in column D
    Enter formula in C1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v B C D
    1 Text T03 and text T03 T01
    2 Text and T09text T09 T02
    3 Text T01 and text T01 T03
    4 Text TEXT and text T05 T05 T04
    5 Text and T07text T07 T05
    6 Text T04 and text T04 T06
    7 Text Text and T08 T08 T07
    8 Text T03 and text T03 T08
    9 Text T06 and text T06 T09
    Thanks, and an excellence suggestion.
    Appreciated.

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: How to use IF & FIND to find out diferent string in cell

    Or:

    =LOOKUP(1,-FIND({" ","T01","T02","T03","T04","T05","T06","T07","T08","T09"}," "&B1),{"","T01","T02","T03","T04","T05","T06","T07","T08","T09"})

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to use IF & FIND to find out diferent string in cell

    or
    =IF(SUMPRODUCT(IFERROR(SEARCH({"T01","T02","T03","T04","T05","T06","T07","T08","T09"},A1),0)),A1,"")

+ 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. need formula or vba to find exact string through list and find exact correct string
    By johnlara in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-04-2016, 04:12 AM
  2. [SOLVED] Find and replace string if value find in column
    By ghostexcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2016, 10:42 AM
  3. [SOLVED] Can I use FIND function to find specific string in a single cell?
    By bonpara in forum Excel General
    Replies: 2
    Last Post: 10-05-2015, 05:46 PM
  4. [SOLVED] Vlookup, Match (Search or Find) partial string within string in a Cell
    By dluhut in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-28-2013, 12:40 PM
  5. from value in combo box find data in 2 diferent sheets
    By cdafonseca in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-21-2013, 12:43 PM
  6. How to make .Find to find string with space char?
    By selimhanov in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2009, 05:23 AM
  7. how to find Certain String in a column, select/Copy the cell till another String
    By excelkeechak in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-18-2009, 10:59 AM

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