#1   Report Post  
Posted to microsoft.public.excel.misc
nc nc is offline
external usenet poster
 
Posts: 119
Default SEARCH Function

G2= 040203 De La Conjo MF 3000 Basic Pay

=SEARCH({0,1,2,3,4,5,6,7,8,9},G2,6)

When I use the above formula to search the the following numbers and it
returns a value.


Why I get an error when I change the formula to,

=SEARCH({1000,3000},G2,6)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default SEARCH Function

=SEARCH({0,1,2,3,4,5,6,7,8,9},G2,6)
returns the position of 1st zero found in the string starting from the 6 th
character

=SEARCH({1000,3000},G2,6)
returns an error because 1000 is not to be found in the string

=SEARCH({3000,1000},G2,6)
will return the position of 3000 in the string

If this post helps click Yes
---------------
Jacob Skaria


"nc" wrote:

G2= 040203 De La Conjo MF 3000 Basic Pay

=SEARCH({0,1,2,3,4,5,6,7,8,9},G2,6)

When I use the above formula to search the the following numbers and it
returns a value.


Why I get an error when I change the formula to,

=SEARCH({1000,3000},G2,6)

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default SEARCH Function

SEARCH({0,1,2,3,4,5,6,7,8,9},G2,6) works by coincidence because there is a
"0" in the string starting in the 6th position.

SEARCH({1000,3000},G2,6) fails because "1000" does not appear in the string
starting in the 6th position.

But these are the wrong form to use for your purposes anyway. You have
taken your question out of its original context. See your thread "Text
function" for solutions to your search problem.


----- original message -----

"nc" wrote in message
...
G2= 040203 De La Conjo MF 3000 Basic Pay

=SEARCH({0,1,2,3,4,5,6,7,8,9},G2,6)

When I use the above formula to search the the following numbers and it
returns a value.


Why I get an error when I change the formula to,

=SEARCH({1000,3000},G2,6)


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
Search Function??? Bill Excel Discussion (Misc queries) 2 March 7th 09 09:51 PM
Search Function Dinesh Excel Worksheet Functions 7 January 15th 09 05:54 AM
search function crodriguez1976 New Users to Excel 3 August 17th 06 01:39 PM
Search function Haim Excel Discussion (Misc queries) 1 July 21st 06 08:30 PM
VBA Search function tamato43 Excel Discussion (Misc queries) 0 March 29th 05 08:09 PM


All times are GMT +1. The time now is 07:52 AM.

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

About Us

"It's about Microsoft Excel"