Aerowolf
Programmer
- Nov 6, 2002
- 64
Here's what I've got:
A B C
1 PART1 1 ONEONE
2 PART2 1 TWOONE
3 PART3 3 THREETHREE
4 PART3 1 THREEONE
5 PART4 1 FOURONE
6 PART5 1 FIVEONE
Assume that G1 = PART3
Assume that G2 = 1
I want to be able to lookup G1 in Column A, then lookup G2 in column B starting in the row that resulted from the first lookup, and use the corresponding value in column C as my result. Column A will always be in order but there may be times where a value in that column is repeated, as above with PART3. If there are more than one of a certain part, I need to look for G2 to determine which of that part I need.
I was hoping to do this with a nested VLOOKUP formula like this:
VLOOKUP(G2,B(row of lookup for G1):C6,3)
but I don't know how to get the ROW value of the first lookup.
Any thoughts?
Edwin
A B C
1 PART1 1 ONEONE
2 PART2 1 TWOONE
3 PART3 3 THREETHREE
4 PART3 1 THREEONE
5 PART4 1 FOURONE
6 PART5 1 FIVEONE
Assume that G1 = PART3
Assume that G2 = 1
I want to be able to lookup G1 in Column A, then lookup G2 in column B starting in the row that resulted from the first lookup, and use the corresponding value in column C as my result. Column A will always be in order but there may be times where a value in that column is repeated, as above with PART3. If there are more than one of a certain part, I need to look for G2 to determine which of that part I need.
I was hoping to do this with a nested VLOOKUP formula like this:
VLOOKUP(G2,B(row of lookup for G1):C6,3)
but I don't know how to get the ROW value of the first lookup.
Any thoughts?
Edwin