-1

I have 8 combinations o triplets, each with a name attached to them. For example:

Category a = 1,2,3

Category b = 3,1,2

etc...

Each value in the triplet is either 1, 2 or 3.

I need to be able to input 3 values (also 1,2 or 3) into 3 cells, and I need the corresponding category to be displayed next to them (based on the 8 hard coded variants).

For example: if I were to enter 3 1 2 into the three cells, "Category b" would show up in the 4th cell.

Here is a screenshot of what I need:

enter image description here

The yellow cells are hard coded.

I have a long list of green cells.

I need to calculate the category in the blue cells based on the green cells.

Community
  • 1
  • 1
Cellydy
  • 1,365
  • 3
  • 15
  • 27

1 Answers1

2

use this in E2:

 =INDEX(G:G,AGGREGATE(15,6,ROW($G$2:$G$9)/(($H$2:$H$9=B2)*($I$2:$I$9=C2)*($J$2:$J$9=D2)),1))

Then copy down

enter image description here

Scott Craner
  • 148,073
  • 10
  • 49
  • 81