ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   autofill worksheet references? (https://www.excelbanter.com/excel-worksheet-functions/86616-autofill-worksheet-references.html)

nihad

autofill worksheet references?
 

I am using a vlookup fomula in one worksheet whick looks up the data for
each month....Jan, Feb, March... are the column headings. It looks up
values in another workbook, with worksheets for each month...Jan, Feb,
March...are the worksheet names. Is there a way to autofill the
vlookup formulas to change to avoid retyping the Month reference.?

Thanks


--
nihad
------------------------------------------------------------------------
nihad's Profile: http://www.excelforum.com/member.php...o&userid=30285
View this thread: http://www.excelforum.com/showthread...hreadid=538476


Kevin Vaughn

autofill worksheet references?
 
Example: sheet1 looks like this:
Jan Feb Mar
foo Janfoo Febfoo Marfoo
bar Janbar Febbar Marbar
foobar Janfoobar Febfoobar Marfoobar

Spreadsheet Jan looks like (extrapolate for spreadsheets Feb and Mar):

foo Janfoo
bar Janbar
foobar Janfoobar

Formula in sheet1:
=VLOOKUP($A2,INDIRECT("'" & B$1 & "'!$A$2:$B$4"),2,FALSE)
--
Kevin Vaughn


"nihad" wrote:


I am using a vlookup fomula in one worksheet whick looks up the data for
each month....Jan, Feb, March... are the column headings. It looks up
values in another workbook, with worksheets for each month...Jan, Feb,
March...are the worksheet names. Is there a way to autofill the
vlookup formulas to change to avoid retyping the Month reference.?

Thanks


--
nihad
------------------------------------------------------------------------
nihad's Profile: http://www.excelforum.com/member.php...o&userid=30285
View this thread: http://www.excelforum.com/showthread...hreadid=538476




All times are GMT +1. The time now is 01:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com