jufglanville
New Member
- Joined
- Sep 11, 2017
- Messages
- 23
Can you use the xlup function in a vba formula? I am using the below formula, however I want to try and change the R[-52] to xlup and the R[-51] to xlup and offset one down, is this possible?
Code:
TaxCode4.FormulaR1C1 = "=IF(LOOKUP(2,1/(R[-52]C:R[-1]C<>"" ""),(R[-51]C[-1]:RC[-1]))="""",LOOKUP(2,1/(R[-52]C:R[-1]C<>"" ""),(R[-52]C[-1]:R[-1]C[-1])),LOOKUP(2,1/(R[-52]C:R[-1]C<>"" ""),(R[-51]C[-1]:RC[-1])))"