+ Reply to Thread
Results 1 to 5 of 5

How to find an occurrence and repeat it

  1. #1
    Registered User
    Join Date
    07-13-2011
    Location
    Australia
    MS-Off Ver
    Excel 2011 - Mac
    Posts
    7

    How to find an occurrence and repeat it

    Hi All,

    I'm looking for some help with a formula. I've got a large database of automotive workshops with the company name in column A. I need a formula that will search column A for the occurrence of the word euro within the company name and than repeat the word euro in column B next to the occurrence. The idea is to find the european type workshops and be able to group them. Thanks in advance for your help.

    Regards,
    Ray
    Last edited by RayBox; 07-14-2011 at 12:00 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: How to find an occurrence and repeat it

    Hi Ray, thanks for updating the title.

    If your data is in A1:A100, then in B1 try:

    =IF(ISNUMBER(SEARCH("euro",A1)),"euro","")

    Fill that down and you should be set.

  3. #3
    Registered User
    Join Date
    07-13-2011
    Location
    Australia
    MS-Off Ver
    Excel 2011 - Mac
    Posts
    7

    Re: How to find an occurrence and repeat it

    Hi Paul,

    Thanks heaps, works a treat!

    Cheers,
    Ray

  4. #4
    Registered User
    Join Date
    07-13-2011
    Location
    Australia
    MS-Off Ver
    Excel 2011 - Mac
    Posts
    7

    Re: How to find an occurrence and repeat it

    Hi Paul,

    Need some help with a mod to this formula. I know need to search for the occurrence of a symbol ~

    When I insert the symbol into the formula is returns the "euro" whether it's there or not. Any ideas.

    Thanks,

    Ray

  5. #5
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: How to find an occurrence and repeat it

    Hi Ray,

    The tilda character (~) is a special character in the Find/Replace functionality of Excel. To search for a literal tilda within a string, use two of them in the formula, e.g.

    =IF(ISNUMBER(SEARCH("~~euro",A1)),"euro","")

    This will only result in "euro" if cell A1 contains "~euro" somewhere within its text.

    To simply search for a tilda, use two tildas, e.g.

    =IF(ISNUMBER(SEARCH("~~",A1)),"euro","")

    This will return "euro" if a tilda is found anywhere in cell A1.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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