Excel 2007
Task: Retrieving values stored in a table where the left column and header contain values to match and the intersection of the header and left column is the value to return.
This is a pretty simple INDEX, MATCH that works quite well to lookup values at the intersection of a column value and row header, however I learned today of a possible shortcoming of Excel 2007 when trying to use the formula in Excel Tables; the header row that holds one of the critical matching values to find does not work when formatted as a Table. Even though Excel allows you to right click and set or ensure the format of the cell is a number, the nature of a Table header in 2007 is to store the value as text.
The elegance of using Tables to reference data in 2007 is much preferred for the simplicity of writing lookups and other strings of formulas. In this case, the lookup data had to be converted to a range first for my formula to work.
I discovered this because I knew I had the formula correct, but kept getting #N/A errors. When I converted the lookup table to a range, I could see that the numbers in the table header row were stored as text. I converted to a number and the formula worked.
I then converted the lookup range back to a table and the formula broke.
Good to know.
Task: Retrieving values stored in a table where the left column and header contain values to match and the intersection of the header and left column is the value to return.
This is a pretty simple INDEX, MATCH that works quite well to lookup values at the intersection of a column value and row header, however I learned today of a possible shortcoming of Excel 2007 when trying to use the formula in Excel Tables; the header row that holds one of the critical matching values to find does not work when formatted as a Table. Even though Excel allows you to right click and set or ensure the format of the cell is a number, the nature of a Table header in 2007 is to store the value as text.
The elegance of using Tables to reference data in 2007 is much preferred for the simplicity of writing lookups and other strings of formulas. In this case, the lookup data had to be converted to a range first for my formula to work.
I discovered this because I knew I had the formula correct, but kept getting #N/A errors. When I converted the lookup table to a range, I could see that the numbers in the table header row were stored as text. I converted to a number and the formula worked.
I then converted the lookup range back to a table and the formula broke.
Good to know.