Index Results Help

radicalrom

New member
Joined
Jan 4, 2019
Messages
2
Reaction score
0
Points
0
Excel Version(s)
2016
I have been trying to figure out what I am doing wrong with the INDEX function.

What is my goal? Look at a cell, look through the table array in column A and give all the results for multiple columns for anything that matches in column A. I got it to work for 1 column, but when I try to display the second, third, forth column results, it does not work. Below is my image of my sheet

Image:

xbElptr


https://imgur.com/xbElptr


My J2 through J16 has the INDEX command working fine. It is pulling from column B. Now column K I want now pull the value from the next column to the right. On the first results, great it found Arrowbear Lake in column B, but in column K I want to find the same search (J1) but pull from column C. On this example it would pull the value "county".

What do I need to change to make this work. Here is my index value in K2 and I always use CTRL > Shift > Enter.

=IF(ISERROR(INDEX($A$1:$H$16,SMALL(IF($A$1:$A$16=$ J$1,ROW($A$1:$A$16)),ROW(1:1)),2)),"",INDEX($A$1:$ H$16,SMALL(IF($A$1:$A$16=$J$1,ROW($A$1:$A$16)),ROW (1:1)),2))


Any help would be great.
 
I did not take time to understand your formula as it is very complicated. It seems to me that that the 2 at the end of your formula stands for the column number in the index command. This would need to be a relative reference.
 
How about
=IF(ISERROR(INDEX($A$1:$H$16,SMALL(IF($A$1:$A$16=$J$1,ROW($A$1:$A$16)),ROWS($1:1)),2)),"",INDEX($A$1:$H$16,SMALL(IF($A$1:$A$16=$J$1,ROW($A$1:$A$16)),ROWS($1:1)),COLUMNS($I:J)))
Or as you have 2016
=IFERROR(INDEX($A$1:$H$16,SMALL(IF($A$1:$A$16=$J$1,ROW($A$1:$A$16)),ROWS($1:1)),COLUMNS($I:J)),"")
 
How about
=IF(ISERROR(INDEX($A$1:$H$16,SMALL(IF($A$1:$A$16=$J$1,ROW($A$1:$A$16)),ROWS($1:1)),2)),"",INDEX($A$1:$H$16,SMALL(IF($A$1:$A$16=$J$1,ROW($A$1:$A$16)),ROWS($1:1)),COLUMNS($I:J)))
Or as you have 2016
=IFERROR(INDEX($A$1:$H$16,SMALL(IF($A$1:$A$16=$J$1,ROW($A$1:$A$16)),ROWS($1:1)),COLUMNS($I:J)),"")

Thank you Fluff!
 
Hi and welcome
Please,do not crosspost your question on multiple forums without including links here to the other threads on other forums.

Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question

Do not post any further responses in this thread until a link has been provided to these cross posts.
 
Back
Top