ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   INDEX similar names in different rows (https://www.excelbanter.com/excel-discussion-misc-queries/234969-index-similar-names-different-rows.html)

mariekek5

INDEX similar names in different rows
 
Hi,

If I want to look for the right category belonging to a specific thing...and
the table is as follows...that each specific thing has the same
category....but there are more than one of them, because they have different
numbers...

Number Thing Category
Z24 Dog Animal
Z33 Dog Animal
Z67 Dog Animal
Z87 Dog Animal
Z98 Baloon Toy
Z99 Baloon Toy
Z56 Baloon Toy
Z78 Spoon Homearticle
Z54 Spoon Homearticle

Etc....

How can I find that the category of 'dog' is 'animal'?

I use the index formula:
=INDEX(A1:C9;MACTH("dog";B1:B9;0);MATCH("category" ;A1:C:1;0)

BUt unfortunately this does not work, because there are more than 1 dogs..

Hope someone can help.

Thanks a lot in advance.

Marieke

Jacob Skaria

INDEX similar names in different rows
 
Try
=INDEX(C1:C100,MATCH("Dog",B1:B100,0))

If this post helps click Yes
---------------
Jacob Skaria


"mariekek5" wrote:

Hi,

If I want to look for the right category belonging to a specific thing...and
the table is as follows...that each specific thing has the same
category....but there are more than one of them, because they have different
numbers...

Number Thing Category
Z24 Dog Animal
Z33 Dog Animal
Z67 Dog Animal
Z87 Dog Animal
Z98 Baloon Toy
Z99 Baloon Toy
Z56 Baloon Toy
Z78 Spoon Homearticle
Z54 Spoon Homearticle

Etc....

How can I find that the category of 'dog' is 'animal'?

I use the index formula:
=INDEX(A1:C9;MACTH("dog";B1:B9;0);MATCH("category" ;A1:C:1;0)

BUt unfortunately this does not work, because there are more than 1 dogs..

Hope someone can help.

Thanks a lot in advance.

Marieke


Jacob Skaria

INDEX similar names in different rows
 
There are typos in your formula
<<=INDEX(A1:C9;MACTH("dog";B1:B9;0);MATCH("categor y";A1:C:1;0)

try
=INDEX(A1:C10,MATCH("Dog",B1:B10,0),MATCH("categor y",A1:C1,0))

If this post helps click Yes
---------------
Jacob Skaria


"mariekek5" wrote:

Hi,

If I want to look for the right category belonging to a specific thing...and
the table is as follows...that each specific thing has the same
category....but there are more than one of them, because they have different
numbers...

Number Thing Category
Z24 Dog Animal
Z33 Dog Animal
Z67 Dog Animal
Z87 Dog Animal
Z98 Baloon Toy
Z99 Baloon Toy
Z56 Baloon Toy
Z78 Spoon Homearticle
Z54 Spoon Homearticle

Etc....

How can I find that the category of 'dog' is 'animal'?

I use the index formula:
=INDEX(A1:C9;MACTH("dog";B1:B9;0);MATCH("category" ;A1:C:1;0)

BUt unfortunately this does not work, because there are more than 1 dogs..

Hope someone can help.

Thanks a lot in advance.

Marieke


mariekek5

INDEX similar names in different rows
 
HI Jacob,
This is the formula I actually use:
=INDEX(A1:C9;MACTH("dog";B1:B9;0);MATCH("category" ;A1:C:1;0)
It works when there is only 1 Dog, but not when there are more Dogs...

That is my problem..

So I guess I have to adapt the formula..


"Jacob Skaria" wrote:

There are typos in your formula
<<=INDEX(A1:C9;MACTH("dog";B1:B9;0);MATCH("categor y";A1:C:1;0)

try
=INDEX(A1:C10,MATCH("Dog",B1:B10,0),MATCH("categor y",A1:C1,0))

If this post helps click Yes
---------------
Jacob Skaria


"mariekek5" wrote:

Hi,

If I want to look for the right category belonging to a specific thing...and
the table is as follows...that each specific thing has the same
category....but there are more than one of them, because they have different
numbers...

Number Thing Category
Z24 Dog Animal
Z33 Dog Animal
Z67 Dog Animal
Z87 Dog Animal
Z98 Baloon Toy
Z99 Baloon Toy
Z56 Baloon Toy
Z78 Spoon Homearticle
Z54 Spoon Homearticle

Etc....

How can I find that the category of 'dog' is 'animal'?

I use the index formula:
=INDEX(A1:C9;MACTH("dog";B1:B9;0);MATCH("category" ;A1:C:1;0)

BUt unfortunately this does not work, because there are more than 1 dogs..

Hope someone can help.

Thanks a lot in advance.

Marieke


Jacob Skaria

INDEX similar names in different rows
 
Try the below with multiple entries

=INDEX(A1:C9,MATCH("Dog",B1:B9,0),MATCH("category" ,A1:C1,0))

If this post helps click Yes
---------------
Jacob Skaria


"mariekek5" wrote:

Community Message Not Available



All times are GMT +1. The time now is 10:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com