Complicated Lookup with conditions in the lookup range cells

JustLukas

New member
Joined
Jun 10, 2014
Messages
10
Reaction score
0
Points
0
Hello!

I have this puzzled that i couldnt completely figure out so hopefully someone can help me out with that (p.s. trying to avoid VBA)!

What i want to do is to look up a unique reference that combines all the possible variances in search criteria's (e.g. C1,C2,C3,C4,C5,C6) in a range that sums up the conditions of which criterias to follow in the lookup. For example:

Unique reference: =C1&C2&C3&C4&C5&C6
Lookup Table:
Condition SummedC1C2C3C4C6C6Tag
A1*F1A1F1Tag1
<>A6F2Tag2
<>A3,<>A4F3,F4Tag3
<>A4F5Tag4
<>A4F6Tag5
F7Tag6
F8Tag7
A5F9Tag8
A6F10Tag9
A7,A3,A4<>F11,<>F12,<>F13,<>F14,<>F15Tag10
F16Tag11
F11,F12,F13,F14,F15Tag12
C1 - C6 conditions that needs to be follow that either contains these in part of unique reference string or <> does not contain

Tag - the Tag which should be looked up and showing as a result

Condition summed - was what i was trying to use to come to the result. I was using wild card to look up, but the formula below does not work if its with sign that of <> that if the criteria exists, it should be looked up by that tag.

=LOOKUP(9.999E+307,SEARCH(Conditions_summed_range,Unique Reference),Lookup_Tag_range)

The reason i need this is that the conditions will always be changing and to change the formula everytime it does is too much inefficient due to the amount of criterias.
 
Last edited:
Can you post an actual sample workbook? Include some sample inputs and expected results.
 
Back
Top