FROGGER24
Well-known Member
- Joined
- May 22, 2004
- Messages
- 704
- Office Version
- 2013
- 2010
- Platform
- Windows
Hi all,
Formula in cell AN1
if cell T5 is blank return last value in column AL, otherwise use user defined function to get result
<Dim lr As Long
lr = Cells(Rows.Count, 38).End(xlUp).Row
Range("AN1").FormulaR1C1 = _
"=IF(R5C20="""",RC[-2] & lr,'abc def 2017.xlsm'!Ft_Uni2(R5C20))">
will need to populate cells until last value in column AL is found.
Thanks for any guidance, have a good day
Formula in cell AN1
if cell T5 is blank return last value in column AL, otherwise use user defined function to get result
<Dim lr As Long
lr = Cells(Rows.Count, 38).End(xlUp).Row
Range("AN1").FormulaR1C1 = _
"=IF(R5C20="""",RC[-2] & lr,'abc def 2017.xlsm'!Ft_Uni2(R5C20))">
will need to populate cells until last value in column AL is found.
Thanks for any guidance, have a good day