joe17669 All American 22728 Posts user info edit post |
I'm trying to go through and pull some data from a particular worksheet based off of an "id" column, that unfortunately isn't in the first column in the range of data
In the past when doing similar functions, I've always used VLOOKUP() and then chose the data based off of the column offset (ie, Data1, Data2). However, in this case, I not only need to use Data1 and Data2, I need to be able to get the data in Name which is to the left of the index column. This makes my VLOOKUP fail.
It would be a piece of cake if 'id' were the foremost column (or if the vlookup column offset could be 0 or -1), but unfortunately the data will not be presented to me in that way.
Name id Data1 Data2 Apple 1 15 120 Banana 2 15 120 Cherry 3 20 120 Pear 4 20 208 Peach 5 30 208
Any ideas? I'm searching through some other functions like INDEX, CHOOSE, etc, but am sorta in a brain freeze now as to how I should use them.
Thanks ]2/18/2008 1:21:11 PM |
joe17669 All American 22728 Posts user info edit post |
That's exactly what qntmfred suggested in the chatterbox. I didn't even think of that
Essentially, I have multiple sets of id/Data1/Data2, but only one Name column far to the left. I added a column on the very right to mirror Name, and then did the offset accordingly. I'm happy now
I was making it far more complicated than I needed to...
] 2/18/2008 2:02:37 PM |