Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / November 2005

Tip: Looking for answers? Try searching our database.

Help with a f(x) formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brad Lindsey - 18 Nov 2005 22:12 GMT
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.
Ron Rosenfeld - 19 Nov 2005 01:05 GMT
>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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.