#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rojobrown
 
Posts: n/a
Default Look Up Function

I have a table set up so that a user can key in one number and it flood in
the rest of her information based on a table that I have set up on another
worksheet. The formula works fine if the exact number is keyed in. However,
if she keys in the wrong number, it still pulls information. How can I make
it pull over only if the data is exact?
This is the formula that I have:

=LOOKUP('Data Entered In'!A2,'Data Table'!$A$2:$A$49,'Data Table'!$A$2:$A$49)

--
Thanks a bunch!
rojobrown
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Trevor Shuttleworth
 
Posts: n/a
Default Look Up Function

Maybe you could use VLOOKUP instead. Something like:

=IF(ISNA(VLOOKUP(A1,$A$2:$A$49,1,FALSE)),"Entry not
found",VLOOKUP(A1,$A$2:$A$49,1,FALSE))

Your example would look like this (I think):

=IF(ISNA(VLOOKUP('Data Entered In'!A2,'Data
Table'!$A$2:$A$49,1,FALSE)),"Entry not found",VLOOKUP('Data Entered
In'!A2,'Data Table'!$A$2:$A$49,1,FALSE))

Regards

Trevor


"rojobrown" wrote in message
...
I have a table set up so that a user can key in one number and it flood in
the rest of her information based on a table that I have set up on another
worksheet. The formula works fine if the exact number is keyed in.
However,
if she keys in the wrong number, it still pulls information. How can I
make
it pull over only if the data is exact?
This is the formula that I have:

=LOOKUP('Data Entered In'!A2,'Data Table'!$A$2:$A$49,'Data
Table'!$A$2:$A$49)

--
Thanks a bunch!
rojobrown



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default Look Up Function


LOOKUP works on a sorted lookup range and will return the greatest value
smaller than the lookup value if there is no exact match.

The formula you quote doesn't seem correct, presumably the result
vector should be a column other than A.

Assuming your result vector is column B and column A is sorted in
ascending order you can use

=IF(LOOKUP('Data Entered In'!A2,'Data Table'!$A$2:$A$49)='Data Entered
In'!A2,LOOKUP('Data Entered In'!A2,'Data Table'!$A$2:$B$49),"No Match")


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=509462

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rojobrown
 
Posts: n/a
Default Look Up Function

Thanks.... It worked like a charm....
--
Thanks a bunch!
rojobrown


"Trevor Shuttleworth" wrote:

Maybe you could use VLOOKUP instead. Something like:

=IF(ISNA(VLOOKUP(A1,$A$2:$A$49,1,FALSE)),"Entry not
found",VLOOKUP(A1,$A$2:$A$49,1,FALSE))

Your example would look like this (I think):

=IF(ISNA(VLOOKUP('Data Entered In'!A2,'Data
Table'!$A$2:$A$49,1,FALSE)),"Entry not found",VLOOKUP('Data Entered
In'!A2,'Data Table'!$A$2:$A$49,1,FALSE))

Regards

Trevor


"rojobrown" wrote in message
...
I have a table set up so that a user can key in one number and it flood in
the rest of her information based on a table that I have set up on another
worksheet. The formula works fine if the exact number is keyed in.
However,
if she keys in the wrong number, it still pulls information. How can I
make
it pull over only if the data is exact?
This is the formula that I have:

=LOOKUP('Data Entered In'!A2,'Data Table'!$A$2:$A$49,'Data
Table'!$A$2:$A$49)

--
Thanks a bunch!
rojobrown




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Trevor Shuttleworth
 
Posts: n/a
Default Look Up Function

You're welcome. Thanks for the feedback.


"rojobrown" wrote in message
...
Thanks.... It worked like a charm....
--
Thanks a bunch!
rojobrown


"Trevor Shuttleworth" wrote:

Maybe you could use VLOOKUP instead. Something like:

=IF(ISNA(VLOOKUP(A1,$A$2:$A$49,1,FALSE)),"Entry not
found",VLOOKUP(A1,$A$2:$A$49,1,FALSE))

Your example would look like this (I think):

=IF(ISNA(VLOOKUP('Data Entered In'!A2,'Data
Table'!$A$2:$A$49,1,FALSE)),"Entry not found",VLOOKUP('Data Entered
In'!A2,'Data Table'!$A$2:$A$49,1,FALSE))

Regards

Trevor


"rojobrown" wrote in message
...
I have a table set up so that a user can key in one number and it flood
in
the rest of her information based on a table that I have set up on
another
worksheet. The formula works fine if the exact number is keyed in.
However,
if she keys in the wrong number, it still pulls information. How can I
make
it pull over only if the data is exact?
This is the formula that I have:

=LOOKUP('Data Entered In'!A2,'Data Table'!$A$2:$A$49,'Data
Table'!$A$2:$A$49)

--
Thanks a bunch!
rojobrown






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
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM


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