Hello,
I am trying to extract a value from a list that has a data range and a parameter (ie color)
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1-Jan-19[/TD]
[TD]28-Feb-19[/TD]
[TD]Red[/TD]
[TD]Value 1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1-Mar-19[/TD]
[TD]31-Mar-19[/TD]
[TD]Red[/TD]
[TD]Value 2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1-Jan-19[/TD]
[TD]31-Mar-19[/TD]
[TD]Blue[/TD]
[TD]Value 3[/TD]
[/TR]
</tbody>[/TABLE]
Considering I am entering the color under cell F6 and the date under cell G6, I am using the following formula but not getting the correct answer:
{=INDEX($D$1:$D$3,MATCH(1,IF(G6>=$A$1:$A$3,IF(G6<=$B$1:$B$3,IF(F6=$C$1:$C$3,1)),0)))}
Your help is really appreciated!
I am trying to extract a value from a list that has a data range and a parameter (ie color)
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1-Jan-19[/TD]
[TD]28-Feb-19[/TD]
[TD]Red[/TD]
[TD]Value 1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1-Mar-19[/TD]
[TD]31-Mar-19[/TD]
[TD]Red[/TD]
[TD]Value 2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1-Jan-19[/TD]
[TD]31-Mar-19[/TD]
[TD]Blue[/TD]
[TD]Value 3[/TD]
[/TR]
</tbody>[/TABLE]
Considering I am entering the color under cell F6 and the date under cell G6, I am using the following formula but not getting the correct answer:
{=INDEX($D$1:$D$3,MATCH(1,IF(G6>=$A$1:$A$3,IF(G6<=$B$1:$B$3,IF(F6=$C$1:$C$3,1)),0)))}
Your help is really appreciated!