Vlookup Problem: How to use on table with multiple rows?

driverman13

New Member
Joined
Apr 12, 2011
Messages
4
Hi,

I have a table with yearly data from 1927-2010 for 96 different stocks (Date and stocks are the headings horizontally along the top, data for each is in the column below the heading).

I have to change this table to monthly data (i.e. 1927/01,1927/02,..., 2010/12). For each month of the same year we use the data from the year in the original table (e.g. 1927/01-1927/12 all have to have the same value as our original 1927).

I have created a new blank table with dates from 1927/01-2010/12, a column for my vlookup 'lookup_value', and the 96 stocks. In the 'lookup_value' column i used =VALUE(LEFT(A88,4)) to fill it with the year i.e. 2010/12 turns into 2010.

Currently I am using the following vlookup command, but this only allows me to use it for the first stock in my table:

=VLOOKUP(B88,$A$2:$B$85,2,FALSE)

All columns are being filled with the stock1 values, how can I get stock 2 to fill with stock 2 values e.x.?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,224,537
Messages
6,179,405
Members
452,911
Latest member
a_barila

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