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

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 244
Default Simple lookup problem...

On 2 Aug, 15:50, 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.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 244
Default Simple lookup problem...

On 2 Aug, 15:50, 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.


At face value, it should be fine - but you could create two
dynamically named ranges - for example


=Sheet1!$S$3:OFFSET(Sheet1!$s$2,COUNTA(Sheet1!$s$3 :$s$1200),0)

would give you a range that is as long as the data in S3:S1200, but
ONLY as long as the data

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Simple lookup problem...

Thank yo for your reply. It did not however work. I did just realize that
there is a formula in the cells (column s) that it is compairing, pretty sure
this could be the problem. Don't understand why it would work if I use 10
instead of 1000 places to search. Is there a formula to make it compair the
value of a cell, not the formula?
Thanks again for your help.

"John Bundy" wrote:

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.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 244
Default Simple lookup problem...

On 2 Aug, 17:24, Haxer wrote:
Thank yo for your reply. It did not however work. I did just realize that
there is a formula in the cells (column s) that it is compairing, pretty sure
this could be the problem. Don't understand why it would work if I use 10
instead of 1000 places to search. Is there a formula to make it compair the
value of a cell, not the formula?
Thanks again for your help.



"John Bundy" wrote:
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.- Hide quoted text -


- Show quoted text -


shouldn't make any difference, so possibly the cell is returning
something similar to but not the same as the look up value (eg text
instead of number, extra space)

if you want to email me the file ) I may be
able to spot something that explains it, or come up with an
alternative method.

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
Can anyone help with a Simple Lookup please? shauny Excel Discussion (Misc queries) 5 June 6th 07 08:46 AM
Simple Lookup? Saxman Excel Discussion (Misc queries) 0 October 23rd 06 02:37 PM
Simple lookup - or maybe not so simple - help! ChrisHodds Excel Worksheet Functions 1 September 27th 06 03:09 PM
simple lookup Max_power Excel Discussion (Misc queries) 3 April 21st 06 11:40 AM
Simple lookup Bill Excel Worksheet Functions 2 April 26th 05 03:51 AM


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