Previous in Forum: Creating Network to Download FSX on to Computer with Broken CD   Next in Forum: Inspection Software for Railway Infrastructure
Close
Close
Close
5 comments
Rate Comments: Nested
Associate

Join Date: Feb 2010
Posts: 35

Clues to Entering Repeating Data in Excel by Date

08/29/2011 9:05 AM

Ol' retired cop here. Working the post-retirement job, and I've got a little assignment here. Been looking around CR4 for some possible help, as well as on the web, haven't found it yet. So here goes. I'm putting information into an Excel sheet; it's two values that update by date. I need to write a sheet that grabs those two values each day when they get updated in their host sheet and copy them into my sheet by day. You know, start with Monday's data, copy into my sheet's 1st Monday column, then capture the same two (but updated) numbers Tuesday, put it into the Tuesday column, and so on.

Thanks to all of you for anything you can do for me. C.C.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru

Join Date: Jul 2008
Posts: 1688
Good Answers: 145
#1

Re: Clues to Entering Repeating Data in Excel by Date

08/29/2011 2:20 PM

Someone else will probably help with an example. Here are a few quick suggestions.

1) Google various combinations of "Excel", "macro", "VBA", and "copy cells". You will probably find something useful pretty quickly. As I recall copying from sheet to sheet does not usually show up in the first few Google hits. Keep searching and you will find them.

2) Excel has a feature called "Macro Recorder". It will "write" or "record" for you the VBA (Visual Basic for Applications) code that matches what you do with your mouse. You can both learn a lot and create useful macros with it.

I can't tell if you are asking for a way to automatically have the code run at a specified time each day. If you are then that requirement is above me in Windows. Linux has "cron" and it is an easy way to automatically run things. In Windows I think you have "services" and I never learned how to set them up.

__________________
Few things limit our potential as much as knowing answers and setting aside questions.
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#2
In reply to #1

Re: Clues to Entering Repeating Data in Excel by Date

08/29/2011 7:44 PM

Re: timed operations, in XP "Control Panel -> Scheduled Tasks" does the job. No idea about Vista or 7.

Re: the Excel problem - I'm not clear about what's needed.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson Hobbies - RC Aircraft - New Member

Join Date: Sep 2006
Location: Clive, Alberta, Canada
Posts: 5916
Good Answers: 204
#3

Re: Clues to Entering Repeating Data in Excel by Date

08/29/2011 10:31 PM

I've sent you a PM with my email... if you want to send a sample of your sheet, I'll write you a macro... I'm using Excel 2003... but it should still work with newer versions.

Chris

Register to Reply Score 1 for Good Answer
Associate

Join Date: Feb 2010
Posts: 35
#4

Re: Clues to Entering Repeating Data in Excel by Date

09/01/2011 10:11 AM

I'll clarify what's going on. This company I'm working for, there is an Excel spreadsheet which is used, among many. There are 2 specific values I need to collect each day. One is a dollar amount, one a quantity. These two numbers are in one cell each, lets say row 1, column 1 for the $s and row 1, column 2 for the quantity.

These values update each day. So for Sept 1, we might have $1000 and 5, and then tomorrow, this could be $1500 and 15.

So, I need to collect these each day. I need to, for example catch Sept 1 info in row 1, columns 1 and 2 in my spreadsheet, Sept 2 in row 2, columns 1 and 2, and so on.

Because I have a lot of other numbers to deal with, and other numbers to calculate based in part on these 2 numbers, and many other, I would like to automate this colection of numbers. I have most of my other collection worked out. Since these two are updated in the same cells each day, this makes it a little harder.

Chris, I'll reply when I get caught up with some things. I thank all of you for your responses. C.C.

Register to Reply
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson Hobbies - RC Aircraft - New Member

Join Date: Sep 2006
Location: Clive, Alberta, Canada
Posts: 5916
Good Answers: 204
#5
In reply to #4

Re: Clues to Entering Repeating Data in Excel by Date

09/01/2011 9:12 PM

what you are describing is not difficult in vba... and I can and have done many of that type of thing... but it is important to know the full context in order to give a full answer, and provide full value for you.. so that is why I asked for the sample sheets...

cheers,

Chris

Register to Reply
Register to Reply 5 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

BruceFlorida (1); chrisg288 (2); CrimeCrusher (1); JohnDG (1)

Previous in Forum: Creating Network to Download FSX on to Computer with Broken CD   Next in Forum: Inspection Software for Railway Infrastructure

Advertisement