View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John Bundy John Bundy is offline
external usenet poster
 
Posts: 772
Default Simple lookup problem...

Assuming that the answer is not 0 I don't know your code worked for me, try
looking into an index/match and see if you get the same result
=INDEX(A3:A1000,MATCH(V3,S3:S1000))
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Haxer" wrote:

I am trying to do a simple lookup command. Or at least I thought it was
simple. I don't know how many items will be in column A but I do know that it
won't go past row 1000. This is what I am using:
=LOOKUP(V3,S3:S1000,A3:A1000)
I keep returning a 0 for the answer. If I change it so that it only looks at
cells that curently have data:
=LOOKUP(V3,S3:S10,A3:A10)
it works fine, problem being that more items will be added, and yes the
cells are sorted.
Can anyone tell me where I am making my mistake please?
Thank you for your time.