Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
PK
 
Posts: n/a
Default How do I lookup values from rows and columns Simultaneously

Am trying to create a fomulae that will look up data dependant on rows and
columns. E.g In the lookup range cells A1:A10 contains diffrent item codes
and columns B1:D1 contains months i.e Jan-05, April-05, Aug-05 (being
datevalue labels). Cells B2:D10 contain the data dependant e.g rates.

On the output sheet which contains item codes (A1:A10) and B1:M1 the months
of the year (Jan to Dec-05). For cells B1:M10 it should be pick rates for the
months that are less or equal to the column month (B1:M1) and itemcode as per
column A.
  #2   Report Post  
LanceB
 
Posts: n/a
Default

I am guessing there is a better way

=INDEX(Sheet1!$B$2:$D$10,MATCH($A2,Sheet1!$A$2:$A$ 10),MATCH(SUMPRODUCT(MAX((Sheet1!$B$1:$D$1<=B$1)*S heet1!$B$1:$D$1)),Sheet1!$B$1:$D$1,0))

HTH
Lance

"PK" wrote:

Am trying to create a fomulae that will look up data dependant on rows and
columns. E.g In the lookup range cells A1:A10 contains diffrent item codes
and columns B1:D1 contains months i.e Jan-05, April-05, Aug-05 (being
datevalue labels). Cells B2:D10 contain the data dependant e.g rates.

On the output sheet which contains item codes (A1:A10) and B1:M1 the months
of the year (Jan to Dec-05). For cells B1:M10 it should be pick rates for the
months that are less or equal to the column month (B1:M1) and itemcode as per
column A.

  #3   Report Post  
Domenic
 
Posts: n/a
Default

Assuming that Sheet1 contains your source data, and Sheet2 contains your
output...

On Sheet2, enter the following formula in B2, copied across and down:

=INDEX(Sheet1!$B$2:$D$10,MATCH(Sheet2!$A2,Sheet1!$ A$2:$A$10,0),MATCH(Shee
t2!B$1,Sheet1!$B$1:$D$1))

Hope this helps!

In article ,
"PK" wrote:

Am trying to create a fomulae that will look up data dependant on rows and
columns. E.g In the lookup range cells A1:A10 contains diffrent item codes
and columns B1:D1 contains months i.e Jan-05, April-05, Aug-05 (being
datevalue labels). Cells B2:D10 contain the data dependant e.g rates.

On the output sheet which contains item codes (A1:A10) and B1:M1 the months
of the year (Jan to Dec-05). For cells B1:M10 it should be pick rates for the
months that are less or equal to the column month (B1:M1) and itemcode as per
column A.

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
How to keep rows together when sorting columns? Amit Excel Worksheet Functions 1 March 28th 05 06:01 PM
Convert multiple columns to rows Lois Lane Excel Worksheet Functions 8 January 10th 05 12:47 AM
repeated transpose from rows to columns with unequal groups kraymond Excel Discussion (Misc queries) 3 December 20th 04 02:39 PM
interchange columns with rows Herman Excel Discussion (Misc queries) 2 December 8th 04 05:40 PM
Need to sum values of columns 1 - 13 and 4 - 15 ExcelHelp Excel Worksheet Functions 1 October 27th 04 07:03 PM


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