Closed Thread
Results 1 to 16 of 16

how to calculate time spent above a particular target?

  1. #1
    Registered User
    Join Date
    11-21-2020
    Location
    usa
    MS-Off Ver
    10
    Posts
    13

    how to calculate time spent above a particular target?

    Hello All,

    I have created this chart (with the generous help of MrShorty and 6StringJazzer!)


    I would like to calculate time spent above 100.

    And I would like to eliminate the area below say... 40 (no data will ever appear there.)

    Any help would be kindly appreciated!

    Test chart.jpg
    Last edited by jw2000; 12-02-2020 at 12:00 PM. Reason: name correction

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: how to calculate time spent above a particular target?

    Shall be easy. Just draw a line (1) at 100. Then from every crossection of this line with your function draw the line down to the axis. Read all times and calculate differences (time5-time4)+(time3-time2).

    This was mainly to focus your attention to yellow banner above the first post :-)
    Attached Images Attached Images
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    11-21-2020
    Location
    usa
    MS-Off Ver
    10
    Posts
    13

    Re: how to calculate time spent above a particular target?

    Thanks but I'm looking for a way to automate this...

    Also... I'm not sure how posting some spreadsheet data would help explain what I'm looking for?
    Last edited by AliGW; 12-03-2020 at 04:23 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: how to calculate time spent above a particular target?

    First reason: I'll not have to create dummy dataset myself.
    Moreover you could write manually assessed/calculated result(s).
    And this would be used to verify computed results.

    PS. There is no point to use "Reply with Quote" as long as you refer to last message.
    Everyone can see it just above your answer.

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: how to calculate time spent above a particular target?

    As for quoting: Have you ever read our forum rules? Available at: https://www.excelforum.com/forum-rul...rum-rules.html
    Let me quote one of guidelines (listed below main rules):
    2. Don't quote whole posts -- it's just clutter.*
    Let me also comment on your behaviour: you act as you wouldn't look for help. Not willing to make your input - not expect work from others.

    OK. I'm quiting to my cave. Thread unsubscribed.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: how to calculate time spent above a particular target?

    @jw2000

    Such rude and offensive behaviour towards members trying to help you will not be tolerated.

    YOU are the one asking for help, and any help you get will be given for free and on a discretionary basis. Such ignorant outbursts are unlikely to endear you to helpers, so do not be surprised if the help dries up.
    Last edited by AliGW; 12-03-2020 at 05:02 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: how to calculate time spent above a particular target?

    AliGW. quite right.

    jw2000. You get volunteers helping you here for free. We are NOT your personal slaves to whom you can hand out verbal abuse.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  8. #8
    Registered User
    Join Date
    11-21-2020
    Location
    usa
    MS-Off Ver
    10
    Posts
    13

    Re: how to calculate time spent above a particular target?

    Thanks for the warning.
    Will you be kind enough to tell the offended individual to not troll me. He seems to think he is a moderator... or maybe just a forum cop. I came here here seeking help not cheeky responses.
    Regards,
    jw

  9. #9
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,826

    Re: how to calculate time spent above a particular target?

    And I would like to eliminate the area below say... 40 (no data will ever appear there.)
    In the format axis dialog (same one we visited in a previous thread) for the vertical axis is a "Minimum" option. If you don't like Excel's automatic default choice here, simply uncheck the auto box and enter 40 (or whatever value makes sense for you at the time).

    I think we need you to describe how you would like to calculate time above 100. Kaper's picture suggests and interpolation step followed by a simple sum of differences, but it isn't clear from your OP if you require the interpolation step.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: how to calculate time spent above a particular target?

    The ‘offended individual’ is a senior member of the forum (guru status), which means that he is perfectly entitled to help police the forum. You received no cheeky responses: you were asked not to quote unnecessarily and to provide a sample workbook. If you continue to make rude comments about our any of our members, then you will be banned from here and therefore receive no further help here.

    Do as you are asked and abide by our rules, please.

  11. #11
    Registered User
    Join Date
    11-21-2020
    Location
    usa
    MS-Off Ver
    10
    Posts
    13

    Re: how to calculate time spent above a particular target?

    Thank you MrShorty!

    With regard to your second comment... I guess I was wondering if excel had a canned function that would do the interpolation. It doesn't sound like it so I'll look for another alternative.

    Thanks again for all your help.

  12. #12
    Registered User
    Join Date
    11-21-2020
    Location
    usa
    MS-Off Ver
    10
    Posts
    13

    Re: how to calculate time spent above a particular target?

    @AliGW

    your inbox is full
    Last edited by AliGW; 12-03-2020 at 01:07 PM. Reason: Please don’t quote whole posts. Clutter removed.

  13. #13
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,826

    Re: how to calculate time spent above a particular target?

    I guess I was wondering if excel had a canned function that would do the interpolation.
    Excel does not have a canned function. Are you required to use Excel? Gnumeric has a canned interpolation function that can do both linear and spline interpolations -- https://help.gnome.org/users/gnumeri...alysis.html.en

    Edit to add: This might be a useful tutorial by Andy Pope: https://andypope.info/charts/intersection.htm Even though he uses two different "moving" series, your scenario is a case where one series moves and the other is constant at y=100 and you are looking for all the points where your series crosses the y=100 line. He uses one or more VBA UDF procedures to extract each intersection point -- assuming you are allowed to use VBA for this.
    Last edited by MrShorty; 12-03-2020 at 01:04 PM.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: how to calculate time spent above a particular target?

    My INBOX is no longer full.

    Please stop quoting whole posts.

  15. #15
    Registered User
    Join Date
    11-21-2020
    Location
    usa
    MS-Off Ver
    10
    Posts
    13

    Re: how to calculate time spent above a particular target?

    sure thing.... karen
    Last edited by AliGW; 12-03-2020 at 06:43 PM. Reason: More clutter removed.

  16. #16
    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
    52,933

    Re: how to calculate time spent above a particular target?

    jw2000 has just earned a 7 day ban
    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

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 04-03-2020, 04:41 PM
  2. Calculate time elapsed, excluding time not spent working
    By BREECHEEZ87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-12-2015, 03:01 PM
  3. need function to calculate time spent on the given task
    By Giri.hb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2015, 04:44 AM
  4. Replies: 3
    Last Post: 12-19-2013, 06:49 AM
  5. [SOLVED] Using pivot to calculate average of spent time, gives me error #DIV/0!
    By anakinlol in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 08-13-2013, 06:49 AM
  6. Replies: 10
    Last Post: 07-13-2013, 05:20 AM
  7. How can I calculate amount of time left based on amount spent?
    By KLD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2006, 11:25 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