orangebloss
Board Regular
- Joined
- Jun 5, 2013
- Messages
- 51
- Office Version
- 365
- Platform
- Windows
I'm trying to look up values based on three criteria - my gut is that this needs to be an array formula but I'm beggared if I can get it to work. My source table looks as follows:
[table="width: 500"]
[tr]
[td]Project[/td]
[td]Category[/td]
[td]1[/td]
[td]2[/td]
[td]3[/td]
[td]4[/td]
[td]5[/td]
[td]6[/td]
[/tr]
[tr]
[td]Project A[/td]
[td]Category A[/td]
[td]9[/td]
[td]4[/td]
[td]3[/td]
[td]6[/td]
[td]0[/td]
[td]2[/td]
[/tr]
[tr]
[td]Project A[/td]
[td]Category B[/td]
[td]7[/td]
[td]3[/td]
[td]2[/td]
[td]7[/td]
[td]5[/td]
[td]6[/td]
[/tr]
[tr]
[td]Project B[/td]
[td]Category A[/td]
[td]5[/td]
[td]4[/td]
[td]3[/td]
[td]9[/td]
[td]7[/td]
[td]8[/td]
[/tr]
[tr]
[td]Project B[/td]
[td]Category B[/td]
[td]9[/td]
[td]1[/td]
[td]8[/td]
[td]2[/td]
[td]7[/td]
[td]3[/td]
[/tr]
[/table]
My Results table looks at the source table and returns the values based on the Project and Category specified in other cells
[table="width: 500"]
[tr]
[td][/td]
[td]A[/td]
[td]B[/td]
[td]C[/td]
[td]D[/td]
[td]E[/td]
[/tr]
[tr]
[td]1[/td]
[td]Project B[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]2[/td]
[td]Category[/td]
[td]1[/td]
[td]2[/td]
[td]3[/td]
[td]4[/td]
[/tr]
[tr]
[td]3[/td]
[td]Category A[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]4[/td]
[td]Category B[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[/table]
Which should produce the following results
[table="width: 500"]
[tr]
[td][/td]
[td]A[/td]
[td]B[/td]
[td]C[/td]
[td]D[/td]
[td]E[/td]
[/tr]
[tr]
[td]1[/td]
[td]Project B[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]2[/td]
[td]Category[/td]
[td]1[/td]
[td]2[/td]
[td]3[/td]
[td]4[/td]
[/tr]
[tr]
[td]3[/td]
[td]Category A[/td]
[td]5[/td]
[td]4[/td]
[td]3[/td]
[td]9[/td]
[/tr]
[tr]
[td]4[/td]
[td]Category B[/td]
[td]9[/td]
[td]1[/td]
[td]8[/td]
[td]2[/td]
[/tr]
[/table]
Index Match Match doesn't seem to work (presumably as it's all columns?) Any assistance is much appreciated!!
Essentially if the Category, Project and month (values 1 to 4 etc) all match then return the value
Alternatively is there an alternative way to structure my source table?
[table="width: 500"]
[tr]
[td]Project[/td]
[td]Category[/td]
[td]1[/td]
[td]2[/td]
[td]3[/td]
[td]4[/td]
[td]5[/td]
[td]6[/td]
[/tr]
[tr]
[td]Project A[/td]
[td]Category A[/td]
[td]9[/td]
[td]4[/td]
[td]3[/td]
[td]6[/td]
[td]0[/td]
[td]2[/td]
[/tr]
[tr]
[td]Project A[/td]
[td]Category B[/td]
[td]7[/td]
[td]3[/td]
[td]2[/td]
[td]7[/td]
[td]5[/td]
[td]6[/td]
[/tr]
[tr]
[td]Project B[/td]
[td]Category A[/td]
[td]5[/td]
[td]4[/td]
[td]3[/td]
[td]9[/td]
[td]7[/td]
[td]8[/td]
[/tr]
[tr]
[td]Project B[/td]
[td]Category B[/td]
[td]9[/td]
[td]1[/td]
[td]8[/td]
[td]2[/td]
[td]7[/td]
[td]3[/td]
[/tr]
[/table]
My Results table looks at the source table and returns the values based on the Project and Category specified in other cells
[table="width: 500"]
[tr]
[td][/td]
[td]A[/td]
[td]B[/td]
[td]C[/td]
[td]D[/td]
[td]E[/td]
[/tr]
[tr]
[td]1[/td]
[td]Project B[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]2[/td]
[td]Category[/td]
[td]1[/td]
[td]2[/td]
[td]3[/td]
[td]4[/td]
[/tr]
[tr]
[td]3[/td]
[td]Category A[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]4[/td]
[td]Category B[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[/table]
Which should produce the following results
[table="width: 500"]
[tr]
[td][/td]
[td]A[/td]
[td]B[/td]
[td]C[/td]
[td]D[/td]
[td]E[/td]
[/tr]
[tr]
[td]1[/td]
[td]Project B[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]2[/td]
[td]Category[/td]
[td]1[/td]
[td]2[/td]
[td]3[/td]
[td]4[/td]
[/tr]
[tr]
[td]3[/td]
[td]Category A[/td]
[td]5[/td]
[td]4[/td]
[td]3[/td]
[td]9[/td]
[/tr]
[tr]
[td]4[/td]
[td]Category B[/td]
[td]9[/td]
[td]1[/td]
[td]8[/td]
[td]2[/td]
[/tr]
[/table]
Index Match Match doesn't seem to work (presumably as it's all columns?) Any assistance is much appreciated!!
Essentially if the Category, Project and month (values 1 to 4 etc) all match then return the value
Alternatively is there an alternative way to structure my source table?
Last edited: