Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
PeterG
 
Posts: n/a
Default Lookup formula question


Hi all,

I have a Lookup formula setup to validate what the user enters against
a list of stock codes, returning the item costs. Stock codes are
A001, A002 etc, B001, B002, etc, D001, D002 etc If I then enter a
stockcode starting with letter C, I get the item cost returned from the
last letter B stockcode. How can I get it to return P.O.A.

This is what I have at present.

=IF(C4="Fittings",(LOOKUP(F4,Fittings!$C$1:$C$5019 ,Fittings!$D$1:$D$5019)),0)*AL4

C4 - Parent stock item description
F4 - Stock code
AL4 - Quantity

Any help - greatly appreciated.


--
PeterG
------------------------------------------------------------------------
PeterG's Profile: http://www.excelforum.com/member.php...o&userid=16485
View this thread: http://www.excelforum.com/showthread...hreadid=386727

  #2   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

Try something like:

=IF(ISNA(MATCH(F4,Fittings!$C$1:$C$5019,0)),"POA", IF(C4="Fittings",(VLOOKUP(
F4,Fittings!$C$1:$D$5019,2,FALSE),0)*AL4)


Mangesh



"PeterG" wrote in
message ...

Hi all,

I have a Lookup formula setup to validate what the user enters against
a list of stock codes, returning the item costs. Stock codes are
A001, A002 etc, B001, B002, etc, D001, D002 etc If I then enter a
stockcode starting with letter C, I get the item cost returned from the
last letter B stockcode. How can I get it to return P.O.A.

This is what I have at present.


=IF(C4="Fittings",(LOOKUP(F4,Fittings!$C$1:$C$5019 ,Fittings!$D$1:$D$5019)),0
)*AL4

C4 - Parent stock item description
F4 - Stock code
AL4 - Quantity

Any help - greatly appreciated.


--
PeterG
------------------------------------------------------------------------
PeterG's Profile:

http://www.excelforum.com/member.php...o&userid=16485
View this thread: http://www.excelforum.com/showthread...hreadid=386727



  #3   Report Post  
PeterG
 
Posts: n/a
Default


That looks good, how would i set it up if I have 6 stock code listings
on 6 seperate worksheets.

When I try this formula ....

=IF((OR(ISNA(MATCH(F4,Duct!$C$1:$C$5000,0)),ISNA(M ATCH(F4,Extra!$C$1:$C$5000,0)),ISNA(MATCH(F4,Fitti ngs!$C$1:$C$5000,0)),ISNA(MATCH(F4,Flex!$C$1:$C$50 00,0)),ISNA(MATCH(F4,Other!$C$1:$C$5000,0)),ISNA(M ATCH(F4,Silencer!$C$1:$C$5000,0)))),"POA","
")

It always returns the POA answer, even if one of the ISNA(Match
statements returns a false state.


--
PeterG
------------------------------------------------------------------------
PeterG's Profile: http://www.excelforum.com/member.php...o&userid=16485
View this thread: http://www.excelforum.com/showthread...hreadid=386727

  #4   Report Post  
PeterG
 
Posts: n/a
Default


I use an AND instead of an OR .... thats fixed it.


--
PeterG
------------------------------------------------------------------------
PeterG's Profile: http://www.excelforum.com/member.php...o&userid=16485
View this thread: http://www.excelforum.com/showthread...hreadid=386727

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
formula question Pam Coleman Excel Worksheet Functions 9 April 11th 05 08:51 AM
Multicell Array Formula and List Question John Mansfield Excel Worksheet Functions 11 March 21st 05 01:36 AM
Multiple Criteria Lookup Question Gregg Riemer Excel Discussion (Misc queries) 3 February 22nd 05 01:18 AM
Lookup Question Mackay 1979 Excel Worksheet Functions 2 February 19th 05 01:11 PM
How do I have a formula lookup a sheetname? Mim Excel Worksheet Functions 2 February 1st 05 03:49 PM


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