Hi, I am trying to get the following equation to work. I want the vlookup command to search columns A thru C, but the formula doesn't work as is. I've tried relative references too, but can't get it to work.
ActiveCell.FormulaR1C1 = _
"=IF(RC[5]=""NO"",NOW(),VLOOKUP(TRIM(RC[-15]),OtherSheet!" & "A:C" & ",3,FALSE))"
The above formula yields:
=IF(V2="NO",NOW(),VLOOKUP(TRIM(B2),OtherSheet!A:Q:Q,3,FALSE))
Thanks in advance!
ActiveCell.FormulaR1C1 = _
"=IF(RC[5]=""NO"",NOW(),VLOOKUP(TRIM(RC[-15]),OtherSheet!" & "A:C" & ",3,FALSE))"
The above formula yields:
=IF(V2="NO",NOW(),VLOOKUP(TRIM(B2),OtherSheet!A:Q:Q,3,FALSE))
Thanks in advance!