Vlookup using array of column numbers

Mohsin110

New Member
Joined
Aug 26, 2023
Messages
24
Office Version
  1. 2021
Platform
  1. Windows
I am trying to get values using vlookup by array of columns but it does not find all values,

Excel Formula:
=VLOOKUP($B$3,Freight2025!B2:F,{4,5},0)

It returns only the value of 4th column and the value of column No 5, 6 so on, is not returning.
but if I enter the number of one column (like No. 5 column only) the value returns correctly.

Code:
=VLOOKUP($B$3,Freight2025!B2:F,5,0)

Please help.

The table is below
 

Attachments

  • pic1.png
    pic1.png
    22.6 KB · Views: 7
May be something like this,
Excel Formula:
=XLOOKUP($B3, Freight2025!$B$2:$B$7, INDEX(Freight2025!C$2:$F$7, , {1,2}))
 
Upvote 0

Forum statistics

Threads
1,226,837
Messages
6,193,254
Members
453,784
Latest member
Chandni

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