Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Excel > Excel

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 01-04-2019, 09:42 AM
radicalrom radicalrom is offline Windows 10 Office 2016
Novice
 
Join Date: Jan 2019
Posts: 9
radicalrom is on a distinguished road
Default 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
Attached Files
File Type: xlsx index test.xlsx (10.0 KB, 20 views)
Reply With Quote
  #2  
Old 01-04-2019, 09:53 AM
xor xor is offline Windows 10 Office 2016
Expert
 
Join Date: Oct 2015
Posts: 987
xor is just really nicexor is just really nicexor is just really nicexor is just really nicexor is just really nice
Default

Please upload your Excel workbook.
Pictures aren't of much help and no one would like to enter all your data.
Reply With Quote
  #3  
Old 01-04-2019, 10:00 AM
radicalrom radicalrom is offline Windows 10 Office 2016
Novice
 
Join Date: Jan 2019
Posts: 9
radicalrom is on a distinguished road
Default

Quote:
Originally Posted by xor View Post
Please upload your Excel workbook.
Pictures aren't of much help and no one would like to enter all your data.
OOOps. That sure would have been helpful if I did that. Sorry. I just uploaded the excel file.
Reply With Quote
  #4  
Old 01-04-2019, 10:08 AM
xor xor is offline Windows 10 Office 2016
Expert
 
Join Date: Oct 2015
Posts: 987
xor is just really nicexor is just really nicexor is just really nicexor is just really nicexor is just really nice
Default

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(...
Reply With Quote
  #5  
Old 01-04-2019, 11:08 AM
xor xor is offline Windows 10 Office 2016
Expert
 
Join Date: Oct 2015
Posts: 987
xor is just really nicexor is just really nicexor is just really nicexor is just really nicexor is just really nice
Default

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),"")
Reply With Quote
  #6  
Old 01-04-2019, 11:58 AM
radicalrom radicalrom is offline Windows 10 Office 2016
Novice
 
Join Date: Jan 2019
Posts: 9
radicalrom is on a distinguished road
Default

Quote:
Originally Posted by xor View Post
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),"")

This is AWESOME! Thank you, Thank you and Thank you!!!!! I love the shorter version!
Reply With Quote
  #7  
Old 01-05-2019, 01:43 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Windows 7 64bit Office 2010 64bit
Moderator
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,335
Pecoflyer is a glorious beacon of lightPecoflyer is a glorious beacon of lightPecoflyer is a glorious beacon of lightPecoflyer is a glorious beacon of lightPecoflyer is a glorious beacon of light
Default

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.
__________________
Problem solved ? Let others know by clicking " Thread Tools" then " Mark thread as solved".( This can be undone if need be)
Want to thank for the help received ? Click the scales symbol in the upper right corner of a post from the person you want to thank.
Reply With Quote
  #8  
Old 01-06-2019, 06:02 AM
radicalrom radicalrom is offline Windows 10 Office 2016
Novice
 
Join Date: Jan 2019
Posts: 9
radicalrom is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
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.
Pecoflyer - I did miss this in my other question and I just finished reading the 2006 post and I understand now. Thank you for pointing this out to me.
Reply With Quote
Reply

Tags
column, index

Thread Tools
Display Modes


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


All times are GMT -7. The time now is 07:25 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft