M
Mike C
I am using the match and index function to pull in data from a
separate worksheet. I am using Column A as the reference cell,
whereas my formula lies in Column F.
The formula pulls in the data fine. The problem is, when I sort the
data set, the match index function maintains the original reference
cell and does NOT refer to the same row.
So, for example, if my formula references A3, the formula continues to
use A3 after I sort the cell (as if I had used an absolute
reference).
Does anyone know how to fix this? How can I pull in data using
matchindex (or vlookup), but also be able to sort the rows without
messing the formula up? Is there a way to use a list or named ranges
to accomplish this?
The actual formula I am using (in case it helps) is:
=IF(ISNA(INDEX(CMS2!I:I,MATCH('CPT Summary for CMS Comp'!A27,CMS2!
A:A,FALSE))),0,INDEX(CMS2!I:I,MATCH('CPT Summary for CMS Comp'!
A27,CMS2!A:A,FALSE)))
Thanks for any suggestions.
separate worksheet. I am using Column A as the reference cell,
whereas my formula lies in Column F.
The formula pulls in the data fine. The problem is, when I sort the
data set, the match index function maintains the original reference
cell and does NOT refer to the same row.
So, for example, if my formula references A3, the formula continues to
use A3 after I sort the cell (as if I had used an absolute
reference).
Does anyone know how to fix this? How can I pull in data using
matchindex (or vlookup), but also be able to sort the rows without
messing the formula up? Is there a way to use a list or named ranges
to accomplish this?
The actual formula I am using (in case it helps) is:
=IF(ISNA(INDEX(CMS2!I:I,MATCH('CPT Summary for CMS Comp'!A27,CMS2!
A:A,FALSE))),0,INDEX(CMS2!I:I,MATCH('CPT Summary for CMS Comp'!
A27,CMS2!A:A,FALSE)))
Thanks for any suggestions.