Hi All,
My below code performs a Vlookup based on an IF statement then adds 1 to the prior day business sheet if found. Except, if not found, it returns an #N/A & I have to manually change every cell to 1.
I've tried everything e.g =IF(ISERROR(VLOOKUP, =IF(ISERROR(VLOOKUP.. No success.
Any ideas and/or solutions would help!
My below code performs a Vlookup based on an IF statement then adds 1 to the prior day business sheet if found. Except, if not found, it returns an #N/A & I have to manually change every cell to 1.
I've tried everything e.g =IF(ISERROR(VLOOKUP, =IF(ISERROR(VLOOKUP.. No success.
Any ideas and/or solutions would help!
Code:
'Days Vlookup
Range("E2").Formula = _
"=IF(VLOOKUP(C[-2],'[PBDunkAcc.xlsx]Shell'!C3:C5,3,FALSE),VLOOKUP(C[-2],'[PBDunkAcc.xlsx]Shell'!C3:C5,3,FALSE)+1,1)"
Range("E2").Select