I have a mapping sheet and would like to use VBA to look up certain portfolio.
The design goes like:
- Identify which portfolio to lookup
- vlookup the value on Data Input
Is it the right thinking? But, I don't know how to connect my point 1 and point 2 on excel VBA. Please kindly advise,
| Portfolio | Data Input | Data Output |
|---|---|---|
| S1 | Apple | APPL |
| S1 | Microsoft | MSFT |
| S1 | Walmart | WMT |
| S1 | Tesla | TSLA |
| S1 | FB | |
| S2 | Johnson & Johnson | JNJ |
| S2 | Tesla | TSLA |
| S2 | Fiverr | FVRR |
| S2 | Apple | APPL |
| S3 | Spot | 1,700 |
| S3 | Beyond Meat | BYND |
| S3 | Dropbox | DBX |
| S3 | Tesla | TSLA |
| S3 | Apple | APPL |