[TABLE="width: 500"]
<tbody>[TR]
[TD]2018-08[/TD]
[TD]1 Aug 18[/TD]
[TD]31 Aug 18[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-09[/TD]
[TD]1 Sep 18[/TD]
[TD]30 Sep 18[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-10[/TD]
[TD]1 Oct 18[/TD]
[TD]31 Oct 18[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please see table above.
If I have a date like 9/15/18, I want it to run a search against this table, then return the corresponding result in col A, ie 2018-09. At the moment it's a looong list of if statements, which I'll fix. I would've expected an index match to fix it but when I do that, for some reason I get 2018-08 as the answer, instead of 2018-09. I've fixed that by entering
<tbody>[TR]
[TD]2018-08[/TD]
[TD]1 Aug 18[/TD]
[TD]31 Aug 18[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-09[/TD]
[TD]1 Sep 18[/TD]
[TD]30 Sep 18[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-10[/TD]
[TD]1 Oct 18[/TD]
[TD]31 Oct 18[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please see table above.
If I have a date like 9/15/18, I want it to run a search against this table, then return the corresponding result in col A, ie 2018-09. At the moment it's a looong list of if statements, which I'll fix. I would've expected an index match to fix it but when I do that, for some reason I get 2018-08 as the answer, instead of 2018-09. I've fixed that by entering
But why do I have to type in the +1 ?INDEX(A1:A3,MATCH(lookupfigure,C1:C3)+1)