Thread: Lookups..
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
david mcritchie david mcritchie is offline
external usenet poster
 
Posts: 691
Default Lookups..

look at the last argument of VLOOKUP.

hopefully my page explains better:
http://www.mvps.org/dmcritchie/excel/vlookup.htm

Poorly designed, because a binary search should be possible
whether an exact match is wanted or not, but it is assumed that
if you want an exact match that the table is not sorted.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"BWGames" wrote in message ...
Hi,

What I'm looking to do is, I have a cell. Call it A.

I have another list, say, B and C, which has values, e.g;

10, 100
15, 200

What I'm trying to do is:

Say, A is 5, this means that 100 should be returned, if its 12, 200, 10,100
etc etc.

My understanding of lookup is that it would search for the exact value, not
the 'band' of it.

Anyone give me any advice as to the best way to go about this please?

Thanks,

Ben


--
BWGames
to email change de.news to de-news