×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# how to write "if include" within index/match lookup

## how to write "if include" within index/match lookup

(OP)
Anybody may be able to help?

I have a table which consist of 5 columns with headings and about 12 rows of data

1.) References
2.) Group
3.) Type
4.) Class
5.) Product

I have 6 rows of data which also consists of Group, Type, Class and Reference.

I want to find out what product each row represent based on the unique combinations of group, type, class and reference from the table.

The challenge I have is, the references from the table, consist of 9 different references in one cell.

I want to write a formula to search for a specific reference within the cell. I have tried to use the formula below but without much luck.

=INDEX($A$2:$E$13,MATCH(1,($B$2:$B$13=$H18)*($C$2:$C$13=$I18)*($D$2:$D$13=$J18)*($A$2:$A$13="*"&$K18&"*"),0),5)

Felix

### RE: how to write "if include" within index/match lookup

hi,

This is a bit obtuse, because it depends on a ROW NUMBER, which can change as you move your lookup table.

1) Make your Lookup Table a Structured Table named tLookup.

2) The formula:

=INDEX(tLookup[Product],SUMPRODUCT((tLookup[Group]=H19)*(tLookup[Type]=I19)*(tLookup[Class]=J19)*(IF(IFERROR(FIND(K19,tLookup[Reference]),FALSE)>0,TRUE,FALSE))*ROW(tLookup[Reference]))-1,1)

The SUMPRODUCT() function (or SUMIFS(), but I prefer the former) allows for multiple criteria.

Wrap the entire formula in IFERROR() to handle the "unknown" case.

Skip,

Just traded in my OLD subtlety...
for a NUance!

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!