Hi,
I'm using =VLOOKUP("Fiscal Period ",$A:$AB,COUNTA(1:1),0) to find the end of a row. The problem is sometimes Fiscal Period isn't in row 1:1. Is there away for me to reference what ever row reference Fiscal Period is in. e.g. If Fiscal Period was in row 5:5 my formula would be =VLOOKUP("Fiscal Period ",$A:$AB,COUNTA(5:5),0)
Below is a formula for returning the row reference but it's not working properly when I incert it into the main formula, e.g. =VLOOKUP("Fiscal Period ",$A:$AB,COUNTA(MATCH("Fiscal Period ",A:A,0)&":"&MATCH("Fiscal Period ",A:A,0)),0)
=MATCH("Fiscal Period ",A:A,0)&":"&MATCH("Fiscal Period ",A:A,0) This on it's own returns It returns 1:1.
[TABLE="width: 1921"]
<tbody>[TR]
[TD][/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[TD]f[/TD]
[TD]g[/TD]
[TD]h[/TD]
[TD]i[/TD]
[TD]j[/TD]
[TD]k[/TD]
[TD]l[/TD]
[TD]m[/TD]
[TD]n[/TD]
[TD]o[/TD]
[TD]p[/TD]
[TD]q[/TD]
[TD]r[/TD]
[TD]s[/TD]
[TD]t[/TD]
[TD]u[/TD]
[TD]v[/TD]
[TD]w[/TD]
[TD]x[/TD]
[TD]y[/TD]
[TD]z[/TD]
[TD]aa[/TD]
[TD]ab[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Fiscal Period[/TD]
[TD="align: right"]Dec-05[/TD]
[TD="align: right"]Dec-06[/TD]
[TD="align: right"]Dec-07[/TD]
[TD="align: right"]Dec-08[/TD]
[TD="align: right"]Dec-09[/TD]
[TD="align: right"]Sep-10[/TD]
[TD="align: right"]Sep-11[/TD]
[TD="align: right"]Sep-12[/TD]
[TD="align: right"]Sep-13[/TD]
[TD="align: right"]Sep-14[/TD]
[TD="align: right"]Dec-15[/TD]
[TD]TTM/current[/TD]
[TD][/TD]
[TD="align: right"]Mar-13[/TD]
[TD="align: right"]Jun-13[/TD]
[TD="align: right"]Sep-13[/TD]
[TD="align: right"]Dec-13[/TD]
[TD="align: right"]Mar-14[/TD]
[TD="align: right"]Jun-14[/TD]
[TD="align: right"]Sep-14[/TD]
[TD="align: right"]Mar-15[/TD]
[TD="align: right"]Jun-15[/TD]
[TD="align: right"]Sep-15[/TD]
[TD="align: right"]Dec-15[/TD]
[TD="align: right"]Mar-16[/TD]
[TD="align: right"]Jun-16[/TD]
[TD="align: right"]Sep-16[/TD]
[/TR]
</tbody>[/TABLE]
I'm using =VLOOKUP("Fiscal Period ",$A:$AB,COUNTA(1:1),0) to find the end of a row. The problem is sometimes Fiscal Period isn't in row 1:1. Is there away for me to reference what ever row reference Fiscal Period is in. e.g. If Fiscal Period was in row 5:5 my formula would be =VLOOKUP("Fiscal Period ",$A:$AB,COUNTA(5:5),0)
Below is a formula for returning the row reference but it's not working properly when I incert it into the main formula, e.g. =VLOOKUP("Fiscal Period ",$A:$AB,COUNTA(MATCH("Fiscal Period ",A:A,0)&":"&MATCH("Fiscal Period ",A:A,0)),0)
=MATCH("Fiscal Period ",A:A,0)&":"&MATCH("Fiscal Period ",A:A,0) This on it's own returns It returns 1:1.
[TABLE="width: 1921"]
<tbody>[TR]
[TD][/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[TD]f[/TD]
[TD]g[/TD]
[TD]h[/TD]
[TD]i[/TD]
[TD]j[/TD]
[TD]k[/TD]
[TD]l[/TD]
[TD]m[/TD]
[TD]n[/TD]
[TD]o[/TD]
[TD]p[/TD]
[TD]q[/TD]
[TD]r[/TD]
[TD]s[/TD]
[TD]t[/TD]
[TD]u[/TD]
[TD]v[/TD]
[TD]w[/TD]
[TD]x[/TD]
[TD]y[/TD]
[TD]z[/TD]
[TD]aa[/TD]
[TD]ab[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Fiscal Period[/TD]
[TD="align: right"]Dec-05[/TD]
[TD="align: right"]Dec-06[/TD]
[TD="align: right"]Dec-07[/TD]
[TD="align: right"]Dec-08[/TD]
[TD="align: right"]Dec-09[/TD]
[TD="align: right"]Sep-10[/TD]
[TD="align: right"]Sep-11[/TD]
[TD="align: right"]Sep-12[/TD]
[TD="align: right"]Sep-13[/TD]
[TD="align: right"]Sep-14[/TD]
[TD="align: right"]Dec-15[/TD]
[TD]TTM/current[/TD]
[TD][/TD]
[TD="align: right"]Mar-13[/TD]
[TD="align: right"]Jun-13[/TD]
[TD="align: right"]Sep-13[/TD]
[TD="align: right"]Dec-13[/TD]
[TD="align: right"]Mar-14[/TD]
[TD="align: right"]Jun-14[/TD]
[TD="align: right"]Sep-14[/TD]
[TD="align: right"]Mar-15[/TD]
[TD="align: right"]Jun-15[/TD]
[TD="align: right"]Sep-15[/TD]
[TD="align: right"]Dec-15[/TD]
[TD="align: right"]Mar-16[/TD]
[TD="align: right"]Jun-16[/TD]
[TD="align: right"]Sep-16[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: