Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-18-2016, 12:40 PM
jpreeshl jpreeshl is offline copy a cell from 1 file to another when data changes Windows 10 copy a cell from 1 file to another when data changes Office 2007
Novice
copy a cell from 1 file to another when data changes
 
Join Date: Jan 2016
Posts: 8
jpreeshl is on a distinguished road
Default copy a cell from 1 file to another when data changes


I have an annual income statement that I would like to copy data to a new file every year. Every year the new file name is for the previous year(2015).
This file was built in 2015 with the data coming from the 2014 file name.
2014 2013

$58,379 $55,130
11 23
58,390 55,153

12,601 12,525
1,676 3,719
For the new file(2015) I want to copy data from column 1(2014) to column 2(2013) in the new file. The problem I have is every year the file name will change by one number. This formula works for this year but won't copy right for the next year, =[2014.xlsx]Income!$E11
Is there some way to get the file name from the date at the top of my column? This way I would just have to change the date in one spot.
Reply With Quote
  #2  
Old 01-19-2016, 08:13 PM
macropod's Avatar
macropod macropod is offline copy a cell from 1 file to another when data changes Windows 7 64bit copy a cell from 1 file to another when data changes Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Although an INDIRECT function could be used to generate the required reference, that function won't work with a reference to a closed workbook. The best solution for you would probably be to use Find/Replace to update the references each year. Alternatively, you might consider having all years in the same workbook. Although you could have each year in a separate worksheet on that workbook, the best long-term approach for data aggregation and analysis is to have all the data on a single worksheet. Formulae can be used to generate queries for any nominated period from a multi-year worksheet.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 01-19-2016, 08:35 PM
jpreeshl jpreeshl is offline copy a cell from 1 file to another when data changes Windows 10 copy a cell from 1 file to another when data changes Office 2007
Novice
copy a cell from 1 file to another when data changes
 
Join Date: Jan 2016
Posts: 8
jpreeshl is on a distinguished road
Default

There are 7 sheets in each workbook. That is why I save it in a new file every year.
Reply With Quote
  #4  
Old 01-19-2016, 08:50 PM
macropod's Avatar
macropod macropod is offline copy a cell from 1 file to another when data changes Windows 7 64bit copy a cell from 1 file to another when data changes Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The number of analysis sheets is of no consequence; it's how they're configured with formulae, etc. to reference the data sheet that matters. Correctly done, you might at most need a single cell somewhere to set the year value (or two cells to set a date range) for all the analysis sheets.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 01-20-2016, 08:56 AM
jpreeshl jpreeshl is offline copy a cell from 1 file to another when data changes Windows 10 copy a cell from 1 file to another when data changes Office 2007
Novice
copy a cell from 1 file to another when data changes
 
Join Date: Jan 2016
Posts: 8
jpreeshl is on a distinguished road
Default

I appreciate your responses macropod but they don't give me any kind of solution.
Reply With Quote
  #6  
Old 01-20-2016, 09:06 AM
macropod's Avatar
macropod macropod is offline copy a cell from 1 file to another when data changes Windows 7 64bit copy a cell from 1 file to another when data changes Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

I have given you two:
• An annual Find & Replace; or
• Consolidate the data into a single workbook.
The latter is the better long-term solution.

You're free to ignore the advice, but kindly don't say the answers "don't give me any kind of solution" just because what you're offered isn't exactly what you want. Wanting something doesn't automatically mean it can be done in the way you want it.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy calendar to outlook data file Alpas83 Outlook 0 05-04-2015 10:31 AM
copy a cell from 1 file to another when data changes Copy matching data from one report cell to another cell report mbesspiata Excel 9 01-15-2015 01:49 PM
copy data from outlook attached excel file into a local one s_samira_21 Outlook 4 09-17-2014 11:46 PM
copy a cell from 1 file to another when data changes How to copy automatically data from Excel file to Word file? fuchsd Word 6 10-25-2011 05:52 AM
Copy all comments & cell contents (i.e. data) to word? IanM Excel 0 07-03-2010 11:14 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft