+ Reply to Thread
Results 1 to 4 of 4

Help with advanced dynamic ranges between start and end date

  1. #1
    Registered User
    Join Date
    01-21-2017
    Location
    Melbourne, Australia
    MS-Off Ver
    2007
    Posts
    7

    Help with advanced dynamic ranges between start and end date

    G'day,

    I hope I can articulate this one. Apologies, this is my first post.

    I have a set of data within the range B3:K13 which includes random numbers under 10 using =RAND()*10.
    I have created 4 named ranges (where A3 is blank):

    Dates: A3:A13 (Numbered 1 - 10)
    Dates1:A4:A13
    Timesteps: B3:K3 (Dated 1/01/2016 - 10/01/2016)
    Timesteps1: A3:K3

    So I have 4 criteria:

    Start Date:B25 (Dropdown List "Dates")
    End Date: B26 (Dropdown List "Dates")
    Start Timestep: B27 (Dropdown List "Timesteps")
    End Timestep: B28 (Dropdown List "Timesteps")

    There are two formulas I have used that can generate the answers I need.

    =SUM(OFFSET($A$3,MATCH($B$25,Dates,0),MATCH($B$27,Timesteps,0),MATCH($B$26,Dates1,0)-MATCH($B$25,Dates,0),MATCH($B$28,Timesteps1,0)-MATCH($B$27,Timesteps,0)))

    =SUM(INDEX($B$4:$K$13,MATCH($B$25,Dates,0),MATCH($B$27,Timesteps,0)):INDEX($B$4:$K$13,MATCH($B$26,Dates,0),MATCH($B$28,Timesteps,0)))

    Everything is good so far however I want add another criteria to this formula.

    I want to create a new formula that will still sum the dynamic ranges not only for the selected range (All week) but for weekends and weekdays as well within that selected range.

    I tried this formula but it didn't work.

    =SUM(IF($N$4:$N$13>=6,OFFSET($A$3,MATCH($B$25,Dates,0),MATCH($B$27,Timesteps,0),MATCH($B$26,Dates1,0)-MATCH($B$25,Dates,0),MATCH($B$28,Timesteps1,0)-MATCH($B$27,Timesteps,0)),0))

    I have created a work around in order to get there =SUMIFS(P4:P13,Dates,">="&$B$25,Dates,"<="&$B$26). But I need it in one formula!

    I know this is a tricky one but if anyone could help me out it would be much appreciated.

    I got the idea from Excelisfun's EMT 1071 - https://www.youtube.com/watch?v=lh4VjEoD5WY

    Here is a screenshot of my spreadsheet - https://postimg.org/image/c455h66in/

    Cheers!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Help with advanced dynamic ranges between start and end date

    Duplicate post: http://www.excelforum.com/showthread.php?t=1170669

    Please don't do that.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-21-2017
    Location
    Melbourne, Australia
    MS-Off Ver
    2007
    Posts
    7

    Re: Help with advanced dynamic ranges between start and end date

    Hi shg, I am new user and wasn't sure which forum would be best to post in. Point noted.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Help with advanced dynamic ranges between start and end date

    A five-minute read of the forum rules would help you stay squeaky-clean.
    Last edited by shg; 01-21-2017 at 12:27 PM.

+ 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] Help with advanced dynamic ranges between start and end date
    By Konstantine1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-23-2017, 08:13 AM
  2. Dynamic ranges with different start date
    By SnilleMikke in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2015, 09:49 AM
  3. Replies: 1
    Last Post: 04-23-2013, 01:14 PM
  4. Make date ranges for graph (choose start and finish date)
    By zeko90 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-23-2013, 09:13 AM
  5. [SOLVED] Counting the number of times a date occurs in multiple start and end date ranges.
    By Grizz in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-05-2013, 04:41 PM
  6. Replies: 0
    Last Post: 03-30-2012, 01:56 PM
  7. Changing start point in Dynamic Named Ranges for a Chart
    By carsto in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-13-2009, 10:12 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