Hi,
I have a very long formula using nested IF formulas. It is basically checking different columns showing management chain levels and returning a value if a certain manager is in it, and if not, continuing down the IF chain. There are a few pieces that are repeated many times that I would like to just put in one cell, then reference that cell, to minimize typing (and I have to use this in some other contexts).
My formula is something like this:
=IF(INDIRECT(ADDRESS(ROW(),MATCH("Management Chain - Level 04",$1:$1,0),4,1))="joe smith","Org 1",IF(INDIRECT(ADDRESS(ROW(),MATCH("Management Chain - Level 05",$1:$1,0),4,1))="Lisa Smith","Org 2",IF(INDIRECT(ADDRESS(ROW(),MATCH("Management Chain - Level 06",$1:$1,0),4,1))="Tim Jones","Org 3",etc.
These pieces are repeated many times:
I tried putting those text pieces in different cells and just referencing the cells, so it would look something like this:
=IF(A1="joe smith","Org 1",IF(A2="Lisa Smith","Org 2",IF(A3="Tim Jones","Org 3",etc.
But it does not seem to work.
Any suggestions would be much appreciated!
I have a very long formula using nested IF formulas. It is basically checking different columns showing management chain levels and returning a value if a certain manager is in it, and if not, continuing down the IF chain. There are a few pieces that are repeated many times that I would like to just put in one cell, then reference that cell, to minimize typing (and I have to use this in some other contexts).
My formula is something like this:
=IF(INDIRECT(ADDRESS(ROW(),MATCH("Management Chain - Level 04",$1:$1,0),4,1))="joe smith","Org 1",IF(INDIRECT(ADDRESS(ROW(),MATCH("Management Chain - Level 05",$1:$1,0),4,1))="Lisa Smith","Org 2",IF(INDIRECT(ADDRESS(ROW(),MATCH("Management Chain - Level 06",$1:$1,0),4,1))="Tim Jones","Org 3",etc.
These pieces are repeated many times:
INDIRECT(ADDRESS(ROW(),MATCH("Management Chain - Level 04",$1:$1,0),4,1)) |
INDIRECT(ADDRESS(ROW(),MATCH("Management Chain - Level 05",$1:$1,0),4,1)) |
INDIRECT(ADDRESS(ROW(),MATCH("Management Chain - Level 06",$1:$1,0),4,1)) |
I tried putting those text pieces in different cells and just referencing the cells, so it would look something like this:
=IF(A1="joe smith","Org 1",IF(A2="Lisa Smith","Org 2",IF(A3="Tim Jones","Org 3",etc.
But it does not seem to work.
Any suggestions would be much appreciated!