Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2019, 09:42 AM
radicalrom radicalrom is offline Index Results Help Windows 10 Index Results Help Office 2016
Novice
Index Results Help
 
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, 26 views)
Reply With Quote
  #2  
Old 01-04-2019, 09:53 AM
xor xor is online now Index Results Help Windows 10 Index Results Help Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
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 Index Results Help Windows 10 Index Results Help Office 2016
Novice
Index Results Help
 
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 online now Index Results Help Windows 10 Index Results Help Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
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 online now Index Results Help Windows 10 Index Results Help Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
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 Index Results Help Windows 10 Index Results Help Office 2016
Novice
Index Results Help
 
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 Index Results Help Windows 7 64bit Index Results Help Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
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.
__________________
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
Reply With Quote
  #8  
Old 01-06-2019, 06:02 AM
radicalrom radicalrom is offline Index Results Help Windows 10 Index Results Help Office 2016
Novice
Index Results Help
 
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



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
Index Results Help Updating font in index without updating style of index Nick B Word 4 11-28-2016 02:00 AM
Index Results Help 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

Other Forums: Access Forums

All times are GMT -7. The time now is 02:28 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft