#1   Report Post  
Jahunga
 
Posts: n/a
Default Find function


Hi,

I am trying to build a spreadsheet that contains a search function e.g.
If a user types text into a cell a range of data is then looked up and
any text strings that contain the typed text are returned in a table.

The issue I have is that I can only make this work by using either the
left right or mid functions. Ideally I would like the formula to be
(in laymans terms).......if the typed text is contained anywhere in a
text string please return the whole text string.

Any ideas???

To make this clearer for you all below is an example of how it
currently works,

If a user types in Basset, my formula counts the length (Len) of the
typed text (in this case 6), the first six characters from each entry
in my data page are returned (using the left function), these are then
compared to the typed text (basset) if they match they are then included
in my table.

The data I am using are addresses that have been entered incosistently
e.g. either 11 Basset or Basset 11, this is why I need to search the
whole text string as I would want the users to see all Bassets (there
could be more than 50 on each street) contained in the data list.

Ctrl F is not an option on this.

Any help would be most appreciated.


--
Jahunga
------------------------------------------------------------------------
Jahunga's Profile: http://www.excelforum.com/member.php...o&userid=15291
View this thread: http://www.excelforum.com/showthread...hreadid=319315

  #2   Report Post  
LanceB
 
Posts: n/a
Default

It sounds like you are looking at using the

Find
or
search

functions. eg find("yourtest","in this text")

Lance



"Jahunga" wrote:


Hi,

I am trying to build a spreadsheet that contains a search function e.g.
If a user types text into a cell a range of data is then looked up and
any text strings that contain the typed text are returned in a table.

The issue I have is that I can only make this work by using either the
left right or mid functions. Ideally I would like the formula to be
(in laymans terms).......if the typed text is contained anywhere in a
text string please return the whole text string.

Any ideas???

To make this clearer for you all below is an example of how it
currently works,

If a user types in Basset, my formula counts the length (Len) of the
typed text (in this case 6), the first six characters from each entry
in my data page are returned (using the left function), these are then
compared to the typed text (basset) if they match they are then included
in my table.

The data I am using are addresses that have been entered incosistently
e.g. either 11 Basset or Basset 11, this is why I need to search the
whole text string as I would want the users to see all Bassets (there
could be more than 50 on each street) contained in the data list.

Ctrl F is not an option on this.

Any help would be most appreciated.


--
Jahunga
------------------------------------------------------------------------
Jahunga's Profile: http://www.excelforum.com/member.php...o&userid=15291
View this thread: http://www.excelforum.com/showthread...hreadid=319315


  #3   Report Post  
Jahunga
 
Posts: n/a
Default


Thanks, had just found the search function and it works perfectly.


--
Jahunga
------------------------------------------------------------------------
Jahunga's Profile: http://www.excelforum.com/member.php...o&userid=15291
View this thread: http://www.excelforum.com/showthread...hreadid=319315

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
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM
Accessing a Function Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 4 January 1st 05 05:46 AM
HOW TO USE FIND OR SEARCH FUNCTION TO FILL DATA hsg Excel Worksheet Functions 2 November 18th 04 07:24 AM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM
SUMIF(AND) FUNCTION Saariko Excel Worksheet Functions 9 October 28th 04 11:52 AM


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

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"