Hi,
This is the excel formula that I need in VBA code. Would appreciate if someone could help me convert this formula into a VBA code. Thank you.
=IFNA(VLOOKUP(LEFT(S2,7)&BA2&BE2,'filepath/Workbook/Sheet1'!$D$4:$E$1048576,2,FALSE),IFNA(VLOOKUP(LEFT(S2,7)&BA2&BE2,'filepath/Workbook/Sheet2'!$E$3:$G$1048576,3,FALSE),IF(OR(MID(S2,3,1)="P",
LEFT(S2,3)="RHS"),"Option1","Option2")))
This is the excel formula that I need in VBA code. Would appreciate if someone could help me convert this formula into a VBA code. Thank you.
=IFNA(VLOOKUP(LEFT(S2,7)&BA2&BE2,'filepath/Workbook/Sheet1'!$D$4:$E$1048576,2,FALSE),IFNA(VLOOKUP(LEFT(S2,7)&BA2&BE2,'filepath/Workbook/Sheet2'!$E$3:$G$1048576,3,FALSE),IF(OR(MID(S2,3,1)="P",
LEFT(S2,3)="RHS"),"Option1","Option2")))