Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
FFW
 
Posts: n/a
Default Lookup Function Problems

I'm trying to set up a sheet which looks up information from another sheet.
Here is a very simplified example of what I'm trying to achieve:

Sheet1:
A B C D E
1 Code Desc Jan Feb Mar
2 AAA 10 10 15
3 BBB 15 15 20
4 CCC 20 20 25

Sheet2:
A B C D
1 Code Desc Month Price
2 BBB Feb
3 AAA Mar


Sheet 1 basically holds product information. Column A being product code, B
being product description and then C, D & E being prices for such products in
the corresponding months (this is in fact continued for all 12 months in the
actual sheet).

In sheet 2 a user will enter information in columns A & C and specifically
what I'm interested in here is lookup functions for columns B & D. Column B
currently has a VLOOKUP function to get the description text from Sheet1 when
the user enters the product code. The problem I have is I need a similar
function for column D to lookup the corresponding price when the month is
entered. This issue is I need it to match both the month and the product code
to return the correct price.

Can anyone hlp me with this? It may be that I'm approaching this the wrong
way so if thats the case I'm open to any better suggestions.

Thanks in advance.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Try this formula

=INDEX(Sheet1!$C$2:$N$20,MATCH(Sheet2!A2,Sheet1!$A $2:$A$20,0),MATCH(Sheet2!C
2,Sheet1!$C$1:$N$1,0))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"FFW" wrote in message
...
I'm trying to set up a sheet which looks up information from another

sheet.
Here is a very simplified example of what I'm trying to achieve:

Sheet1:
A B C D E
1 Code Desc Jan Feb Mar
2 AAA 10 10 15
3 BBB 15 15 20
4 CCC 20 20 25

Sheet2:
A B C D
1 Code Desc Month Price
2 BBB Feb
3 AAA Mar


Sheet 1 basically holds product information. Column A being product code,

B
being product description and then C, D & E being prices for such products

in
the corresponding months (this is in fact continued for all 12 months in

the
actual sheet).

In sheet 2 a user will enter information in columns A & C and specifically
what I'm interested in here is lookup functions for columns B & D. Column

B
currently has a VLOOKUP function to get the description text from Sheet1

when
the user enters the product code. The problem I have is I need a similar
function for column D to lookup the corresponding price when the month is
entered. This issue is I need it to match both the month and the product

code
to return the correct price.

Can anyone hlp me with this? It may be that I'm approaching this the wrong
way so if thats the case I'm open to any better suggestions.

Thanks in advance.



  #3   Report Post  
FFW
 
Posts: n/a
Default

Works a treat. Many thanks!

"Bob Phillips" wrote:

Try this formula

=INDEX(Sheet1!$C$2:$N$20,MATCH(Sheet2!A2,Sheet1!$A $2:$A$20,0),MATCH(Sheet2!C
2,Sheet1!$C$1:$N$1,0))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"FFW" wrote in message
...
I'm trying to set up a sheet which looks up information from another

sheet.
Here is a very simplified example of what I'm trying to achieve:

Sheet1:
A B C D E
1 Code Desc Jan Feb Mar
2 AAA 10 10 15
3 BBB 15 15 20
4 CCC 20 20 25

Sheet2:
A B C D
1 Code Desc Month Price
2 BBB Feb
3 AAA Mar


Sheet 1 basically holds product information. Column A being product code,

B
being product description and then C, D & E being prices for such products

in
the corresponding months (this is in fact continued for all 12 months in

the
actual sheet).

In sheet 2 a user will enter information in columns A & C and specifically
what I'm interested in here is lookup functions for columns B & D. Column

B
currently has a VLOOKUP function to get the description text from Sheet1

when
the user enters the product code. The problem I have is I need a similar
function for column D to lookup the corresponding price when the month is
entered. This issue is I need it to match both the month and the product

code
to return the correct price.

Can anyone hlp me with this? It may be that I'm approaching this the wrong
way so if thats the case I'm open to any better suggestions.

Thanks in advance.




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
Replacing #N/A response when obtained in Lookup function CochranConsult Excel Worksheet Functions 4 June 26th 06 05:03 PM
Using lookup function Gary Excel Discussion (Misc queries) 1 July 11th 05 07:21 AM
Lookup function problem (kg) greencecil Excel Worksheet Functions 3 July 1st 05 05:54 PM
Lookup function skipping columns LaurenLa Excel Worksheet Functions 1 June 30th 05 06:55 PM
How do I use 3 cells to create the string for a lookup function? Bencomo Excel Worksheet Functions 1 May 15th 05 08:17 AM


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