I have a Ztable that I want to use as a lookup in a formula based on whatever Zscore I get. I have a Z score of 0.84, and the way the table works is that the first column you look at 0.8 then go to column 0.04 as that is the second decimal of 0.84 (so they combine) and you get your lookup value.
I am trying to achieve this with an Index Match formula, though for some reason it refuses to work, even though all of the parts of the formula works fine separately:
Example in Excel Online: https://1drv.ms/x/s!ArOlf1rKamjocy6zekCl8cG3lAc?e=6ZzuTc
=1- INDEX( INDIRECT("Table1[0.0"&RIGHT(E2,1)&"]"), MATCH( LEFT(E2,(FIND(".",E2,1)+1)), Table1[Z],0))
0.84 is placed in E2
Separately I get 0.8 from this formula:
..and I get a reference to column 0.04 with this formula:
So why is the Index match formula failing? If I write the formula cleanly, I get 0.7995:
You do not need
INDIRECT. Try this formula:
Change second column header from
0.00, otherwise the value with one decimal place will not be found.
The short answer is that the values in the ‘Z’ column are numeric, so you need to convert the string LEFT(E2,(FIND(“.”,E2,1)+1)) to a number before doing the lookup:
but @basic is right, there may be a better way of doing this without using Indirect.