Good Day,
I am having trouble translating the below Excel code into VBA:
INDEX('2018 Data'!F3:F14728,MATCH(1,('2018 Data'!A3:A14728=Code2)*('2018 Data'!B3:B14728="TC"),0)
The above code searches for a specific code in one cell WITH a specific modifier attached in another cell.
Example: 92083 TC (92083 being in one cell and the TC in another)
What I thought could work:
Price1 = Application.WorksheetFunction.Index(Sheets("2018 Data").Range("F3:F14728"), Application.WorksheetFunction.Match(1, Sheets("2018 Data").Range("A3:A14728" = Code1)), Application.WorksheetFunction.Index(Sheets("2018 Data").Range("F3:F14728"), Application.WorksheetFunction.Match(1, Sheets("2018 Data").Range("B3:B14728" = "TC"), 0)))
Thanks in advance!
Bookmarks