+ Reply to Thread
Results 1 to 3 of 3

count date ranges that overlap

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    count date ranges that overlap

    The attached worksheet gets into a similar problem I posted recently. It shows a list of stock trades. Each trade is open between < one day, to multiple days.

    I need to determine how many of these trades would be open at any one time.

    In the attached worksheet I've plugged in a few of what I believe to be the correct answers.

    If it helps, I've deleted most of the cells that don't apply to the calcs. You'll notice that the headings of the columns I'm calculating have a "2" in them. This is my way of identifying which of 3 accounts I'm using. Once you help me out with account #2, I can do the other two.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,326

    Re: count date ranges that overlap

    Can you explain HOW you calculated some of those expected results/
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: count date ranges that overlap

    Hi, I've uploaded another worksheet which attempts to describe my logic. Note that I discovered a mistake in the first worksheet,
    so hopefully this new one makes better sense.

    And to clarify what I mean by "open"... this means there is money invested from the moment a trade is opened, until it is closed.

    Finding the max # of other, open positions during the lifespan of any particular trade helps me allocate funds invested per trade.

    Please let me know if you have other questions.

    Thank you!
    Attached Files Attached Files

+ 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. Replies: 8
    Last Post: 11-02-2017, 01:19 AM
  2. [SOLVED] Count Start and End Dates that Overlap Specified Date Range
    By DigDoug in forum Excel General
    Replies: 8
    Last Post: 06-11-2014, 09:46 AM
  3. [SOLVED] determine total overlap time when there are gaps in overlap (4 date ranges)
    By miriambender in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-12-2014, 11:58 PM
  4. Replies: 2
    Last Post: 08-16-2013, 10:18 AM
  5. Replies: 5
    Last Post: 07-10-2012, 03:03 PM
  6. Determining the % of overlap in two date ranges
    By eddienole in forum Excel General
    Replies: 3
    Last Post: 07-29-2011, 04:45 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