pleasehalp
New Member
- Joined
- Oct 8, 2013
- Messages
- 41
I've been looking at the forum and I'm a bit confused on how this function works. I just want these vlookups to return a value and if they can't find one then to just leave it blank.
Here is an example of some vlookups that I want to have if error values added to. Thanks for the help.
Range("S1").FormulaR1C1 = "=Sheet0!RC[3]"
Range("S2").FormulaR1C1 = "=VLOOKUP(RC[-3],Sheet0!R2C5:R" & LR & "C31,18,FALSE)"
Range("T1").FormulaR1C1 = "=Sheet0!RC[5]"
Range("T2").FormulaR1C1 = "=VLOOKUP(RC[-4],Sheet0!R2C5:R" & LR & "C31,21,FALSE)"
Range("U1").FormulaR1C1 = "=Sheet0!RC[5]"
Range("U2").FormulaR1C1 = "=VLOOKUP(RC[-5],Sheet0!R2C5:R" & LR & "C31,22,FALSE)"
Range("V1").FormulaR1C1 = "=Sheet0!RC[8]"
Range("V2").FormulaR1C1 = "=VLOOKUP(RC[-6],Sheet0!R2C5:R" & LR & "C31,26,FALSE)"
Here is an example of some vlookups that I want to have if error values added to. Thanks for the help.
Range("S1").FormulaR1C1 = "=Sheet0!RC[3]"
Range("S2").FormulaR1C1 = "=VLOOKUP(RC[-3],Sheet0!R2C5:R" & LR & "C31,18,FALSE)"
Range("T1").FormulaR1C1 = "=Sheet0!RC[5]"
Range("T2").FormulaR1C1 = "=VLOOKUP(RC[-4],Sheet0!R2C5:R" & LR & "C31,21,FALSE)"
Range("U1").FormulaR1C1 = "=Sheet0!RC[5]"
Range("U2").FormulaR1C1 = "=VLOOKUP(RC[-5],Sheet0!R2C5:R" & LR & "C31,22,FALSE)"
Range("V1").FormulaR1C1 = "=Sheet0!RC[8]"
Range("V2").FormulaR1C1 = "=VLOOKUP(RC[-6],Sheet0!R2C5:R" & LR & "C31,26,FALSE)"