Forum Discussion
sf49ers19238597
Sep 23, 2021Iron Contributor
I have couple formulas. I want hard code into vba
I have worksheet called PTW1 and I also have other worksheet called 1 In cell D2 have this formula =IF('1'!D2<>"",'1'!D2,"BWT") =IF('1'...
- Sep 23, 2021
function INDIRECT()
=IF(INDIRECT("'1'!D2")<>"",INDIRECT("'1'!D2"),"BWT")=IF(INDIRECT("'1'!G2")<>"",INDIRECT("'1'!G2"),"BWT")
That I do for G2?
Thanks You
sf49ers19238597
Sep 23, 2021Iron Contributor
function INDIRECT()
=IF(INDIRECT("'1'!D2")<>"",INDIRECT("'1'!D2"),"BWT")
=IF(INDIRECT("'1'!G2")<>"",INDIRECT("'1'!G2"),"BWT")
That I do for G2?
Thanks You
mtarler
Sep 23, 2021Silver Contributor
yes that is what I'm suggesting and it appears that it is working? Glad it helped.
- sf49ers19238597Sep 23, 2021Iron Contributor
The function doesn't work it is in red can check wrong. if possible can send copy of file
Thanks You
- mtarlerSep 24, 2021Silver Contributor
sf49ers19238597 works for me (see attached).
- sf49ers19238597Sep 24, 2021Iron Contributor