How do I increment an Excel formula but with a condition?

Viewed 50

My excel formula is

=LOOKUP(G10,A1:A50,B1:B50)

What I like to do is increment G10, but not the next formula.

=LOOKUP(G11,A1:A50,B1:B50)
=LOOKUP(G12,A1:A50,B1:B50)
=LOOKUP(G13,A1:A50,B1:B50)

and so on.

2 Answers

try:

=ARRAYFORMULA(LOOKUP(G10:G13, A1:A50, B1:B50))

or:

=ARRAYFORMULA(LOOKUP(G10:G, A1:A50, B1:B50))
Related