roundaboutrc
New Member
- Joined
- Jul 24, 2019
- Messages
- 5
Hello everyone,
Not sure if this is possible, but I think to think "All Things are Possible", so I figured I would ask. I have some data where the first column is category then every column after that is id's for that category.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Cat 1[/TD]
[TD]1000[/TD]
[TD]1200[/TD]
[TD]1450[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Cat 2[/TD]
[TD]1002[/TD]
[TD]1305[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Cat 3[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Cat 4[/TD]
[TD]1503[/TD]
[TD]1832[/TD]
[TD]1900[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Cat 5[/TD]
[TD]1235[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I am looking for a formula to lookup an ID say in this case 1832 and return Cat 4, where the ID could be located anywhere from B1:D5. I have tried Index and Match [=Index(A1:A5,Match(1832,B1:D5,0))], but it doesn't like the B1:D5 it appears Match can only look at a single row or column.
Not sure if this is possible, but I think to think "All Things are Possible", so I figured I would ask. I have some data where the first column is category then every column after that is id's for that category.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Cat 1[/TD]
[TD]1000[/TD]
[TD]1200[/TD]
[TD]1450[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Cat 2[/TD]
[TD]1002[/TD]
[TD]1305[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Cat 3[/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Cat 4[/TD]
[TD]1503[/TD]
[TD]1832[/TD]
[TD]1900[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Cat 5[/TD]
[TD]1235[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I am looking for a formula to lookup an ID say in this case 1832 and return Cat 4, where the ID could be located anywhere from B1:D5. I have tried Index and Match [=Index(A1:A5,Match(1832,B1:D5,0))], but it doesn't like the B1:D5 it appears Match can only look at a single row or column.