Link to home
Start Free TrialLog in
Avatar of Svgmassive
Svgmassive

asked on

an alternative

i am using the formula below to check if a name exits in two tables if ,the problem is that the function checks the columns four times two with the count if and the other to get the address on a large table this can affect performance.I need to only check the table once and return a blank if the name does not exist.
=IF(COUNTIF(EMP_NAMES,EMPLOY_EE),ADDRESS(MATCH(EMPLOY_EE,EMP_NAMES,0),1),IF(COUNTIF(SUPV_EMP_COL,EMPLOY_EE),ADDRESS(MATCH(EMPLOY_EE,SUPV_EMP_COL,0),COLUMN(SUPV_EMP_COL)),""))
SOLUTION
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Svgmassive
Svgmassive

ASKER

no some folks still have 2003
Then try using two dummy columns with the two address functions

=ADDRESS(MATCH(EMPLOY_EE,EMP_NAMES,0),1)
=ADDRESS(MATCH(EMPLOY_EE,SUPV_EMP_COL,0),COLUMN(SUPV_EMP_COL))

and then something like

=if(iserror(col1),if(iserror(col2),"",col2),col1)

You can hide the dummy columns.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial