Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / January 2008

Tip: Looking for answers? Try searching our database.

Trying to do a Lookup

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Heather C - 25 Jan 2008 17:36 GMT
I'm trying to match a UPC # to an Item number on an invoice.  I put the
formula in and it bring up thewrong item number.  I'm not quite sure how to
fix this.  The formula I'm using is
=IF (A20>0, LOOKUP(C20,Sheet1!A:A,Sheet1!B:B),"")

PLease HELP
Mike H - 25 Jan 2008 17:47 GMT
Heather,

I assume you have a reson for only executuing your lookup if A20> 0 because
it may be a bit unusual to check a value in your lookup vector but it's not
affecting the formula. In fact it works perfectly for me so can you expand
how it is going wrong.

Mike

> I'm trying to match a UPC # to an Item number on an invoice.  I put the
> formula in and it bring up thewrong item number.  I'm not quite sure how to
> fix this.  The formula I'm using is
> =IF (A20>0, LOOKUP(C20,Sheet1!A:A,Sheet1!B:B),"")
>
> PLease HELP
Heather C - 26 Jan 2008 00:01 GMT
When the program look up the UPC number it is returning the worng item and I
don't know why?

> Heather,
>
[quoted text clipped - 11 lines]
> >
> > PLease HELP
PCLIVE - 25 Jan 2008 17:49 GMT
Your UPC #s would have to be in ascending order for lookup to work.  Instead
try using a MATCH function along with INDIRECT:

=INDIRECT("Sheet1!B" & MATCH(C20,Sheet1!A:A,0))

HTH,
Paul

> I'm trying to match a UPC # to an Item number on an invoice.  I put the
> formula in and it bring up thewrong item number.  I'm not quite sure how
[quoted text clipped - 3 lines]
>
> PLease HELP
Mike H - 25 Jan 2008 17:52 GMT
Sorry an elderly moment your formula isn't on sheet 1 so your not checking a
value in your lookup vector. Last comment remains true, your formula works
perfectly for me so what is your error?

Mike

> I'm trying to match a UPC # to an Item number on an invoice.  I put the
> formula in and it bring up thewrong item number.  I'm not quite sure how to
> fix this.  The formula I'm using is
> =IF (A20>0, LOOKUP(C20,Sheet1!A:A,Sheet1!B:B),"")
>
> PLease HELP
T. Valko - 25 Jan 2008 19:14 GMT
Try this:

=IF(A20>0,VLOOKUP(C20,Sheet1!A:B,2,0),"")

Signature

Biff
Microsoft Excel MVP

> I'm trying to match a UPC # to an Item number on an invoice.  I put the
> formula in and it bring up thewrong item number.  I'm not quite sure how
[quoted text clipped - 3 lines]
>
> PLease HELP
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.