crazytalker90
New Member
- Joined
- Sep 5, 2013
- Messages
- 4
Hello! I have been trying to do this for many days now, and so finally decided to join this forum and ask for help.
I am trying to get the column number of a cell that meets both vertical and horizontal criteria within a matrix.
Specifically I am trying to produce a formula that will give me the column number of a column that both includes the number 1 and has a specific REF #
Example:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]REF#[/TD]
[TD]1/4/13[/TD]
[TD]12/4/12[/TD]
[TD]7/18/13[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
e.g. For an input of the REF# 3, I would like it to output 3 (3rd column is where REF# 3 has a 1 in the matrix)
The reason I am looking to do this is to produce an OFFSET function that will utilize this column number to give me the heading title (Date) for different REF #s corresponding to where the number 1 is located.
Any tips will help! I've tried using combinations of IF, OR, AND, SUMPRODUCT, VLOOKUP, HLOOKUP, OFFSET, INDEX, COLUMN, and MATCH but can't seem to quite figure it out
~Charlie
I am trying to get the column number of a cell that meets both vertical and horizontal criteria within a matrix.
Specifically I am trying to produce a formula that will give me the column number of a column that both includes the number 1 and has a specific REF #
Example:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]REF#[/TD]
[TD]1/4/13[/TD]
[TD]12/4/12[/TD]
[TD]7/18/13[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
e.g. For an input of the REF# 3, I would like it to output 3 (3rd column is where REF# 3 has a 1 in the matrix)
The reason I am looking to do this is to produce an OFFSET function that will utilize this column number to give me the heading title (Date) for different REF #s corresponding to where the number 1 is located.
Any tips will help! I've tried using combinations of IF, OR, AND, SUMPRODUCT, VLOOKUP, HLOOKUP, OFFSET, INDEX, COLUMN, and MATCH but can't seem to quite figure it out
~Charlie