Mark F
Well-known Member
- Joined
- Jun 7, 2002
- Messages
- 515
- Office Version
- 365
- Platform
- Windows
I have a sheet called "Top 100" where I want to vlookup or index match data from a sheet called "USCOTRN"
On the "Top 100" sheet, I want to find first appearance of the value that is in $B4 in Column A on "USCOTRN" sheet and display the value that is in Column F on "USCOTRN" sheet display in column BC (first cell is BC4) on the "Top 100" sheet
On the "Top 100" sheet, I want to find first appearance of the value that is in $B4 in Column A on "USCOTRN" sheet and display the value that is in Column D on "USCOTRN" sheet display in column BD (first cell is BD4) on the "Top 100" sheet
On the "Top 100" sheet, I want to find the second appearance (if there is one) of the value that is in $B4 in Column A on "USCOTRN" sheet and display the value that is in Column D on "USCOTRN" sheet display in column BE(first cell is BE4) on the "Top 100" sheet
On the "Top 100" sheet, I want to find second appearance of the value that is in $B4 in Column A on "USCOTRN" sheet and display the value that is in Column F on "USCOTRN" sheet display in column BD (first cell is BF4) on the "Top 100" sheet
If there are more than two appearance in Column A, id like to use columns BG onwards
I have tried with the code below, but not really getting anywhere, and not fully understanding how to get it to work
I'd appreciate any help to point me in the right direction
Thanks
Mark
On the "Top 100" sheet, I want to find first appearance of the value that is in $B4 in Column A on "USCOTRN" sheet and display the value that is in Column F on "USCOTRN" sheet display in column BC (first cell is BC4) on the "Top 100" sheet
On the "Top 100" sheet, I want to find first appearance of the value that is in $B4 in Column A on "USCOTRN" sheet and display the value that is in Column D on "USCOTRN" sheet display in column BD (first cell is BD4) on the "Top 100" sheet
On the "Top 100" sheet, I want to find the second appearance (if there is one) of the value that is in $B4 in Column A on "USCOTRN" sheet and display the value that is in Column D on "USCOTRN" sheet display in column BE(first cell is BE4) on the "Top 100" sheet
On the "Top 100" sheet, I want to find second appearance of the value that is in $B4 in Column A on "USCOTRN" sheet and display the value that is in Column F on "USCOTRN" sheet display in column BD (first cell is BF4) on the "Top 100" sheet
If there are more than two appearance in Column A, id like to use columns BG onwards
I have tried with the code below, but not really getting anywhere, and not fully understanding how to get it to work
Code:
=INDEX(USCOTRN!$A$5:$D$1000,SMALL(IF(USCOTRN!$f$5:$f$1000=B4,ROW(USCOTRN!$f$5:$f$1000)-ROW(USCOTRN!A5)+1),1))
I'd appreciate any help to point me in the right direction
Thanks
Mark