+ Reply to Thread
Results 1 to 5 of 5

Formulas relate to last years dates, need to update to reflect this year's dates

  1. #1
    Registered User
    Join Date
    09-11-2013
    Location
    MD
    MS-Off Ver
    Excel 2007
    Posts
    5

    Formulas relate to last years dates, need to update to reflect this year's dates

    This file was created by my employer last year and has not been updated. I want to use a modified version this year for looking at student behaviors.

    On the first sheet is where the data is entered, on the second sheet it is then summarized by work week. The problem is, last school year started Monday August 27 and this school year started Monday August 26 so all the formulas are off by one column (and things are complicated by weeks crossing over two months).

    What's the best way to fix all the formulas so they pull the right data? I changed the week dates on the second sheet to what they should be.

    Thanks!
    Frequency Behavior Template .xlsx

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Formulas relate to last years dates, need to update to reflect this year's dates

    I have had a quicklook and it all seems to hang on cell B3 on Target Behavior by Week. If you change this to the new start date. Does this work ? If not what doesn't?


    click on the * Add Reputation if this was useful or entertaining.

  3. #3
    Registered User
    Join Date
    09-11-2013
    Location
    MD
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formulas relate to last years dates, need to update to reflect this year's dates

    It's all the formulas that look like this that need to be corrected to correspond to the dates on the first sheet. This is from cell B4:

    =IF(AND('Targeted Behaviors by Day'!AB2="",'Targeted Behaviors by Day'!AC2="",'Targeted Behaviors by Day'!AD2="",'Targeted Behaviors by Day'!AE2="",'Targeted Behaviors by Day'!AF2=""),NA(),(SUM('Targeted Behaviors by Day'!AB2:AF2)))

    That's giving me August 27-August 31. I need August 26-August 30. I have been manually changing formulas but I need a more efficient fix. I simply don't have enough time in the day. Changing the value of B3 on Targeted Behaviors by Week doesn't have any effect on where the formulas pull from.

  4. #4
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Formulas relate to last years dates, need to update to reflect this year's dates

    Ok that makes sense.
    There are a few ways to do this (with a particular complication being leap years). I probably won't get round to it today.
    The first thing is that if you change the Agression line you can then drag fill the rows below. This would be 52 cell changes.

    The other options include a vba option to input the start day of theyear and reset the formulae. I think we should be able to do this with formulae only but it might get complicated.
    If you don't hear from me then feel free to send me a reminder. If anyone else wants to have a go please feel free.


    The "target behaviour by week" has a sum(mon to friday) dates (it tests them first)

  5. #5
    Registered User
    Join Date
    09-11-2013
    Location
    MD
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formulas relate to last years dates, need to update to reflect this year's dates

    Hi Tony, any ideas yet?

+ 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. Based on col dates create col of dates for the first day of that same month and year
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2011, 09:32 PM
  2. How do I relate a Function to a schedule of dates
    By sasha162 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-25-2010, 11:22 AM
  3. Replies: 2
    Last Post: 07-12-2009, 04:52 PM
  4. Dates of a Day for a month & year cell formulas
    By mikeburg in forum Excel General
    Replies: 2
    Last Post: 12-29-2005, 06:14 PM
  5. [SOLVED] Sorting dates:How do I sort a column filled with dates by Month, Day, then Year?
    By Heather in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-22-2005, 10:05 PM

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