Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default lookup or vlookup

Hi
I have this worksheet

25 apple
15 banana
30 cucumber
5 tomato

If I use vlookup or lookup function, the data should be sorted, the
default of these functions is ascending or descending, but I do not
want to sort the data, any help?
Thanks in advance
Jam


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default lookup or vlookup

vlookup should be fine. Let's assume you wanted to return cucumber you could
do:

=vlookup(30,a1:b4,2,)

Should search for 30 in the array of a1:b4 (which is all of your data), go
to the second column and return the data in the same row as 30. It should
give you cucumber. Only specific sorts of vlookup require the data to be
sorted.

Rob

" wrote:

Hi
I have this worksheet

25 apple
15 banana
30 cucumber
5 tomato

If I use vlookup or lookup function, the data should be sorted, the
default of these functions is ascending or descending, but I do not
want to sort the data, any help?
Thanks in advance
Jam



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default lookup or vlookup

Think your
=vlookup(30,a1:b4,2,)


should read as:
=vlookup(30,a1:b4,2,0)

where an exact match is specified via the zero* as the 4th param
*or FALSE

As for your comment:
Only specific sorts of vlookup require the data to be sorted.


It should be the other way around, specific match in vlookup (as above)
doesn't require the data to be sorted
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,200 Files:354 Subscribers:53
xdemechanik
---
"exoticdisease" wrote in message
...
vlookup should be fine. Let's assume you wanted to return cucumber you
could
do:

=vlookup(30,a1:b4,2,)

Should search for 30 in the array of a1:b4 (which is all of your data), go
to the second column and return the data in the same row as 30. It should
give you cucumber. Only specific sorts of vlookup require the data to be
sorted.

Rob



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default lookup or vlookup

"exoticdisease" has a right syntax. The last comma after the third param is
automatic default to "0" or "FALSE" if the fourth param is omitted.


"Max" wrote:

Think your
=vlookup(30,a1:b4,2,)


should read as:
=vlookup(30,a1:b4,2,0)

where an exact match is specified via the zero* as the 4th param
*or FALSE

As for your comment:
Only specific sorts of vlookup require the data to be sorted.


It should be the other way around, specific match in vlookup (as above)
doesn't require the data to be sorted
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,200 Files:354 Subscribers:53
xdemechanik
---
"exoticdisease" wrote in message
...
vlookup should be fine. Let's assume you wanted to return cucumber you
could
do:

=vlookup(30,a1:b4,2,)

Should search for 30 in the array of a1:b4 (which is all of your data), go
to the second column and return the data in the same row as 30. It should
give you cucumber. Only specific sorts of vlookup require the data to be
sorted.

Rob




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default lookup or vlookup

No it defaults to 1 or TRUE if omitted

--


Regards,


Peo Sjoblom

"Teethless mama" wrote in message
...
"exoticdisease" has a right syntax. The last comma after the third param
is
automatic default to "0" or "FALSE" if the fourth param is omitted.


"Max" wrote:

Think your
=vlookup(30,a1:b4,2,)


should read as:
=vlookup(30,a1:b4,2,0)

where an exact match is specified via the zero* as the 4th param
*or FALSE

As for your comment:
Only specific sorts of vlookup require the data to be sorted.


It should be the other way around, specific match in vlookup (as above)
doesn't require the data to be sorted
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,200 Files:354 Subscribers:53
xdemechanik
---
"exoticdisease" wrote in
message
...
vlookup should be fine. Let's assume you wanted to return cucumber you
could
do:

=vlookup(30,a1:b4,2,)

Should search for 30 in the array of a1:b4 (which is all of your data),
go
to the second column and return the data in the same row as 30. It
should
give you cucumber. Only specific sorts of vlookup require the data to
be
sorted.

Rob








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default lookup or vlookup

Without the last comma in the third param then it defaults to 1 or TRUE, else
it defaults to 0 or FALSE.


"Peo Sjoblom" wrote:

No it defaults to 1 or TRUE if omitted

--


Regards,


Peo Sjoblom

"Teethless mama" wrote in message
...
"exoticdisease" has a right syntax. The last comma after the third param
is
automatic default to "0" or "FALSE" if the fourth param is omitted.


"Max" wrote:

Think your
=vlookup(30,a1:b4,2,)

should read as:
=vlookup(30,a1:b4,2,0)
where an exact match is specified via the zero* as the 4th param
*or FALSE

As for your comment:
Only specific sorts of vlookup require the data to be sorted.

It should be the other way around, specific match in vlookup (as above)
doesn't require the data to be sorted
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,200 Files:354 Subscribers:53
xdemechanik
---
"exoticdisease" wrote in
message
...
vlookup should be fine. Let's assume you wanted to return cucumber you
could
do:

=vlookup(30,a1:b4,2,)

Should search for 30 in the array of a1:b4 (which is all of your data),
go
to the second column and return the data in the same row as 30. It
should
give you cucumber. Only specific sorts of vlookup require the data to
be
sorted.

Rob






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
Help with lookup (vlookup) davidio Excel Worksheet Functions 1 July 27th 07 08:42 PM
Help with Lookup(), VLookup phil Excel Worksheet Functions 6 February 8th 07 01:06 AM
LOOKUP or VLOOKUP MichelleS Excel Worksheet Functions 9 October 20th 06 02:11 PM
Lookup without VLOOKUP? J New Users to Excel 6 November 17th 05 06:57 AM
LOOKUP or VLOOKUP Bennie Excel Worksheet Functions 4 March 24th 05 07:45 PM


All times are GMT +1. The time now is 02:37 AM.

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"