Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default Look up based on Column and Row headings

Hello,

I am trying to write a "look up" that will return the cell value where the
row and column headings in the range match the row and column headings in
the source range.

So if I had the source range:

apples oranges pears
Jan 500 600 700
Feb 400 300 200
Mar

And formula range:

Jan Feb Mar
apples (formula here)
oranges
pears

Where it says "formula here", I want it to return 500.

Thanks in advance for any help on this.

--
AD108


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Look up based on Column and Row headings

Try something like this:

With
Your source list in A1:D3
Your formula list in A11:D13

B12: =VLOOKUP(B$11,$A$11:$D$13,match($A12,$A$1:$D$1,0))

In that formula would find "jan" in the source list and return the value
from the same column that contains "apples"

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"AD108" wrote:

Hello,

I am trying to write a "look up" that will return the cell value where the
row and column headings in the range match the row and column headings in
the source range.

So if I had the source range:

apples oranges pears
Jan 500 600 700
Feb 400 300 200
Mar

And formula range:

Jan Feb Mar
apples (formula here)
oranges
pears

Where it says "formula here", I want it to return 500.

Thanks in advance for any help on this.

--
AD108



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Look up based on Column and Row headings

Say you original datalist is in A1 to D4,
with months in A2 to A4,
and products in B1 to D1.

Say your lookup list is in K1 to N4,
with months in L1 to N1,
and products in K2 to K4.

Enter this formula in L2 and copy across to N2,
then copy down to N4:

=INDEX($A$1:$D$4,MATCH(L$1,$A$1:$A$4,0),MATCH($K2, $A$1:$D$1,0))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"AD108" wrote in message
...
Hello,

I am trying to write a "look up" that will return the cell value where the
row and column headings in the range match the row and column headings in
the source range.

So if I had the source range:

apples oranges pears
Jan 500 600 700
Feb 400 300 200
Mar

And formula range:

Jan Feb Mar
apples (formula here)
oranges
pears

Where it says "formula here", I want it to return 500.

Thanks in advance for any help on this.

--
AD108



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default Look up based on Column and Row headings

Thanks alot, that works well.


--
AD108
"RagDyeR" wrote in message
...
Say you original datalist is in A1 to D4,
with months in A2 to A4,
and products in B1 to D1.

Say your lookup list is in K1 to N4,
with months in L1 to N1,
and products in K2 to K4.

Enter this formula in L2 and copy across to N2,
then copy down to N4:

=INDEX($A$1:$D$4,MATCH(L$1,$A$1:$A$4,0),MATCH($K2, $A$1:$D$1,0))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"AD108" wrote in message
...
Hello,

I am trying to write a "look up" that will return the cell value where the
row and column headings in the range match the row and column headings in
the source range.

So if I had the source range:

apples oranges pears
Jan 500 600 700
Feb 400 300 200
Mar

And formula range:

Jan Feb Mar
apples (formula here)
oranges
pears

Where it says "formula here", I want it to return 500.

Thanks in advance for any help on this.

--
AD108





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Look up based on Column and Row headings

Appreciate the feed-back.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"AD108" wrote in message
...
Thanks alot, that works well.


--
AD108
"RagDyeR" wrote in message
...
Say you original datalist is in A1 to D4,
with months in A2 to A4,
and products in B1 to D1.

Say your lookup list is in K1 to N4,
with months in L1 to N1,
and products in K2 to K4.

Enter this formula in L2 and copy across to N2,
then copy down to N4:

=INDEX($A$1:$D$4,MATCH(L$1,$A$1:$A$4,0),MATCH($K2, $A$1:$D$1,0))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"AD108" wrote in message
...
Hello,

I am trying to write a "look up" that will return the cell value where
the
row and column headings in the range match the row and column headings in
the source range.

So if I had the source range:

apples oranges pears
Jan 500 600 700
Feb 400 300 200
Mar

And formula range:

Jan Feb Mar
apples (formula here)
oranges
pears

Where it says "formula here", I want it to return 500.

Thanks in advance for any help on this.

--
AD108








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



All times are GMT +1. The time now is 10:25 PM.

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"