Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ab
 
Posts: n/a
Default weird problem with LOOKUP function

Hi,

This is my spreadsheet. Column C has the LOOKUP formula.

A B C
53 a a LOOKUP(A2,$A$2:$A$14,$B$2:$B$14)
447 b b LOOKUP(A3,$A$2:$A$14,$B$2:$B$14)
1 020 c c |
1 906 d n |
2 007 e n |
1 876 f n |
1 707 g g |
1 549 h c |
1 411 i c |
1 292 j c |
1 190 k c |
1 102 m c |
1 026 n c |

The values in column C are supposed to be just the same as column B, but
they are not. There is something hidden going on here which i cannot
understand. I would appreciate any help.

Thanks.
  #2   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

Read Help for LOOKUP. The LOOKUP function assumes that column A is
sorted in ascending order, which is not true in your case. If you use
VLOOKUP, there is an optional final argument that can be used to request
exact matches with unsorted data.

Jerry

ab wrote:

Hi,

This is my spreadsheet. Column C has the LOOKUP formula.

A B C
53 a a LOOKUP(A2,$A$2:$A$14,$B$2:$B$14)
447 b b LOOKUP(A3,$A$2:$A$14,$B$2:$B$14)
1 020 c c |
1 906 d n |
2 007 e n |
1 876 f n |
1 707 g g |
1 549 h c |
1 411 i c |
1 292 j c |
1 190 k c |
1 102 m c |
1 026 n c |

The values in column C are supposed to be just the same as column B, but
they are not. There is something hidden going on here which i cannot
understand. I would appreciate any help.

Thanks.


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
weird problem with LOOKUP function ab Excel Discussion (Misc queries) 1 October 6th 05 05:27 PM
VBA Custom function for lookup Sami82 Excel Worksheet Functions 9 September 12th 05 03:20 PM
Odd problem with LOOKUP no-sweat Excel Discussion (Misc queries) 2 September 1st 05 06:46 PM
Lookup function help marlea Excel Worksheet Functions 4 August 30th 05 08:11 PM
Lookup Function help marlea Excel Discussion (Misc queries) 2 August 23rd 05 07:30 PM


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