If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Linking daily sheets?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-24-06, 10:42
sls-sls sls-sls is offline
Registered User
 
Join Date: Aug 2006
Posts: 3
Question Linking daily sheets?

I have a spreadsheet I'm using to track the daily sales at a small store. I would like to open it, enter all the sales for the day, and have a running 'year to date' sales total at the end. So it needs to take the YTD total from yesterdays sheet and add it to todays total. I save each daily sheet under 'save as (whatever todays date is)'. I know how to link two sheets, but how do I tell it to take the total from the last sheet made, since the spreadsheet name changes each day?
Thanks,
sls-sls
Reply With Quote
  #2 (permalink)  
Old 08-24-06, 17:03
Amazing_Spiderman Amazing_Spiderman is offline
Registered User
 
Join Date: Aug 2006
Posts: 21
How much VBA experience do you have?
Reply With Quote
  #3 (permalink)  
Old 08-24-06, 19:33
sls-sls sls-sls is offline
Registered User
 
Join Date: Aug 2006
Posts: 3
I consider myself to be fairly computer literate, but I have no experiance with VBA. I don't know if I've ever even heard of it before.
Reply With Quote
  #4 (permalink)  
Old 09-24-06, 15:41
Amazing_Spiderman Amazing_Spiderman is offline
Registered User
 
Join Date: Aug 2006
Posts: 21
Sorry for the late reply

VBA is a programming language to help simplify tedious tasks in excel. The contains something that will do without vba code. Let me know if this is suitable an easier way would be to automate it through vba upon opening the YTD sales sheet or by a click of a button.
Attached Files
File Type: zip YTD Sales.zip (10.0 KB, 23 views)
Reply With Quote
  #5 (permalink)  
Old 09-25-06, 17:34
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Howdy. YOu can do with without VBA, if I understand correctly, and if they are setup exactly the same.

Insert two worksheets, one labeled First, the other Last. (Do not put anything on either. Then move all the previous day worksheets between the two. The setup a Summary worksheet, that is identical to the day worksheet, and move the Summary worksheet outside the First/Last combination. On the Summary worksheet, you can use a formula for instance, Totals (assuming Totals for each day worksheet is in same cell)

=SUM(First:Last!C2)

And so on for any other summary you need.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #6 (permalink)  
Old 09-25-06, 17:56
Amazing_Spiderman Amazing_Spiderman is offline
Registered User
 
Join Date: Aug 2006
Posts: 21
Quote:
Originally Posted by shades
=SUM(First:Last!C2)
This will also work nicely.If everything is in the same workbook.
Reply With Quote
  #7 (permalink)  
Old 09-26-06, 10:40
sls-sls sls-sls is offline
Registered User
 
Join Date: Aug 2006
Posts: 3
Thanks for the help guys, everything seems to be working nicely. Life is now good again! sls-sls
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On