Non-numeric row/column ordinal value for array

lsgexel

New Member
Joined
Sep 3, 2011
Messages
4
I have the following table in Excel:
--------------------------------------------
A B C D E
--------------------------------------------
1 Health Plan
2 Region MC MD CM SL
3 N .5 .7 .9 1.2
4 E .6 1.4 5.3 3.6
--------------------------------------------
I would like to use non-numeric values for rows and columns to index the table as follows:

=Index(B3:E4,N,CM)
should return the value .9

How can this be done?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I have the following table in Excel:
--------------------------------------------
A B C D E
--------------------------------------------
1 Health Plan
2 Region MC MD CM SL
3 N .5 .7 .9 1.2
4 E .6 1.4 5.3 3.6
--------------------------------------------
I would like to use non-numeric values for rows and columns to index the table as follows:

=Index(B3:E4,N,CM)
should return the value .9

How can this be done?
What version of Excel are you using?

Here's how to do it in Excel 2007.

Let's assume your table is in the range A1:E3 (includes both row and column headers).

Select the range A1:E3
Goto the Formulas tab
Defined Names
Create from selection
Select: Top Row and Left Column
OK out

Then, the formula would be:

=N CM

You just type in the row and column headers separated by a space.

=E MD

will return 1.4
 
Upvote 0
What version of Excel are you using?

Here's how to do it in Excel 2007.

Let's assume your table is in the range A1:E3 (includes both row and column headers).

Select the range A1:E3
Goto the Formulas tab
Defined Names
Create from selection
Select: Top Row and Left Column
OK out

Then, the formula would be:

=N CM

You just type in the row and column headers separated by a space.

=E MD

will return 1.4
P.S.

I think I read somewhere that this feature was removed from Excel 2010?

Can anyone verify that? I don't have Excel 2010 to test it.
 
Upvote 0
I am using Excel 2007 and you suggestion works. Thanks for the quick response.
You're welcome!

If you want to use cells to hold the criteria:
  • A10 = N
  • B10 = CM
Then the formula would be:

=INDIRECT(A10) INDIRECT(B10)

Note that the space is still there between the INDIRECT functions.
 
Upvote 0

Forum statistics

Threads
1,224,531
Messages
6,179,379
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top