+ Reply to Thread
Results 1 to 8 of 8

search text string in cell and if found place a text in other cel

  1. #1
    Registered User
    Join Date
    04-30-2015
    Location
    Almelo
    MS-Off Ver
    2007
    Posts
    3

    search text string in cell and if found place a text in other cel

    I have to go through the bank data. Must search in column B1 for the text "Tango" and if found I have to fill column A1 with the text "fuel"

    search in B1: BEA NR:J041ZC 01.04.14/10.19 Tango Enschede 1 ENSCHED,PAS221
    if found fill cell A1
    A1: "fuel"

    How do I do this?

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: search text string in cell and if found place a text in other cel

    Hello
    Try the following formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    *Note SEARCH is not case sensitive.

    DBY

  3. #3
    Registered User
    Join Date
    04-30-2015
    Location
    Almelo
    MS-Off Ver
    2007
    Posts
    3

    Re: search text string in cell and if found place a text in other cel

    I get an error: The formula you entered contains errors. I do not know what kind of errors.
    =IF(ISNUMBER(SEARCH("Tango",G94)),"Fuel","")

  4. #4
    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: search text string in cell and if found place a text in other cel

    Try to replace comma with semi-colon.
    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

  5. #5
    Registered User
    Join Date
    04-30-2015
    Location
    Almelo
    MS-Off Ver
    2007
    Posts
    3

    Re: search text string in cell and if found place a text in other cel

    Alkey that is the good solution. Alkey and DBY thanks for this quick answer. I can now fill all data correct and send it.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: search text string in cell and if found place a text in other cel

    What do you see? Exactly. The formula should (does) work perfectly. See attached.

    have you got calculation set to Manual? (Formulas/calculation/calculation options)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: search text string in cell and if found place a text in other cel

    Quote Originally Posted by AlKey View Post
    Try to replace comma with semi-colon.
    That'll be it. He's in The Netherlands!!

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: search text string in cell and if found place a text in other cel

    Here's another one...

    =IF(COUNTIF(B1;"*Tango*");"Fuel";"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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: 1
    Last Post: 11-05-2012, 09:23 PM
  2. Replies: 3
    Last Post: 10-25-2012, 12:49 AM
  3. Replies: 3
    Last Post: 05-25-2012, 05:45 PM
  4. If text found in cell then place a 1 in another column
    By eonizuka in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-21-2009, 04:14 PM
  5. Search column - return row found in long text string
    By JayL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2005, 12:06 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