Sipirili2504
New Member
- Joined
- Aug 18, 2024
- Messages
- 3
- Office Version
- 2016
- Platform
- Windows
Hi. Appreciate it if you could advise me on how to convert this to VBA.
If column A2 contains apple, lookup in sheet appleweekly etc
=Vlookup(C2, IF(A2="APPLE", APPLEWEEKLY!A:Z, IF(A2="ORANGE", ORANGEWEEKLY! A:Z, IF(A2="LEMON", LEMONWEEKLY!A:Z))),5,0)
If column A2 contains apple, lookup in sheet appleweekly etc
=Vlookup(C2, IF(A2="APPLE", APPLEWEEKLY!A:Z, IF(A2="ORANGE", ORANGEWEEKLY! A:Z, IF(A2="LEMON", LEMONWEEKLY!A:Z))),5,0)