R
Robert H
Im using VBA to insert the following formula
=IF(ADDRESS(5,COLUMN(Type))="HL",$F$25,$F$22)
the probelm is that the reference created by ADDRESS(5,COLUMN(Type))
returns the correct reference but in parenthesis
the result in the formula auditor look like this:
=IF("$C$5"="HL",$F$25,$F$22) which returns a false even if HL is in C5
replacing the formula with this works fine
=IF($C$5="HL",$F$25,$F$22) however, I need to creatte the reference.
Any idea how to get the reference using the address function.
Thanks
=IF(ADDRESS(5,COLUMN(Type))="HL",$F$25,$F$22)
the probelm is that the reference created by ADDRESS(5,COLUMN(Type))
returns the correct reference but in parenthesis
the result in the formula auditor look like this:
=IF("$C$5"="HL",$F$25,$F$22) which returns a false even if HL is in C5
replacing the formula with this works fine
=IF($C$5="HL",$F$25,$F$22) however, I need to creatte the reference.
Any idea how to get the reference using the address function.
Thanks