INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • 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.

Jobs

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)

Can any body help please?

Many thanks in advance

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.

The -1 adjusts for the row position of your table.

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

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

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.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources


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:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close