+ Reply to Thread
Results 1 to 3 of 3

Need to keep historical data on one sheet from another that changes weekly

  1. #1
    Registered User
    Join Date
    06-13-2017
    Location
    NJ
    MS-Off Ver
    2010 & 2016
    Posts
    17

    Question Need to keep historical data on one sheet from another that changes weekly

    Hello everyone,
    I'm trying to find a way to keep historical data from one worksheet (named Staffing summary) on another (named Historical). The problem is, the data on the 'Staffing summary' sheet will change every friday. So when I change the date on the 'Staffing summary' sheet (cell S1), my data on the 'Historical' sheet for the previous dates disappears. I need it to stay put and record the new data on the next row.

    I've only entered formulas on 'Historical' sheet on a few cells (B5-E5 and B6-E6) because there are a lot of formulas to enter and I did not want to spend a ton of time entering formulas; if I will not be able to retain the historical data I need.

    So, most of the information showing right now on 'Historical' sheet is pulled from 'Staffing summary' sheet with the date on cell S1 as 1/18/19, but when I change that date to 1/25/19, the data goes to the new row and deletes from the previous row.

    I do not know how to do codes or VBA's or anything more complicated that the formulas you see on any of the tabs of the workbook attached. So if there is a simple solution, I will probably be able to follow your suggestions.

    Thank you in advance for any assistance or suggestions.

    Vanessa
    PS.: You will see some ref errors on the 'Staffing summary' sheet, my attachment was too large, I deleted a few tabls to be able to attach it.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Need to keep historical data on one sheet from another that changes weekly

    There is no formula way to do what you want. Any formulas would reference the cells that change each week, and would therefor show the latest data.

    The only ways around this, that I can see, would be to use VBA, or to add each new week's data below last week's. If you added a column for data, then we could probably come up with some formulas that would test the (long-and-growing) list, to pull into the summary you have.

    On a side note, this formula will pull the info you want, based on the date and the City (?), and can me copied across (and maybe down) as needed. You will just have to change the reference to the City, when that changes (bolded)...
    =INDEX('STAFFING SUMMARY'!$B:$M,MATCH(HISTORICAL!B$2,'STAFFING SUMMARY'!$A:$A,0),MATCH(HISTORICAL!$B1,'STAFFING SUMMARY'!$B$1:$M$1,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-13-2017
    Location
    NJ
    MS-Off Ver
    2010 & 2016
    Posts
    17

    Re: Need to keep historical data on one sheet from another that changes weekly

    FDibbins, thanks for the info.
    I really don't understand VBA, I'm still trying to learn the basics.
    For now, I came up with a temporary solution.
    I created on a row with the formulas that pulls the info from the 'Staffing Summary' sheet, then I just copy/paste values only on the next row, the following week, I repeat the process, thus creating the historical tracking I need. It's not exactly what I wanted, but it's still a fairly simple way to get the info I need.
    I will keep working on it.
    Again, thanks for trying to help.
    Vanessa

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Copy data from daily sheet to weekly sheet
    By MeStillLearming in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2017, 11:56 AM
  2. [SOLVED] Converting daily data into weekly and making the weekly number a cumulative return
    By Duchess1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-28-2015, 10:23 AM
  3. VBA code to move data from a entry sheet to a historical sheet by date
    By rlh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-17-2014, 07:15 PM
  4. Copy Data from Multiple weekly Sheet to Monthly sheet and filter the data
    By santhoshjoseph in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-06-2012, 07:07 AM
  5. Easiest way to Copy/Paste data from Recurring Form to an Historical Data Sheet
    By willy91785 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-15-2010, 02:11 PM
  6. copying new data on a w'sheet without deleting historical data, and recalculating
    By Pasha81 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-19-2009, 04:47 AM
  7. Weekly input to a data sheet
    By EatSpork in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-20-2007, 12:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1