substitute for VLOOKUP??

Jaguar

New Member
Joined
Oct 22, 2004
Messages
3
Hi,

The VLOOKUP function is :

VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

In one sheet, I have a table which contains 31 columns (31 days in a month), and I need to enter the vlookup function in another sheet to lookup values based on the 31 columns.....I have to manually change the col_index_num for each column (ie .....2, 3,......31).

To change each formula for all 31 columns manually becomes a real pain!!.

Is there some other way I can do this ??

Thanks
Jaguar
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
It would be so much easier on you if you also specify the whole range of the lookup table including column headers, the sheet that houses that table, and even the cell which houses the lookup table.
 
Upvote 0
How many columns in your other sheet? Is it 31? and are they contiguous? If so try using the COLUMN() function with either a + or - a number in your VLOOKUP formula, that way you only have to write it once and copy across.
 
Upvote 0
Hi,

You could use the COLUMN function to give you the col_index_num

E.g if your first formula goes in column B you could have

COLUMN()-COLUMN($A$1)

as col_index_num.

An INDEX/MATCH combination with relative references in the INDEX range should also work.
 
Upvote 0

Forum statistics

Threads
1,203,378
Messages
6,055,092
Members
444,761
Latest member
lneuberger

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