0

enter image description here

In this example, the goal is to have three separate drop-down fields in Field1, Field2, and Field3. Each of these fields will reference data contained in the lower right-hand corner of the spreadsheet, ie: abc, def, geh, or fij in Field1. The goal is to have Field4 (D1) reference the data the user selects from the drop-down fields A2, B2, and C2, and return referenced text from Field4 (L18-L22) in the D2 cell.

In this scenario, I've achieved this result using an IF formula, but I was wondering if there is a simpler syntax available to achieve this result.

1
  • Did either of the answers below work for you? If so please mark one as correct. It is something only the person posing the question can do. Click on the green check mark by the one that is correct, the one you used. Commented Jan 28, 2016 at 15:15

2 Answers 2

1

You could use this array formula:

=IFERROR(INDEX($L$19:$L$22,MATCH(1,IF(($I$19:$I$22 = A2)*($J$19:$J$22 = B2)*($K$19:$K$22 = C2),1,0),0)),"")

It is an array formula and must be confirmed with Ctrl-Shift-Enter. Put in D2 and confirm with Ctrl-Shift-Enter. Then Copy down the desired rows.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

1

Use the AGGREGATE function for a quick three column match.

In D2 as,

=IFERROR(INDEX(L$19:L$22, AGGREGATE(15, 6, ROW($1:$4)/((I$19:I$22=A2)*(J$19:J$22=B2)*(K$19:K$22=C2)), 1)), "")

Fill down as necessary. The IFERROR function takes care of non-matches.

      aggregate_three_column_match

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.