+ Reply to Thread
Results 1 to 2 of 2

Variable Data Range Depending on Date

Hybrid View

joerv007 Variable Data Range Depending... 04-11-2017, 10:53 AM
FDibbins Re: Variable Data Range... 04-11-2017, 11:03 AM
  1. #1
    Registered User
    Join Date
    04-11-2017
    Location
    UK
    MS-Off Ver
    Office 2016
    Posts
    1

    Variable Data Range Depending on Date

    Hi guys. I am after some assistance on something which might not be possible.

    Scenario: I am making a spreadsheet to check regulation compliance with jobs that we do. Each date a job gets done, it goes in a list (one job per row). Some dates, we might do several jobs (but each job still gets its own row). There are different types of jobs (we'll call them A, B and C for ease). The Regulations require us to do a certain amount of jobs within a rolling 3 month period. What I am trying to do is to create a spreadsheet which will look back over the last 3 months and count the number of each different type of jobs. So if we have done the correct number of A jobs in the last 3 months, a cell will say something like "you are compliant". If we have not done enough, it would say something like "you are not compliant".

    Problems: The issue is that I have to use a rolling 3 month time frame. If I was just using a static timeframe (for example Jan - Mar), I could just use the =countif formula. But sadly, the rolling period effectively means that my start date of the range is 3 months back from today's date.

    So, my question is this. Is it possible to define a range of data which covers all the data in a list which falls within a 3 month period as defined from today's data going backwards? If this is possible, how can it be done?

    I have done some research on this and understand that the offset function in the Name Manager might be useful but I cannot see how to define it to this extent.

  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
    53,048

    Re: Variable Data Range Depending on Date

    Hi, welcome to the forum

    I think you need to take a look at using COUNTIFS() with 1 of the criteria being <=TODAY() and another criteria being > EOMONTH(today(),-3). You could use another criteria to test for "done"

    If you still have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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

+ 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] MAX/MIN to calculate depending on date range
    By eyeope in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-04-2017, 08:20 PM
  2. [SOLVED] MAX/MIN to calculate depending on date range
    By eyeope in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-03-2017, 10:01 AM
  3. Pull out different data depending on date range
    By rnomis in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-18-2012, 01:53 PM
  4. Replies: 5
    Last Post: 05-04-2012, 09:04 AM
  5. Copying data from one sheet to another based on variable date range
    By Colin1226 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-08-2010, 02:38 AM
  6. Sum depending on date range
    By StephenGNichols in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 01-18-2010, 06:54 PM
  7. Replies: 4
    Last Post: 03-13-2006, 12:25 PM

Tags for this Thread

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