#1
|
|||
|
|||
Index Results Help
**Added Excel Attachment
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: 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. Jeff Unruh |
#2
|
|||
|
|||
Please upload your Excel workbook.
Pictures aren't of much help and no one would like to enter all your data. |
#3
|
|||
|
|||
OOOps. That sure would have been helpful if I did that. Sorry. I just uploaded the excel file.
|
#4
|
|||
|
|||
It is in column 3, not 2 in your INDEX-range, so:
=IF(ISERROR(INDEX($A$1:$H$16,SMALL(IF($A$1:$A$16=$ J$1,ROW($A$1:$A$16)),ROW(1:1)),3)),"",INDEX($A$1:$ H$16,SMALL(IF($A$1:$A$16=$J$1,ROW($A$1:$A$16)),ROW (1:1)),3)) You can shorten the formula by about 50% by using IFERROR instead of IF(ISERROR(... |
#5
|
|||
|
|||
Shortened array formula in K2:
=IFERROR(INDEX($A$1:$H$16,SMALL(IF($A$1:$A$16=$J$1 ,ROW($A$1:$A$16)),ROW(1:1)),3),"") |
#6
|
|||
|
|||
Quote:
This is AWESOME! Thank you, Thank you and Thank you!!!!! I love the shorter version! |
#7
|
||||
|
||||
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.
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#8
|
|||
|
|||
Quote:
|
Tags |
column, index |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can a I create an index in a word document where index entries control sections of the document? | pfriorda | Word | 3 | 12-28-2017 08:02 PM |
Updating font in index without updating style of index | Nick B | Word | 4 | 11-28-2016 02:00 AM |
Relational results | tel703 | Excel | 2 | 05-19-2016 09:54 AM |
Get Paragraph index from bookmark starting index | vince692 | Word VBA | 6 | 05-13-2016 04:51 AM |
2013 search results take a long time - they fill in as results in reverse date order | themookman | Outlook | 0 | 10-11-2013 12:01 PM |