Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 76
Default Lookup Working TOO Well

Here is a lookup formula I made for the user to enter a unique four digit #
into a spreadsheet (D2) and have correlating data returned (don't worry, I
made a preliminary sort macro for the data list "VOUCH"):

=IF(D20,LOOKUP($D2,VOUCH!D$2:D$5000,VOUCH!C$2:C$5 000),"")

The problem is that if and when the user enters a # incorrectly or a # that
is not on the list....Excel automatically looks up the closest match on the
data list and returns THAT-WRONG correlating data.

Is there a way to tell Excel to return a message to the user that the # is
not existent / incorrect? Or is there a way to limit the lookup return to
specific #'s ONLY on the "VOUCH" list?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Lookup Working TOO Well

Hi,
I assume that you pull your data from Vouch! Column D and your four digit #
is in column C

in E2 enter

=sumproduct(--(D2=Vouch!$c$2:$c$5000),vouch!$d$2:$d$5000)

"Teddy-B" wrote:

Here is a lookup formula I made for the user to enter a unique four digit #
into a spreadsheet (D2) and have correlating data returned (don't worry, I
made a preliminary sort macro for the data list "VOUCH"):

=IF(D20,LOOKUP($D2,VOUCH!D$2:D$5000,VOUCH!C$2:C$5 000),"")

The problem is that if and when the user enters a # incorrectly or a # that
is not on the list....Excel automatically looks up the closest match on the
data list and returns THAT-WRONG correlating data.

Is there a way to tell Excel to return a message to the user that the # is
not existent / incorrect? Or is there a way to limit the lookup return to
specific #'s ONLY on the "VOUCH" list?

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
lookup between two worksheets not working well Angela Excel Worksheet Functions 5 April 7th 08 09:23 PM
Lookup working days DaveAsh Excel Worksheet Functions 2 November 15th 07 03:09 PM
lookup not working nasim Excel Worksheet Functions 1 January 3rd 07 12:43 PM
LOOKUP is working - but VLOOKUP is not Jay Excel Discussion (Misc queries) 3 December 13th 06 02:42 PM
LOOKUP formula not working right pdgaustintexas Excel Worksheet Functions 5 January 27th 06 03:22 PM


All times are GMT +1. The time now is 02:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"