![]() |
|
|
|||||||
| FlashChat | Actuarial Discussion | Preliminary Exams | CAS/SOA Exams | Cyberchat | Around the World | Suggestions |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Here's the deal:
I have two spreadsheets - report and data. The report needs to pull appropriate data from the data spreadsheet. The data spreadsheet has multiple worksheets (tabs), labelled numerically - 1, 2, 3, etc.). The report contains a column that includes the worksheet reference to data. Is there a way be able to write a formula so that I can just reference this column to pull from the correct worksheet? I tried using indirect, and it didn't work (assuming maybe it can't work outside a single sheet). Any suggestions? This is what I tried: Cell A1 contains the worksheet reference - B1 contains the cell in the data worksheet i'm looking to pull over. =indirect("'C:\Documents and Settings\username\Desktop\[data.xls]"&A1&"'!$B$1") |
|
#3
|
||||
|
||||
|
Quote:
Brad
__________________
Brad Gile, FSA, MAAA Affiliate Member of the CAS Dedicated Retired Actuary Spoiler: Spoiler: |
|
#4
|
||||
|
||||
|
You could use the GetValue function. However, it cannot be used in a worksheet formula. You could create a VBA routine to grab the values and then put the values in the desired cells.
HTH, RP
__________________
Surprisingly, not a mute. |
|
#5
|
|||
|
|||
|
Why do you want the workbook to be closed? If you want data from a workbook, what's wrong with having to have the workbook open? I've always thought of it as a nice feature. It forces you to know where your data is coming from.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|