Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default searching function

I would like to use Serching function for an excel file that would operate as
a dictionary. So I wrote words and expressions to column "A" and the same in
a foreign language to column "B" (in worksheet #1).
I made an empty cell in an other worksheet (worksheet #2) where I would give
the word that I search. I made the following settings: "Function searching":
Searching value: A2
Table: Worksheet #2!A:B
Number of column: 2

The searching results are mixed and do not give correct value.
What can be the problem?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default searching function

You probably need to specify an exact match.

=vlookup(A2,#2!A:B,2,False)

--
Regards,
Tom Ogilvy


"sheva" wrote in message
...
I would like to use Serching function for an excel file that would operate

as
a dictionary. So I wrote words and expressions to column "A" and the same

in
a foreign language to column "B" (in worksheet #1).
I made an empty cell in an other worksheet (worksheet #2) where I would

give
the word that I search. I made the following settings: "Function

searching":
Searching value: A2
Table: Worksheet #2!A:B
Number of column: 2

The searching results are mixed and do not give correct value.
What can be the problem?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default searching function

Yes, it's working correctly in this way, but i would like to search for not
exact match too.
Is it possible?

"Tom Ogilvy" wrote:

You probably need to specify an exact match.

=vlookup(A2,#2!A:B,2,False)

--
Regards,
Tom Ogilvy


"sheva" wrote in message
...
I would like to use Serching function for an excel file that would operate

as
a dictionary. So I wrote words and expressions to column "A" and the same

in
a foreign language to column "B" (in worksheet #1).
I made an empty cell in an other worksheet (worksheet #2) where I would

give
the word that I search. I made the following settings: "Function

searching":
Searching value: A2
Table: Worksheet #2!A:B
Number of column: 2

The searching results are mixed and do not give correct value.
What can be the problem?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default searching function

Yes, if your willing to get the wrong answer.

I guess it depends on what what you mean by not an exact match.

If you are looking for a word that contains the word dog you can do

=vlookup("*dog*",A1:B100,2,False)

for a word that begins with Dog

=vlookup("dog*",A1:B100,2,False)

Ot use a cell value
=vlookup("*" & a2 & "*",A1:B100,2,False)

--
Regards,
Tom Ogilvy



"sheva" wrote in message
...
Yes, it's working correctly in this way, but i would like to search for

not
exact match too.
Is it possible?

"Tom Ogilvy" wrote:

You probably need to specify an exact match.

=vlookup(A2,#2!A:B,2,False)

--
Regards,
Tom Ogilvy


"sheva" wrote in message
...
I would like to use Serching function for an excel file that would

operate
as
a dictionary. So I wrote words and expressions to column "A" and the

same
in
a foreign language to column "B" (in worksheet #1).
I made an empty cell in an other worksheet (worksheet #2) where I

would
give
the word that I search. I made the following settings: "Function

searching":
Searching value: A2
Table: Worksheet #2!A:B
Number of column: 2

The searching results are mixed and do not give correct value.
What can be the problem?






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default searching function

Yeah, exactly. That was the form, i wanted to: =vlookup("*" & a2 &
"*",A1:B100,2,False)
Thank you for your help!


"Tom Ogilvy" wrote:

Yes, if your willing to get the wrong answer.

I guess it depends on what what you mean by not an exact match.

If you are looking for a word that contains the word dog you can do

=vlookup("*dog*",A1:B100,2,False)

for a word that begins with Dog

=vlookup("dog*",A1:B100,2,False)

Ot use a cell value
=vlookup("*" & a2 & "*",A1:B100,2,False)

--
Regards,
Tom Ogilvy



"sheva" wrote in message
...
Yes, it's working correctly in this way, but i would like to search for

not
exact match too.
Is it possible?

"Tom Ogilvy" wrote:

You probably need to specify an exact match.

=vlookup(A2,#2!A:B,2,False)

--
Regards,
Tom Ogilvy


"sheva" wrote in message
...
I would like to use Serching function for an excel file that would

operate
as
a dictionary. So I wrote words and expressions to column "A" and the

same
in
a foreign language to column "B" (in worksheet #1).
I made an empty cell in an other worksheet (worksheet #2) where I

would
give
the word that I search. I made the following settings: "Function
searching":
Searching value: A2
Table: Worksheet #2!A:B
Number of column: 2

The searching results are mixed and do not give correct value.
What can be the problem?








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default searching function


You didn't specify, but it seems like you're using VLookUp, are you?
VLookUp should have the last optional argument -'range_lookup'- set to
0 to do an exact match.


--
robertdeniro
------------------------------------------------------------------------
robertdeniro's Profile: http://www.excelforum.com/member.php...o&userid=14173
View this thread: http://www.excelforum.com/showthread...hreadid=396097

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default searching function

Yes, i use VlookUp, but my version is not English so i couldn't translate it
correctly.
It is operating well if i choose false or 0 to get exact match, but i would
like to search for not only exact matches.
Is it possible too?

"robertdeniro" wrote:


You didn't specify, but it seems like you're using VLookUp, are you?
VLookUp should have the last optional argument -'range_lookup'- set to
0 to do an exact match.


--
robertdeniro
------------------------------------------------------------------------
robertdeniro's Profile: http://www.excelforum.com/member.php...o&userid=14173
View this thread: http://www.excelforum.com/showthread...hreadid=396097


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
Cell searching and delete function Dan C.[_2_] Excel Discussion (Misc queries) 3 July 15th 09 07:21 PM
Text Searching in a Function malvis Excel Discussion (Misc queries) 3 June 23rd 09 02:23 PM
searching for a function Noha Excel Worksheet Functions 7 January 8th 09 02:45 PM
Searching specific record using VLOOKUP function. dev Excel Worksheet Functions 12 July 4th 08 11:51 PM
searching for function Adam Excel Discussion (Misc queries) 3 October 2nd 07 09:01 PM


All times are GMT +1. The time now is 01:49 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"