#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jcastellano
 
Posts: n/a
Default SEARCH function


Can someone explain how the search function works? I have been trying
it and I have been getting value errors?

John


--
jcastellano
------------------------------------------------------------------------
jcastellano's Profile: http://www.excelforum.com/member.php...o&userid=30986
View this thread: http://www.excelforum.com/showthread...hreadid=522137

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default SEARCH function


The SEARCH function looks up a value or text within a string and returns
the starting point of that value. So if in A1 you had the text "How are
you?" and you used

=SEARCH("are",A1,1)

it would return the number 5 as that is the starting point of the word
"are" within the text string starting with the first character which is
defined by the "1" in the formula.

If the value is not located in the string, it returns the #VALUE!
error. To avoid seeing this error you could use something like,

=IF(ISNUMBER(SEARCH("are",A1,1)),"Found","")

This would return the text "Found" if the word is found and a blank if
not.

SEARCH is not case sensitive. If you need your search to be case
sensitive, use the FIND function. Maybe post what you need to
accomplish and how you are trying to use the function so someone might
be able to assist.


HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=522137

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jcastellano
 
Posts: n/a
Default SEARCH function


Can you use SEARCH for numbers, or is it just for text only?


--
jcastellano
------------------------------------------------------------------------
jcastellano's Profile: http://www.excelforum.com/member.php...o&userid=30986
View this thread: http://www.excelforum.com/showthread...hreadid=522137

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default SEARCH function


Yes. You can use it for numbers as well.

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=522137

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Deb
 
Posts: n/a
Default SEARCH function

I am also having an issue with the search function...when I search on an item
that is present, it does not find it...comes back with "no documents found
that match your query"

Any ideas on how I can fix this?

"jcastellano" wrote:


Can someone explain how the search function works? I have been trying
it and I have been getting value errors?

John


--
jcastellano
------------------------------------------------------------------------
jcastellano's Profile: http://www.excelforum.com/member.php...o&userid=30986
View this thread: http://www.excelforum.com/showthread...hreadid=522137




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default SEARCH function

This sounds like the Windows Search, rather than SEARCH( ) in Excel.

Pete

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
VBA Monty Excel Worksheet Functions 2 January 30th 06 01:37 PM
VLookup function to search an entire workbook liseladele Excel Worksheet Functions 0 November 10th 05 12:35 AM
Search function nc Excel Discussion (Misc queries) 7 May 13th 05 03:08 PM
Search function using commas Kylie Excel Worksheet Functions 1 February 2nd 05 02:46 AM


All times are GMT +1. The time now is 06:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"