• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Business Intelligence & Data Analysis
      • Power BI Course
      • Excel Dashboard Course
      • Excel Power Query Course
      • Power Pivot and DAX Course
      • Excel PivotTable Course – Quick Start
      • Excel PivotTable Course
      • Financial Modelling Course
    • Microsoft Office
      • Excel Expert Advanced Excel Training
      • Advanced Excel Formulas Course
      • Excel, Word, PowerPoint
      • Microsoft Word Course
      • Microsoft PowerPoint Course
      • Excel Tables Course
    • Excel Specialist Courses
      • Excel for Customer Service Professionals
      • Excel for Operations Management Course
      • Excel for Decision Making Under Uncertainty Course
      • Excel for Finance Course
      • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login
  • 0
    $0

Excel SEARCH and You Will FIND

You are here: Home / Excel Formulas / Excel SEARCH and You Will FIND
Excel SEARCH and You Will FIND
August 24, 2011 by Mynda Treacy

In Excel there are two almost identical functions; SEARCH and FIND.

The SEARCH and FIND functions allow you to find the location of text within a string of text.

They’re identical because they perform the same function except the FIND function is case sensitive, whereas the SEARCH function is not, and SEARCH allows the use of wildcards whereas FIND does not.

So let’s look at how we can use them.

SEARCH Function

The syntax for the SEARCH function is:

=SEARCH(find_text, witin_text, [start_num])

In English:

=SEARCH(find the location of my text or my text string, within a cell containing text or a text string, starting from position x)

Note: if the [start_num] is omitted it will start at 1.

For example; if cell A1 contains the words ‘went away’ and your formula reads

=SEARCH('E',A1) 

The result will be 2, since the letter ‘e’ is the second letter in cell A1.

If you wanted to search for a text string, let's say ‘away’

=SEARCH('away',A1) 

The formula would return the result 6, since the word ‘away’ starts in position 6 in cell A1.

SEARCH Function Examples

SEARCH Function example

SEARCH Function Examples Explained:

  1. You’ll notice in the first example the SEARCH function ignored the fact that we were searching for an upper case ‘E’ and still returned a 2. If you want case sensitivity use the FIND function.
  2. In the second example we put the start_num as ‘4’ and the result was 6.
  3. In the third example we wanted it to return the starting position of a text string ‘edle’ so Excel ignored the first ‘e’ and returned the result ‘3’.
  4. In the fourth example we used a question mark wildcard. The question mark wildcard will return the position of text that begins with an ‘e’, then has any single character, and ends in a ‘d’.
  5. In the fifth example we used an asterisk wildcard. The asterisk wildcard enables us to search for any string that begins with an ‘h’ and ends in a ‘k’.
  6. If the text string is not found the SEARCH function will return a #N/A result.

Note: you can’t use wildcards with the FIND function.

Whoop-de-doo I hear you say. What will I ever use that for? Ok, I hear you.

Some Cool Uses for SEARCH and FIND

On their own SEARCH and FIND aren’t much use so let's look at some ways to use them nested in other formulas to unleash their power!

Enter your email address below to download the sample workbook.



By submitting your email address you agree that we can email you our Excel newsletter.
Please enter a valid email address.

Caveat: I will briefly explain the tricks here, but for deeper understanding click here to download the workbook and play around with them yourself. Note: This is a .xlsx file. Please ensure your browser doesn't change the file extension on download.

  1. Convert the result to a TRUE/FALSE answer using ISNUMBER and then use it in an IF statement to return a value for 'brown foxes' and a different value for everything else.
  2.  
    SEARCH Function with IF Statement
    Brief Explanation: The formula in cell B20 is searching for the word ‘brown’, if the result is a number (ISNUMBER) then choose the value in cell F20, and if it’s not (if the word isn’t found SEARCH will return a #N/A error) then choose the value in cell F21.

  3. Use with MID to parse columns as an alternative to Text to Columns
  4.  
    FIND Function example

    In cell C27:

    =SEARCH(" ",A27)

    returns the position of the first space, which is also the length of the first word (including the space).

    In cell
    D27:

    =IFERROR(SEARCH(" ",$A$27,C27+1),LEN($A$27)+1)

    Finds the location of the second space.

    If the result is an error it returns the length of the whole text string + 1. This is simply error handling as the last word in the text string will return a #VALUE! error without this.

    In cell C28:

    =MID($A$27,1,C27)

    returns the first seven characters in the cell A27.

    In cell D28:

    =MID($A$27,C27,IFERROR(D27-C27,100))

    Again, the IFERROR is simply error handling for the last word in the text string.

    Now you can copy the formulas in D27 and D28 across your columns as many times as required, and Bob’s your Uncle!

    Brief Explanation: This example uses the SEARCH function to locate the starting position of each word in cell A27.

    It does this by finding the location of each space, and then adding 1 to get the starting position of each word.

    It then uses those numbers in MID formulas in row 28 to extract the individual words from cell A27, and puts them in their own column. Just as you can do with Text to Columns.

    This requires 4 different formulas, but once you’ve set them up you can copy them across your columns and quickly parse large amounts of text.

  5. Use it as an array formula to count the number of instances of a word occurring in text strings in a range of cells.

SEARCH Function array example

Note: the formula is entered

=COUNT(IF(SEARCH("brown",A32:A35),1,""))

and then you press CTRL+SHIFT+ENTER to enter it as an array formula and Excel will enter the curly brackets for you.

If you liked this let me know by clicking the Facebook like, Tweet it or simply leave a comment below. I'd love to hear from you and how you use these functions.

Searching for Text Strings in Power Query

We can also use Power Query to search for text strings, including case and non-case sensitive searches.

Excel SEARCH and You Will FIND
Mynda Treacy

Microsoft MVP logo

AUTHOR Mynda Treacy Co-Founder / Owner at My Online Training Hub

CIMA qualified Accountant with over 25 years experience in roles such as Global IT Financial Controller for investment banking firms Barclays Capital and NatWest Markets.

Mynda has been awarded Microsoft MVP status every year since 2014 for her expertise and contributions to educating people about Microsoft Excel.

Mynda teaches several courses here at MOTH including Excel Expert, Excel Dashboards, Power BI, Power Query and Power Pivot.

More Text Formulas Posts

Excel TEXT Function – handy but limited…or is it?

Excel TEXT Function – handy but limited…or is it?

The Excel TEXT Function converts numbers to text in the format you specify. It's hand for joining numbers and text together in custom chart labels etc.
Extract Text from a Cell using MID Formulas

Extract Text from a Cell using MID Formulas

Excel Test if a Range Contains Text, Numbers or is Empty

Excel Test if a Range Contains Text, Numbers or is Empty

Excel CLEAN Formula

Excel CLEAN Formula

The Excel CLEAN Function can help you to remove unwanted characters that are often imported when you copy data from web pages, but it has some limitations
Excel SUBSTITUTE Formula

Excel SUBSTITUTE Formula

The Excel SUBSTITUTE function replaces new text for old in a text string. It's an alternative to using Find and Replace by retaining the original data.
Excel Factor Entry 3 Re-format Data Using Formulas

Excel Factor Entry 3 Re-format Data Using Formulas

Use Excel's Text functions to re-format data imported from external sources
Excel SUBSTITUTE Function Trick

Excel SUBSTITUTE Function Trick

Excel TRIM Function Removes Spaces From Text

Excel TRIM Function Removes Spaces From Text

Excel TRIM function removes spaces from the start and end of text, while leaving spaces between words untouched.
Excel UPPER LOWER and PROPER Functions

Excel UPPER LOWER and PROPER Functions

Microsoft Excel’s T Function

Microsoft Excel’s T Function

The Excel T function checks whether a value is text, and returns the text if it is, or returns double quotes (empty text) if it isn’t.

More Excel Formulas Posts

List Filenames in a Folder

List File Names in a Folder in Excel

Two easy ways to list file names in a folder in Excel.
Excel REGEX Functions

Excel REGEX Functions

New Excel REGEX functions make light work of manipulating text and are far easier than the old MID/LEFT/RIGHT/FIND etc. functions.
Modern Excel Functions

Modern Excel Functions

10 must know modern Excel functions that simplify common tasks and make you the go-to expert in your office.
Excel GROUPBY and PIVOTBY Functions

Excel GROUPBY and PIVOTBY Functions

Excel GROUPBY and PIVOTBY functions enable you to pivot and summarize your data without the need for PivotTables.
LABS.GENERATIVEAI Function

Excel LABS.GENERATIVEAI Function

The Future is Here: Excel's LABS.GENERATIVEAI function brings ChatGPT inside a formula.
Excel SUMPRODUCT Function

Excel SUMPRODUCT Function

The Excel SUMPRODUCT function is one of Excel's most versatile and underutilized functions allowing for flexible aggregations of data.
Summarize Months to Quarters

Excel Formulas to Summarise Monthly Data into Quarters

3 ways (good, better, best) to summarize monthly data into quarters using formulas. Lots of examples and sample file to download.
Excel BYROW and BYCOL Functions

Excel BYCOL and BYROW Functions

Excel BYCOL and BYROW functions fundamentally change the way we write formulas that calculate across columns and down rows.
python in excel natively

How to Use Python in Excel Natively

How to use Python in Excel natively using libraries like Pandas, NumPy, Matplotlib, Seaborn and more for analysis and spectacular charts!
excel dynamic named ranges

Excel Dynamic Named Ranges

Excel Dynamic Named Ranges update automatically to include new data in the ranges referenced in your formulas and PivotTables etc.


Category: Excel FormulasTag: text formulas
Previous Post:Create a Pivot Table Direct From AccessCreate a Pivot Table Direct From Access
Next Post:Excel Wildcards in your SUMIF, COUNTIF and VLOOKUPExcel Wildcards in your SUMIF, COUNTIF and VLOOKUP

Reader Interactions

Comments

  1. Carolyn Warden, PMP

    March 1, 2016 at 3:58 am

    great solution to correct existing spreadsheets where someone but multiple data elements in a single cell, without a lot of manual labor!

    Reply
  2. david Ostreicher

    July 29, 2015 at 4:49 am

    Alright. I’m going to try to explain my question in words as best as I could…

    Is there a way… to use the search and isnumber functions together with a vlookup or sumif or similar function? I have a table (I’ll call it “tracking”) with months across the top (Jan15, Feb15 etc.) and Vendors listed down the side, which I need to populate with either a YES or NO depending on whether we received payment on them for the given month. I have the data spreadsheet set up so that if a vendor pays one check for months Jan-Mar you could type into the Month Paid column, “jan14,feb14,mar14” to show that they paid those months. This could then be searched using the column headers on my tracking table and together with the isnumber function, it’ll yield a “YES” if there’s a number or “NO” if not. My issue is that as vendors send in checks, they’re recording in the next available row on the spreadsheet. How can I use this search function to search the Month Paid column only if the vendors match? Also, I would need it to search through the entire column for all occurrences of that vendor to see if in any of those rows, searching the Month Paid column would result in a value for our respective month column.

    I apologize if this is really confusing.

    Thanks,
    David

    Reply
    • Catalin Bombea

      July 29, 2015 at 3:30 pm

      HI David,
      Please upload a sample file with your data structure, to see how data is organized. You can use our Help Desk, it will be easier to understand the problem. Any detail you can give is important, so be generous with details 🙂
      Cheers,
      Catalin

      Reply
  3. Alf

    January 9, 2015 at 9:23 pm

    I have a list of 7000+ words and want to search it with variables such as, find all words where the third character is “u”, or where the third character is “u” and the fifth character is “d”, for example. Not sure how to do this? Many thanks.

    Reply
    • Catalin Bombea

      January 9, 2015 at 11:35 pm

      Hi Alf,
      Use a filter to find those values. Assuming that your list starts from A1, and it has a header cell, select A1, from ribbon choose Data and press the Filter button; in cell A1, you should have a dropdown button, a column filter; from that menu, choose Text Filters–> Begins With, and type this : ??u to see only the words that have a “u” as the third char, or type ??u?d to filter only the words that have third char u and fifth char “d”. The question mark represents a single unknown character.
      Cheers,
      Catalin

      Reply
      • Alf

        January 10, 2015 at 12:01 am

        Great; thanks!

        Reply
        • Catalin Bombea

          January 10, 2015 at 12:25 am

          You’re wellcome 🙂

          Reply
  4. Kevin

    May 13, 2014 at 5:02 pm

    My excel file name is not “generation_mart.xls” I want insert file name in work sheet but only the part generation. can you help

    Reply
    • Catalin Bombea

      May 13, 2014 at 9:08 pm

      Hi Kevin,
      The following formula:

      =LEFT(MID(CELL("filename",F9),FIND("[",CELL("filename",F9))+1,LEN(CELL("filename",F9))-FIND("[",CELL("filename",F9))),FIND(".xl",MID(CELL("filename",F9),FIND("[",CELL("filename",F9))+1,LEN(CELL("filename",F9))-FIND("[",CELL("filename",F9))))-1)

      will return the entire name of the workbook. If you want to return a partial name, replace:

      FIND(".xl" with FIND("_" 

      This will return the all characters until

      "_" 

      is found.
      Catalin

      Reply
      • KEVIN PHILLIPS

        May 14, 2014 at 3:12 pm

        I’m get error, it highlight the (“[“

        Reply
        • Catalin Bombea

          May 14, 2014 at 3:28 pm

          Try retyping the double quotes from keyboard, it might be a problem when copying formula from web page. (the web page replaced the quotes with other characters)
          Catalin

          Reply
  5. Kevin

    May 13, 2014 at 4:46 pm

    I have a list of twenty words in one column and want search for that list in another column and where every one of twenty words is found, the word itself should be place beside the cell of the other column.

    Reply
    • Catalin Bombea

      May 13, 2014 at 9:12 pm

      Hi Kevin,
      This is usually done with VBA programming, it’s too complicated to do it with built in functions.
      Upload a sample workbook on Help Desk, maybe we can find a solution for you.
      Catalin

      Reply
  6. joseph

    January 8, 2014 at 9:56 am

    This is lovely it has realy helped me alot. pls i have a data that have Date, Time and Values in A1,B1 and C1 respectivelly. The Date is down to A20 with the Time and Values as well.I used (=max(C2:C20) to get the maximum value, how can i search or look for the Date or Time at which the max value occur

    Reply
    • Catalin Bombea

      January 9, 2014 at 3:11 am

      Hi Joseph,
      You can find the row number of the max value with:
      =MATCH(MAX(C1:C20),C1:C20,0)
      This result can be used in the second argument of the INDEX function, to return the corresponding values from column A or B

      Reply
  7. Narayana W.

    August 2, 2013 at 6:31 am

    The first sentence of your article solved my problem. Thanks!

    Reply
    • Mynda Treacy

      August 2, 2013 at 9:59 am

      Wow, that was easy! Thanks, Narayana 🙂

      Reply
  8. Mahyar

    November 20, 2012 at 3:29 am

    Hi Ms Mynda
    I’ve one question :
    I want find a “◘” in the cell and anywhere that find “◘”, All cells get sum and show the result in a cell

    Reply
    • Mynda Treacy

      November 20, 2012 at 6:58 pm

      Hi Mahyar,

      You need to use the CHAR function to translate the symbol into a character code that Excel can recognise. Your formula might be:

      =SUMIF(range containing symbol, CHAR(166), range containing values you want summed)

      You can find out what the character code is by finding it in the Insert Symbol dialog box. At the bottom of the dialog box is the Character Code. You need the ASCII version.

      Kind regards,

      Mynda.

      Reply
      • Mahyar

        November 21, 2012 at 3:32 am

        Hi Ms Mynda.
        Thanks for your guidance. I thought and found it solution.
        My answer was:
        =SUMIF(F7:F15;”◘”;D7:D15)
        I’ll test your formula, I think,I need .
        Good Luck

        Reply
  9. Minku Bhatia

    October 4, 2012 at 4:29 pm

    Hi Mynda,

    Can you spread some light on the below issue.

    In A1 i have mink12? and the formula in B1 is

    =SUMPRODUCT(SEARCH(MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1),"0123456789abcdefghijklmnopqrstuvwxyz!@#$%^&*()_{}][ "))

    Result is 72 instead of error because question Mark(?) is not there in the search list i mentioned in the formula.

    Similar issue is with ~ as well.

    Thanks
    Minku

    Reply
    • Mynda Treacy

      October 4, 2012 at 7:36 pm

      Hi Minku,

      The asterisk, question mark and tilde are wildcards in Excel and will be affecting your formula. You can read more on wildcards here.

      Kind regards,

      Mynda.

      Reply
      • Minku Bhatia

        October 5, 2012 at 4:03 pm

        Hi Mynda,

        I gone through the link you provided and tried but it is not working.
        Can you suggest idea to perform this task.

        Thanks
        Minku

        Reply
        • Mynda Treacy

          October 5, 2012 at 5:32 pm

          Hi Minku,

          I get 93 not 72. It counts the ? as a 1 even without it in the character list.

          If you use the Evaluate Formula tool on the Formulas tab of the ribbon you can step through the formula as it evaluates to see what it’s doing.

          If 93 isn’t what you want can you please let me know what outcome you’re expecting and why.

          Thanks,

          Mynda.

          Reply
          • Minku Bhatia

            October 5, 2012 at 10:10 pm

            Hi Mynda,

            I still get outcome 72 instead 93.

            Items mentioned in the formula are the permitted characters. Formula is to check whether string in the cell contain any characters which is not mentioned in the list.

            min?123

            So as per the formula question mark is not in the list hence it should give ERROR like #Value else if all the characters from the string are there in the list then the outcome of the formula should be numeric value.

            Let say if question mark is not there in the list, then according to the below formula outcome should error.

            =SUMPRODUCT(SEARCH(MID(A2,ROW(INDIRECT(“1:”&LEN(A2))),1),”0123456789abcdefghijklmnopqrstuvwxyz?!@#$%^&*()_{}][ “))

            Regards
            Minku

          • Mynda Treacy

            October 7, 2012 at 8:24 am

            Hi Minku,

            I understand now. There seems to be a problem with SEARCH evaluating the ? to position 1 in the text string.

            This formula evaluates correctly:

            =SUMPRODUCT(FIND(MID(A2,ROW(1:100),1),"0123456789abcdefghijklmnopqrstuvwxyz!@#$%^&*()_{}][ "))

            Note: FIND is case sensitive so you will need to add capitals to your text string if your data contains capitals too.

            Thanks to Roberto for helping me with this solution.

            Kind regards,

            Mynda.

  10. Minku Bhatia

    September 24, 2012 at 10:54 pm

    Hello

    I am facing a problem in writing formula.

    Objective is to search whether item or items in the list present in the string or not.

    List contains name of continents, lets say F1 to F7.

    String in A1 Indiaasia
    A2 canadanorth America
    A3 AfricaIndiaEurope

    Is there any way i can right formula for the same.

    Thanks

    Reply
    • Mynda Treacy

      September 24, 2012 at 11:10 pm

      Hi Minku,

      You can wrap the SEARCH function in ISNUMBER to return a TRUE or FALSE outcome. Like this:

      =ISNUMBER(SEARCH("asia",$A$1:$A$3))

      =TRUE

      Kind regards,

      Mynda.

      Reply
      • Minku

        October 1, 2012 at 7:41 pm

        Hi Mynda,
        Thanks for the quick reply, but i am still facing problem with formula. Search formula giving me one to one search.

        For example in my spread sheet F1 to F7 continent names & in the following order.

        Asia, Africa, North America, South America, Europe, Antartica and Australia.

        In cell C1 to C3 i have Indiaasia, KenyaAsia, canada Europe.

        When i enter formula in E1 as {Search($F$1:$F$7,C1)} it gives me Asia but when i enter same formula in C2 it gives error.

        Reply
        • Mynda Treacy

          October 2, 2012 at 6:20 pm

          Hi Minku,

          I see the whole picture now….I think 🙂

          If you want to check if the values in column F are present in column C you can use this formula:

          =ISNUMBER(MATCH("*"&F1&"*",$C$1:$C$4,0))

          It will give you a TRUE or FALSE outcome. i.e. it will give you a TRUE for Asia and Europe and FALSE for the others.

          Kind regards,

          Mynda.

          Reply
      • Vernon

        November 24, 2012 at 2:42 am

        I’m faced with the same issue. When working with queries from AD I have a column (ADSPath) which is a long text string.
        Example: CN=SMITHJ,OU=AD,OU=Finance,OU=Active,DC=local

        I would like a formula to look for a specific word in the string from a list of departments. In the example above, a successful formula would display Finance.
        Find and Search functions work well to find the position in a string [ =search(“Finance”,B2) ] and by adding an if statement I can return the actual word [ =if(search(“Finance”,B2),“Finance”,””) ]however not from a list of departments. the formula will only find the one word and display #VALUE! for everything else. Example of the departments: Finance, Construction, Safety, etc…

        It seems simple; the string would only ever contain a single department name but could be in a different location within the text string.

        Reply
        • Mynda Treacy

          November 27, 2012 at 10:03 pm

          Hi Vernon,

          You can use this formula:

          =INDEX(E1:E3,MAX(IF(ISERROR(FIND(E1:E3,A1)),-1,1)*(ROW(E1:E3)-ROW(E1)+1)))

          Entered as an array formula with CTRL+SHIFT+ENTER

          And where E1:E3 contains the list of departments you want to find and A1 contains your text string.

          Note: FIND is case sensitive. If you don’t want it case sensitive replace FIND with SEARCH.

          Kind regards,

          Mynda.

          Reply
          • jimmy

            May 17, 2013 at 4:26 am

            Hi, there. You posted this formula:

            =INDEX(E1:E3,MAX(IF(ISERROR(FIND(E1:E3,A1)),-1,1)*(ROW(E1:E3)-ROW(E1)+1)))

            How could I change it to fit a list of 10 items, rather than just 3? I get an error if I try to expand the E range to ten rows, rather than 3. Thanks!

          • Mynda Treacy

            May 17, 2013 at 10:14 am

            Hi Jimmy,

            You need to make the references to the E range absolute then when entering the formula make sure you enter it as an array formula with CTRL+SHIFT+ENTER.

            If you’re still stuck please send me the file.

            Kind regards,

            Mynda.

          • Jimmy

            November 28, 2013 at 4:56 am

            What if you are trying to match a street address string between two tables.
            The entries don’t match identically being that we are dealing with S. in one cell and South in the other.

            I placed both tables in sheet to make it easy
            So…
            I want to match the street addresses in column E with the street addresses in column J and if they match return the info in column P
            I figured how to return the first set of characters before a space with
            =mid(E5,1,SEARCH(” “,E5)

          • Catalin Bombea

            November 28, 2013 at 5:47 am

            Hi Jimmy,
            If you don’t mind, i will try to respond to your problem:
            If you want to search after a partial match, which seems to be your case, you should use a simple INDEX+MATCH formula. MATCH function accepts wildcards, so matching a partial string is possible.
            Assuming that you have addresses in column J (sheet 1) and you want to return values from column P same sheet, i would use the formula:
            =INDEX(Sheet1!P2:P15,MATCH(SUBSTITUTE(Sheet2!E2,”.”,””)&”*”,Sheet1!J2:J15,0))
            In this test, i searched the string “New Castle S.” in sheet 1 column J. (Sheet 1 column J has a sample address like: “New Castle South”)
            Note: I have replaced the “.” from the end of column E address. This way, we will search after “New Castle S”&”*” (followed by anything)
            If it’s still not clear, please prepare a sample workbook and open a new ticket via Help Desk: https://www.myonlinetraininghub.com/helpdesk/ , and i will gladly assist you to solve this problem.
            Cheers,
            Catalin

  11. Carolyn U.

    August 29, 2012 at 4:25 pm

    I’m looking for a way to see a LIST of all lines that have a word or words I’m searching for. Using Office 2011 for the Mac. Is this feasible?

    Reply
    • Mynda Treacy

      August 29, 2012 at 6:55 pm

      Hi Carolyn,

      I’m not sure what you mean by a ‘list’. e.g. do you want a list of row numbers that contain the words you’re looking for, or do you just want to extract the data that contains your words?

      Either way you could use an IF Function with SEARCH to check if a line has the word/words you are looking for and then return either the text from that cell or the row number.

      Alternatively you could use the Advanced Filter (assuming you have that in Office for Mac) to extract the lines that meet your criteria.

      To do this your data must have column headers.

      1. Select the cells containing your data including the column header.
      2. Data tab of the Ribbon > Sort & Filter group > Advanced Filter. The following dialog box will open:

      Advanced Filter Dialog Box

      3. The list range is the column you want to extract your list from.

      4. In the criteria range you need to reference some cells that contain your criteria. e.g. let’s say the column you want to check is called ‘Addresses’, and the words you want to find are ‘Street’ and ‘Road’. In some cells away from your table but on the same sheet you would enter your criteria as follows:

      Cell N1: Addresses
      Cell N2: *street*
      Cell N3: *road*

      The * are wildcards which means Excel will find everything that contains street or road. e.g. ‘High Street’ would be found as would ‘Smithstreet’, as would ‘Jones Street West’.

      5. In the Copy to: field select the starting cell for your extracted list.
      6. If you only want unique records check the box

      I hope that helps. Let me know if it’s not what you’re after.

      Kind regards,

      Mynda.

      Reply
  12. Debra Young

    June 19, 2012 at 11:09 pm

    good

    Reply
    • Mynda Treacy

      June 20, 2012 at 8:29 am

      🙂 Thanks, Debra.

      Reply
  13. Mr David Wilkinson

    April 2, 2012 at 12:34 am

    I came across this website once or twice this week searching for hints to a couple of real world problems I have been working on.

    I noticed the first time I visited, the content was unusually non-trivial. I saw something today, which triggered an elegant solution, to a problem I have been thinking about attempting for a couple of weeks now. If it is of interest, I would be happy to send it to you..

    Exceptional stuff.

    I will look at this website more often now.

    David Wilkinson.
    Sunderland. UK.

    Reply
    • Mynda Treacy

      April 3, 2012 at 3:12 am

      🙂 Thanks, David.

      I’d love to see your ‘elegant solution’ you mention. You can email it to me via the Contact Us page.

      Kind regards,

      Mynda.

      Reply

Trackbacks

  1. Find the Last Occurrence of a String In Another String • My Online Training Hub says:
    July 24, 2019 at 6:19 pm

    […] we want to find whether or not a character or string occurs within another string we can use FIND or SEARCH. But these functions only tell us if a string (or character) exist in another string, they don't […]

    Reply
  2. Excel Formulas • My Online Training Hub says:
    November 14, 2014 at 4:47 pm

    […] SEARCH and FIND Functions […]

    Reply
  3. Check a Cell in Excel for the Presence of a Word From a List says:
    September 15, 2014 at 10:02 am

    […] you aren’t worried about case sensitive matches then you can use the SEARCH function with INDEX, SUMPRODUCT and ISNUMBER like […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Current ye@r *

Leave this field empty

Sidebar

More results...

Popular Content

  • 10 Common Excel Mistakes to Avoid
  • Top Excel Functions for Data Analysts
  • Secrets to Building Excel Dashboards in Less Than 15 Minutes
  • Pro Excel Formula Writing Tips
  • Hidden Excel Double-Click Shortcuts
  • Top 10 Intermediate Excel Functions
  • 5 Pro Excel Dashboard Design Tips
  • 5 Excel SUM Function Tricks
  • 239 Excel Keyboard Shortcuts

100 Excel Tips and Tricks eBook

Download Free Tips & Tricks

239 Excel Keyboard Shortcuts

Download Free PDF

mynda treacy microsoft mvpHi, I'm Mynda Treacy and I run MOTH with my husband, Phil. Through our blog, webinars, YouTube channel and courses we hope we can help you learn Excel, Power Pivot and DAX, Power Query, Power BI, and Excel Dashboards.

Blog Categories

  • AI in Excel
  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
  • Word
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk – For Technical Issues

Copyright © 2024 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.

0