INDEX/MATCH Issues

patrick_oneal

New Member
Joined
Nov 14, 2016
Messages
12
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name
[/TD]
[TD]Type
[/TD]
[TD]Clean Data
[/TD]
[TD][/TD]
[TD]DOGS
[/TD]
[TD]CATS
[/TD]
[/TR]
[TR]
[TD]FRANK
[/TD]
[TD]-DOG
[/TD]
[TD]DOG
[/TD]
[TD][/TD]
[TD]FRANK
[/TD]
[TD]JEFF
[/TD]
[/TR]
[TR]
[TD]JEFF
[/TD]
[TD]-CAT
[/TD]
[TD]CAT
[/TD]
[TD][/TD]
[TD]AMY
[/TD]
[TD]KELLY
[/TD]
[/TR]
[TR]
[TD]KELLY
[/TD]
[TD]-CAT
[/TD]
[TD]CAT
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AMY
[/TD]
[TD]-DOG
[/TD]
[TD]DOG
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm trying to grasp index, match to work on a spread sheet. All of the other questions I find are not helping all that much.

Cells E/D (DOGS,CATS) is what I want the output to look like, I want to match all data in the C column to cell E1 (DOGS), and display the name.
Code:
{=INDEX($A$2:$C$5,MATCH($E$1,$C2:$C$5,0),1)}
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
1. Make your data consistent.
In the output change the column heading to DOG and CAT, not DOGS and CATS

2. in H2
=IFERROR(INDEX($A$2:$A$5,AGGREGATE(15,6,ROW($A$2:$A$5)/(($C$2:$C$5=E$1)),ROWS(A$2:A2))-(2-1),1),"")
copy across and down for as many rows as you have names in column A (in this case down to row 5)
 
Upvote 0
Check the following data

Excel Workbook
ABCDEF
1NameTypeClean DataDOGCAT
2FRANK-DOGDOGFRANKJEFF
3JEFF-CATCATAMYKELLY
4KELLY-CATCAT
5AMY-DOGDOG
6
7
8
9
10
Hoja4
 
Upvote 0
I utilized this code and was successful, thank you. What is i wanted to add another column for color and look for items that matched say “DOG & Brown?”
 
Upvote 0
"I utlilized this code"
To whom are you referring, you have two answers but used only one solution?

Wiht "Brown" in column D
=IFERROR(INDEX($A$2:$A$5,AGGREGATE(15,6,ROW($A$2:$A$5)/(($C$2:$C$5=E$1)*(D$2:D$5="Brown"),ROWS(A$2:A2))-(2-1),1),"")
 
Upvote 0
I utilized this code and was successful, thank you.

You're welcome.

If you present your idea of ​​how you have your data and how you want the results we could establish a formula.
Maybe, it would be better to use a pivot table.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top