Hello!
I need help on using the match function across multiple columns. Here is my example:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Capacities[/TD]
[TD]Angle[/TD]
[TD]Angle[/TD]
[TD]Angle[/TD]
[/TR]
[TR]
[TD]Width[/TD]
[TD]0 deg[/TD]
[TD]5 deg[/TD]
[TD]10 deg[/TD]
[/TR]
[TR]
[TD]32[/TD]
[TD]555
[/TD]
[TD]444[/TD]
[TD]333[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]433[/TD]
[TD]420[/TD]
[TD]290[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]306[/TD]
[TD]285[/TD]
[TD]222[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Capacity[/TD]
[TD]315[/TD]
[/TR]
[TR]
[TD]Angle[/TD]
[TD]10 deg[/TD]
[/TR]
</tbody>[/TABLE]
I want a cell to return the width: 32
I want to be able to specify the Column (Angle) and a Capacity value and return the Width that has the closest Capacity value greater than specified Capacity.
I know how to use the INDEX and MATCH functions together for a single column, but not on multiple columns.
A less elegant way is to use nested IF's like so:
=IF(ANGLE="0 deg",INDEX(A3:A5,MATCH(CAPACITY,B3:B5,-1)),IF(ANGLE="5 deg",INDEX(A3:A5,MATCH(CAPACITY,C3:C5,-1)),IF(ANGLE="10 deg",INDEX(A3:A5,MATCH(CAPACITY,D3:D5,-1)),"")))
I have a table with multiple columns and don't want to write an "IF" for each column. I want a formula to know use the MATCH function on the specified column.
Thank you!
I need help on using the match function across multiple columns. Here is my example:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Capacities[/TD]
[TD]Angle[/TD]
[TD]Angle[/TD]
[TD]Angle[/TD]
[/TR]
[TR]
[TD]Width[/TD]
[TD]0 deg[/TD]
[TD]5 deg[/TD]
[TD]10 deg[/TD]
[/TR]
[TR]
[TD]32[/TD]
[TD]555
[/TD]
[TD]444[/TD]
[TD]333[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]433[/TD]
[TD]420[/TD]
[TD]290[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]306[/TD]
[TD]285[/TD]
[TD]222[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Capacity[/TD]
[TD]315[/TD]
[/TR]
[TR]
[TD]Angle[/TD]
[TD]10 deg[/TD]
[/TR]
</tbody>[/TABLE]
I want a cell to return the width: 32
I want to be able to specify the Column (Angle) and a Capacity value and return the Width that has the closest Capacity value greater than specified Capacity.
I know how to use the INDEX and MATCH functions together for a single column, but not on multiple columns.
A less elegant way is to use nested IF's like so:
=IF(ANGLE="0 deg",INDEX(A3:A5,MATCH(CAPACITY,B3:B5,-1)),IF(ANGLE="5 deg",INDEX(A3:A5,MATCH(CAPACITY,C3:C5,-1)),IF(ANGLE="10 deg",INDEX(A3:A5,MATCH(CAPACITY,D3:D5,-1)),"")))
I have a table with multiple columns and don't want to write an "IF" for each column. I want a formula to know use the MATCH function on the specified column.
Thank you!