Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Look for data in a range - help


Can someone tell me which formula to use ?

I have a price list for a limited range of products. I have a cell in
which I display a product and want to look in my price list to see if
this product is listed, if it is I want to display the list price. If
its not, I want to say "not listed"

I can deal with the bit about looking up the price for the product, as
long as the product exists on the price list, but if the prduct is not
listed I fail.

My formula so far is : =VLOOKUP(D$12,UK!A$5:E$53,UK!C$1,FALSE)

This looks up the product code in D12 and checks in my price list 'UK'
then returns a result. So far Im happy with this, but how do I get it
to check if the product is actually on my price list in the first place
?

Either I get it to check the list first, or I get it to act upon a N/A
result, but Im not sure how to do either of these.

Hope this is clear (as mud), thanks :)


--
Ainsley
------------------------------------------------------------------------
Ainsley's Profile: http://www.excelforum.com/member.php...o&userid=31960
View this thread: http://www.excelforum.com/showthread...hreadid=566969

  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Look for data in a range - help

Hi

Try this:
=if(iserror(VLOOKUP(D$12,UK!A$5:E$53,UK!C$1,FALSE) ),"not
listed",VLOOKUP(D$12,UK!A$5:E$53,UK!C$1,FALSE))

Andy.



"Ainsley" wrote in
message ...

Can someone tell me which formula to use ?

I have a price list for a limited range of products. I have a cell in
which I display a product and want to look in my price list to see if
this product is listed, if it is I want to display the list price. If
its not, I want to say "not listed"

I can deal with the bit about looking up the price for the product, as
long as the product exists on the price list, but if the prduct is not
listed I fail.

My formula so far is : =VLOOKUP(D$12,UK!A$5:E$53,UK!C$1,FALSE)

This looks up the product code in D12 and checks in my price list 'UK'
then returns a result. So far Im happy with this, but how do I get it
to check if the product is actually on my price list in the first place
?

Either I get it to check the list first, or I get it to act upon a N/A
result, but Im not sure how to do either of these.

Hope this is clear (as mud), thanks :)


--
Ainsley
------------------------------------------------------------------------
Ainsley's Profile:
http://www.excelforum.com/member.php...o&userid=31960
View this thread: http://www.excelforum.com/showthread...hreadid=566969



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Look for data in a range - help


Thanks, that works a treat.


--
Ainsley
------------------------------------------------------------------------
Ainsley's Profile: http://www.excelforum.com/member.php...o&userid=31960
View this thread: http://www.excelforum.com/showthread...hreadid=566969

  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Look for data in a range - help

Thanks for the feedback!!

Andy.

"Ainsley" wrote in
message ...

Thanks, that works a treat.


--
Ainsley
------------------------------------------------------------------------
Ainsley's Profile:
http://www.excelforum.com/member.php...o&userid=31960
View this thread: http://www.excelforum.com/showthread...hreadid=566969



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
Duplicate Range Names by worksheet FlaAl Excel Discussion (Misc queries) 0 May 24th 06 05:14 PM
Help with using range names in sum function soteman2005 Excel Worksheet Functions 2 November 28th 05 04:43 PM
How to Select a relative range with Using "Find" and Offset() Dennis Excel Discussion (Misc queries) 7 July 27th 05 03:57 PM
Can a formula check for a certain value in a range? Lee IT Excel Discussion (Misc queries) 3 April 8th 05 07:36 AM
can a formula check for a certain value in a range? Lee IT Excel Discussion (Misc queries) 1 April 7th 05 04:31 PM


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