Hi
I am trying to write a formula that returns the date from a row that corresponds to the first cell in another row that is the first zero. The following example will help explain what I am mean.
[TABLE="width: 15"]
<tbody>[TR]
[TD]Dates
[/TD]
[TD]Column 1
[/TD]
[TD]Column 2
[/TD]
[TD]Column 3
[/TD]
[TD]Column 4
[/TD]
[/TR]
[TR]
[TD]Jan 1
[/TD]
[TD]4
[/TD]
[TD]1
[/TD]
[TD]9
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]Feb 1
[/TD]
[TD]5
[/TD]
[TD]0
[/TD]
[TD]3
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]Mar 1
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]7
[/TD]
[TD]0
[/TD]
[/TR]
[TR]
[TD]Apr 1
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[/TR]
</tbody>[/TABLE]
The expected results are as follows:
Column 1 - Mar 1
Column 2 - Feb 1
Column 3 - Apr 1
Column 4 - Mar 1
The values in columns 1 to 4 are not blank. There is a formula that returns a calculated value. I only care if the value is zero.
I thought that this match/index formula did the job
=INDEX($A$8:$A$184,MATCH(TRUE,INDEX((C8:C184=0),0,0)))
but it is always returning the last value (Apr 1).
Thanks in advance for your help.
I am trying to write a formula that returns the date from a row that corresponds to the first cell in another row that is the first zero. The following example will help explain what I am mean.
[TABLE="width: 15"]
<tbody>[TR]
[TD]Dates
[/TD]
[TD]Column 1
[/TD]
[TD]Column 2
[/TD]
[TD]Column 3
[/TD]
[TD]Column 4
[/TD]
[/TR]
[TR]
[TD]Jan 1
[/TD]
[TD]4
[/TD]
[TD]1
[/TD]
[TD]9
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]Feb 1
[/TD]
[TD]5
[/TD]
[TD]0
[/TD]
[TD]3
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]Mar 1
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]7
[/TD]
[TD]0
[/TD]
[/TR]
[TR]
[TD]Apr 1
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[/TR]
</tbody>[/TABLE]
The expected results are as follows:
Column 1 - Mar 1
Column 2 - Feb 1
Column 3 - Apr 1
Column 4 - Mar 1
The values in columns 1 to 4 are not blank. There is a formula that returns a calculated value. I only care if the value is zero.
I thought that this match/index formula did the job
=INDEX($A$8:$A$184,MATCH(TRUE,INDEX((C8:C184=0),0,0)))
but it is always returning the last value (Apr 1).
Thanks in advance for your help.