English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am using this formula to get a particular data from old book [=SUM(('G:\[november2007.xlsx]Sheet1'!W13))]. But every month need to change”month name” to get data from previous month. So Instead of this, I applied this in “CHOOSE FORMULA” as (=choose(a1,”=SUM(('G:\[december2007.xlsx]Sheet1'!W13))”), (=choose(a1,”=SUM(('G:\[january2008.xlsx]Sheet1'!W13))”), ………….. and so on for all 12 months. When I applied this formula, it will not working. How can I rectify the mistake or is there any alternative formula. Please help me. Thank you

2007-12-23 23:23:22 · 3 answers · asked by saba 1 in Computers & Internet Software

3 answers

Assume your workbook is made based on previous month workbook
To solve your problem when you start a new workbook every new month is, say in Decemeber 2007
1. open November2007.xlsx, save it as December2007.xlsx
2. ctrl+a to select the whole worksheet
3. ctrl+h to get replace window, enter [October2007.xlsx] in Find what: box and [November2007.xlsx] in Replace with: box, hit replace all button.
4. save the workbook again
Hope this helps.

2007-12-27 18:12:56 · answer #1 · answered by AQuestionMark 7 · 0 0

Try this trick:

1. MANUALLY make a copy of the latest file and rename it to LastMonth2007.xlsx.

2. Use "LastMonth..." instead in your formula.

Then, repeat #1 each month, before running your next update.

2007-12-23 23:37:30 · answer #2 · answered by ELfaGeek 7 · 0 0

try the indirect function
=IF(OR(A2="",A3="",A4=""),"",INDIRECT("'[" & A2 & ".xls]" & A3 & "'!" & A4))
place the workbook name in A2
sheet name in A3
cell address in A4
here's more info on indirect
http://www.contextures.com/xlFunctions05.html#RefWkbk

2007-12-24 17:16:57 · answer #3 · answered by David M 6 · 0 0

fedest.com, questions and answers