Strange Vlookup Behavior

bencar

Banned user
Joined
Jun 8, 2016
Messages
149
Hi guys,

This vlookup problem has me scratching my head. For the following table I use the vlookup formula below to lookup up book title, author and price in different cells at the same time. It includes a COLUMNS function to paste it across cells to return book title, author and price. Whats so strange about it is, I can enter COLUMNS($Z:Z) instead of COLUMNS($A:A) and I still get the right answers. Why does it do this if column Z isn't in the lookup table but works as good as column A which is?

=VLOOKUP($B13,$A$2:$E$11,COLUMNS($A:A)+1,0)


ABCDE
Book TitleAuthorPriceType
A Game of ThronesGeorge R.R.$19.77
Go to SleepAdam Mansbach$8.22
A Dance with DragonsGeorge R.R.$18.81
The Hunger GamesSuzanne Collins$4.94
The Original ArgumentGlenn Beck$7.99
Heaven is for RealTodd Burpo$9.34
UnbrokenLaura Hillenbrand$13.99
Smokin' SeventeenJanet Evanovich$15.21
In the Garden of BeastsErik Larson$13.78
Catching FireSuzanne Collins$8.97

<tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]Number[/TD]

[TD="align: center"]2[/TD]
[TD="align: center"]1[/TD]

[TD="align: right"]hardcover[/TD]

[TD="align: center"]3[/TD]
[TD="align: center"]2[/TD]

[TD="align: right"]paperback[/TD]

[TD="align: center"]4[/TD]
[TD="align: center"]3[/TD]

[TD="align: right"]paperback[/TD]

[TD="align: center"]5[/TD]
[TD="align: center"]4[/TD]

[TD="align: right"]paperback[/TD]

[TD="align: center"]6[/TD]
[TD="align: center"]5[/TD]

[TD="align: right"]hardcover[/TD]

[TD="align: center"]7[/TD]
[TD="align: center"]6[/TD]

[TD="align: right"]paperback[/TD]

[TD="align: center"]8[/TD]
[TD="align: center"]7[/TD]

[TD="align: right"]hardcover[/TD]

[TD="align: center"]9[/TD]
[TD="align: center"]8[/TD]

[TD="align: right"]paperback[/TD]

[TD="align: center"]10[/TD]
[TD="align: center"]9[/TD]

[TD="align: right"]paperback[/TD]

[TD="align: center"]11[/TD]
[TD="align: center"]10[/TD]

[TD="align: right"]hardcover[/TD]

</tbody>
Sheet4
 
Last edited:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I can enter COLUMNS($Z:Z) instead of COLUMNS($A:A) and I still get the right answers. Why does it do this ..
=VLOOKUP($B13,$A$2:$E$11,COLUMNS($A:A)+1,0)
Because COLUMNS($A:A) returns 1 and COLUMNS($Z:Z) also returns 1
If you drag it across one column..
COLUMNS($A:B) returns 2 and COLUMNS($Z:AA) returns 2
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top