Ok, see attached....
I showed 2 options...
First Option is in the case that you have different ranges for the different categories (i.e. Adult, Child, etc.)
So I listed the Adult specs in I1:J4 and the Child specs in K1:L4
I named each of those 2 tables through Insert|Name|Define as "Adult" and "Child" respectively...
Then formula in C1 is:
=LOOKUP(A1,IF(B1="ADULT",Adult,IF(B1="CHILD",Child,"")))
This looks at value in A1 in one of those 2 tables based on what is in B1.
Option 2 is for if the ranges are always the same but you have different text returned based on the category..
So now I named range I8:J11 as "AdultRange" and then I8:K11 as "ChildRange".. Note: Lookup() looks up in the first column of the range and returns from the last column in the specified range...
Formula in C9:
=LOOKUP(A9,IF(B9="ADULT",AdultRange,IF(B9="CHILD",ChildRange,"")))
Test out which ever you prefer and apply...
Bookmarks