Excel: select column in range by column index - no vba -


i have cell a1, , below 4 columns. cell a1 right contains number 2.

2   |    |  b   |  c   | selected | |  12  |  44  |  88  | 44       | |  43  |  55  |  99  | 55       | |  54  |  66  |  11  | 66       | 

which formula should put 'selected' column display there values of second column? a1 cell control values displayed there. basically, i'm looking similar functionality vlookup, except there no lookup , takes range a4:c4 , selectes column number a1.

you can use index() that. let's 12, 44 , 88 in columns a, b , c respectively, , on row 4.

in first cell under selected, can put this:

=index(a4:c4, 0, a$1) 

and can drag down remaining rows.

index takes whole row (hence 0) , column value in a$1 range a4:c4.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -