+ Reply to Thread
Results 1 to 4 of 4

dates charts and in between

  1. #1
    Registered User
    Join Date
    08-09-2007
    Posts
    2

    dates charts and in between

    heya

    I hope someone can help, i'm a bit baffled by everything.

    I'll try to make this simple to get my point through. Firstly the data

    Vehicle - Date Start - Date End
    Ex1 1/1/7 5/1/7
    Ex2 2/4/7 4/5/7
    .
    .

    Now the tough part. I need the chart to have dates (each day) on the x axis and the number of vehicles on that date on the y axis. I hope that all makes sense.

    any help would be appreciated.

    cheers

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    dates charts and in between

    With this structure in A1:C11

    Please Login or Register  to view this content.
    and these values in F1:F16
    Please Login or Register  to view this content.
    Then.....
    G1: VehCount
    G2: =SUMPRODUCT(($B$2:$B$20<=F2)*($C$2:$C$20>=F2))
    Copy that formula down as far as you need

    Now you can chart these values from F1:G16
    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    08-09-2007
    Posts
    2
    I bow to you sire. that worked perfectly. I dont get it. but it works.

    THANK YOU

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    dates charts and in between

    That formula returns a 1 for each Start/End pair that includes the date to the left of the formula....then adds up the 1's

    I'm glad that worked for you......Thanks for letting me know.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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