Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel 2007 LOOKUP Problem?

I have been using the LOOKUP function for a long time. It worked with very
little problems in Excel 2003. I am having a problem in Excel 2007. For
some reason it will not give me an exact match. It will only return a value
that is approximate. I have tried using VLOOKUP and INDEX with MATCH. Both
gave me N/A errors. Does anyone have any suggestions on how to get an exact
match using LOOKUP in Excel 2007? Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Excel 2007 LOOKUP Problem?

exact match
VLOOKUP and INDEX with MATCH. Both
gave me N/A errors.


Did you specify in the formulas that you wanted an exact match?

=VLOOKUP(A1,D1:E10,2,0)
=INDEX(E1:E10,MATCH(A1,D1:D10,0))

The 0 in each formula means you want an exact match.

With LOOKUP, you can't specify that you want an exact match. If an exact
match isn't found it returns an approx match by default. Also, using LOOKUP,
the lookup_vector *must* be sorted in ascending order.


--
Biff
Microsoft Excel MVP


"robertbjr" wrote in message
...
I have been using the LOOKUP function for a long time. It worked with very
little problems in Excel 2003. I am having a problem in Excel 2007. For
some reason it will not give me an exact match. It will only return a
value
that is approximate. I have tried using VLOOKUP and INDEX with MATCH.
Both
gave me N/A errors. Does anyone have any suggestions on how to get an
exact
match using LOOKUP in Excel 2007? Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default Excel 2007 LOOKUP Problem?

LOOKUP does not look for an exact match. VLOOKUP, HLOOKUP and MATCH will
look for an exact match. These functions have to my knowledge always worked
this way. In other words, this is not unique to Excel 2007. The functions
work as they did in previous versions.

Tyro

"robertbjr" wrote in message
...
I have been using the LOOKUP function for a long time. It worked with very
little problems in Excel 2003. I am having a problem in Excel 2007. For
some reason it will not give me an exact match. It will only return a
value
that is approximate. I have tried using VLOOKUP and INDEX with MATCH.
Both
gave me N/A errors. Does anyone have any suggestions on how to get an
exact
match using LOOKUP in Excel 2007? Thank you.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Excel 2007 LOOKUP Problem?

Clarification:

The 0 in each formula means you want an exact match.


The 0 in each formula means *the data is not sorted* therefore your
intention is to find an exact match.


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
exact match
VLOOKUP and INDEX with MATCH. Both
gave me N/A errors.


Did you specify in the formulas that you wanted an exact match?

=VLOOKUP(A1,D1:E10,2,0)
=INDEX(E1:E10,MATCH(A1,D1:D10,0))

The 0 in each formula means you want an exact match.

With LOOKUP, you can't specify that you want an exact match. If an exact
match isn't found it returns an approx match by default. Also, using
LOOKUP, the lookup_vector *must* be sorted in ascending order.


--
Biff
Microsoft Excel MVP


"robertbjr" wrote in message
...
I have been using the LOOKUP function for a long time. It worked with
very
little problems in Excel 2003. I am having a problem in Excel 2007. For
some reason it will not give me an exact match. It will only return a
value
that is approximate. I have tried using VLOOKUP and INDEX with MATCH.
Both
gave me N/A errors. Does anyone have any suggestions on how to get an
exact
match using LOOKUP in Excel 2007? Thank you.





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 2007 Macro Problem Robby Charts and Charting in Excel 9 March 12th 08 09:28 AM
Excel 2007 Close problem Duane Nutley Excel Discussion (Misc queries) 4 October 4th 07 12:58 AM
Problem starting Excel 2007 DaveD Excel Discussion (Misc queries) 3 August 2nd 07 04:32 AM
Excel 2007 Bug or other problem Kevin Lutz Excel Discussion (Misc queries) 0 July 17th 07 04:08 PM
Excel 2007 VBA problem teepee Excel Discussion (Misc queries) 7 March 31st 07 10:56 AM


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