Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Brad Lindsey
 
Posts: n/a
Default Help with a f(x) formula

I have a data table with 5 columns and 18 rows. I have data validation
pull-down menus in separate cells, one each for selecting the column and row
headers data. In a third (adjacent) cell, I want to return the value that
corresponds to the selected values in the table. Seems simple enough, but I
am stumped.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
 
Posts: n/a
Default Help with a f(x) formula

On Fri, 18 Nov 2005 14:12:02 -0800, Brad Lindsey
wrote:

I have a data table with 5 columns and 18 rows. I have data validation
pull-down menus in separate cells, one each for selecting the column and row
headers data. In a third (adjacent) cell, I want to return the value that
corresponds to the selected values in the table. Seems simple enough, but I
am stumped.



If your columns and rows are NAME'd by their header,
and if your cells where the user selects the names are A2 and B2,
then the formula:

=indirect(a2) indirect(B2)

will return the contents of the cell at the intersection those named ranges.
Note the <space between the two indirect functions.

If the columns and rows are NOT NAME'd, then try this formula:



=INDEX(DataTable,MATCH(B2,RowLabels,0)+1,MATCH(A2, ColLabels,0)+1)

DataTable is the entire table including the presumably empty cell in the upper
left corner.

ColLabels is the row of column headers
RowLabels is the column of row headers.

So if DataTable were $D$1:$I$19, ColLabels would be $E$1:$I$1 and RowLabels
would be $D$2:$D$19


--ron
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
IF formula? meris Excel Worksheet Functions 1 September 6th 05 07:14 AM
writing a formula for a colored value aaronwexler New Users to Excel 11 September 1st 05 03:11 PM
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 08:30 PM.

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"