VLookup, Choose, etc.

Chris H

New Member
Joined
Sep 14, 2006
Messages
2
I am working with a financial spreadsheet that has 36 columns off of the print range (one for each month for the past 3 years). With very short notice I will need to retrieve the data for three consecutive months (columns). Once I decide on the column I need (i.e. Jan of 2005) I would also like to pull the data from the 2 previous columns (i.e. Nov of 2004 and Dec. of 2004).

Can someone please suggest a formula I can use. Keep in mind that I would put the formula in the 3 columns I am creating.

Thanks in advance.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Ged

New Member
Joined
Feb 17, 2003
Messages
30
If you numbered the columns you could possibly use a lookup table (VLOOKUP or HLOOKUP) using column number and two previous ones to select the required columns.
For example, if you require month 20, you can make a cell equal to 20 and in the previous two months make the lookup return the values for that cell-1 and cell-2.
Are the columns all fixed length? If not, you might need to be careful with the LOOKUP table as they sometimes get upset by blank cells.
 

Forum statistics

Threads
1,137,337
Messages
5,680,900
Members
419,937
Latest member
Talic

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
Top