+ Reply to Thread
Results 1 to 8 of 8

Pulling Specific Data Points from Datasets that are Time Dependent

  1. #1
    Registered User
    Join Date
    12-29-2021
    Location
    Kansas City, KS
    MS-Off Ver
    Excel for 365 (Version 2111)
    Posts
    4

    Question Pulling Specific Data Points from Datasets that are Time Dependent

    Good morning all!

    I am stuck trying to design a calculator in excel for our manufacturing team. I am looking to pull data points from very specific places, but the data changes slightly every time because it is time dependent (both in time stamp and in operator function).

    I am trying to pull the timestamp of the very last data point at a the first hold in pressure and the timestamp of the very first data point at the second hold in pressure. I have made graphs in the sample data tabs to try to visualize it better. In the picture below I want to find the timestamp of each red 'X' and each yellow 'X' and report the time stamp. The first value (T1) will then be subtracted from the second value (T2) to give me the time that it takes for the system to "Ramp" from one pressure (-200 mmHg) to the next pressure (-50 mmHg).

    Please provide any help that you can! I have been stuck on this for a bit and haven't made much progress.

    Screenshot 2021-12-29 082114.png
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Pulling Specific Data Points from Datasets that are Time Dependent

    kmersch,
    Can you better define your terms and explain more for dim bulbs like me? You mention "the first hold in pressure". Looking in your sample data 1 I see "Time" and "Value". Is "Value" the first hold in pressure, so T1 initially is 09:48:26.710, and T2 is 09:48:26.809?

    You mention "the timestamp of the very last data point at a the first hold in pressure and the timestamp of the very first data point at the second hold in pressure" which sounds like there are multiple data points each hold of pressure. What Data Points are you talking about? Is that the Value, and "first hold in pressure" is something else?
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  3. #3
    Registered User
    Join Date
    12-29-2021
    Location
    Kansas City, KS
    MS-Off Ver
    Excel for 365 (Version 2111)
    Posts
    4

    Re: Pulling Specific Data Points from Datasets that are Time Dependent

    jomili,

    The screenshot I shared shows the data points that I'm looking for. I'm wanting to look at the values and pull the time for specific values.

    For example, in the first Sample Data I want the time stamp of 09:50:48.749 (T1) and I want the time stamp of 09:51:06.789 (T2). Then I want the time stamp of 09:53:04.345 for (T3) and then the time stamp of 09:53:21.492 (T4).

    Each of those values correspond with the "X's" marked on the screenshot. My hang up is trying to find those times based on the values (that's why I was trying to graph it) because the times and values vary between datasets.

    Let me know if there is any further clarification you need, I appreciate the help!

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Pulling Specific Data Points from Datasets that are Time Dependent

    This proposal employs two helper columns which may be moved and/or hidden for aesthetic purposes.
    The INT column is populated using: =INT(B12)
    The Ramp Up column is populated using: =AND(C13=D$3,C14>D$3,AVERAGE(C14:C19)>D$3)
    The calculations in D3:D5 are needed because the temp doesn't always fall to the same INT
    D3: =MIN(C12:C3130)
    D4: =MAXIFS(C12:C3130,A12:A3130,">="&INDEX(A12:A3130,MATCH(D3,C12:C3130,0)))
    D5: =MINIFS(C12:C3130,A12:A3130,">"&F4)
    The formulas in F3:F6 yield the times of T1:T4 respectively
    F3: =INDEX(A12:A3130,MATCH(TRUE,D12:D3130,0))
    F4: =INDEX(A12:A3120,AGGREGATE(15,6,(ROW(A12:A3130)-ROW(A11))/(A12:A3130>F3)/(C12:C3130=D4),1))
    F5: =INDEX(A12:A3120,AGGREGATE(14,6,(ROW(A12:A3130)-ROW(A11))/(A12:A3130>F4)/(C12:C3130=D4),1))
    F6: =INDEX(A12:A3120,AGGREGATE(15,6,(ROW(A12:A3130)-ROW(A11))/(A12:A3130>F5)/(C12:C3130=D5),1))
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    12-29-2021
    Location
    Kansas City, KS
    MS-Off Ver
    Excel for 365 (Version 2111)
    Posts
    4

    Re: Pulling Specific Data Points from Datasets that are Time Dependent

    JeteMc,

    Thank you very much for your help I was very excited to see this work, however, I have been pouring over some data and unfortunately this method isn't 100% accurate over all of the data sets the I have collected. In certain data sets the MAXIFS and MINIFS formula would pull data from outside of the "ramp band" during a hold in pressure. This is because the unit under test does a short ramp to try and maintain a pressure within a certain range, which throws off the validity of using the MAXIFS and MINIFS statements.

    I was wondering if you would be able to help me work through one more thing. I thought about using the switch function as I have returned True/False based on the ramp rate of the data. This seems to be a more reliable method for me over the variety of data that I have.

    Basically my goal is to return the first 'TRUE' as T1, and the first 'FALSE'> T1 as T2. This is then repeated for T3 & T4 (First 'TRUE'>T2 and first 'FALSE'>T3). I have been unable to figure out a good way to return the time stamp in C.olumn A based on the switching of values in Column D

    I have attached the worksheet I have been working on to this thread.

    Thank you very much for your help!

    kmersch
    Attached Files Attached Files
    Last edited by kmersch; 01-11-2022 at 11:20 AM.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Pulling Specific Data Points from Datasets that are Time Dependent

    Perhaps the following will help.
    Populate cells E14:E3011 using: =IF(D14<>D13,SUM(MAX(E$13:E13),1),"")
    Populate I2:I5 using: =INDEX(A$12:A$3011,MATCH(ROWS(I$2:I2),E$12:E$3011,0))
    Note that the original T1 value is placed in cell J2.
    Let us know if you have any questions.

  7. #7
    Registered User
    Join Date
    12-29-2021
    Location
    Kansas City, KS
    MS-Off Ver
    Excel for 365 (Version 2111)
    Posts
    4

    Re: Pulling Specific Data Points from Datasets that are Time Dependent

    JeteMc

    That worked perfectly, thank you very much for your knowledge and expertise! I really appreciate it.

    kmersch

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Pulling Specific Data Points from Datasets that are Time Dependent

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. VBA routine to compare 2 datasets and remove points closer than 30m.
    By hamang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2021, 07:58 AM
  2. Pulling data dependent on two drop down criteria from another tab
    By Amateurlou in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-26-2020, 01:40 AM
  3. Pulling data dependent on two dropdown criteria
    By Amateurlou in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2020, 10:26 AM
  4. [SOLVED] Pulling 2 different data points from data set and returning value - MatchIndex? Vlookup?
    By AFIOF719 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2018, 09:23 AM
  5. Replies: 1
    Last Post: 03-31-2016, 02:26 PM
  6. Pulling a Specific Cell when Pulling a Tabel from Web Based Data
    By Zallen89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2013, 05:39 PM
  7. Bar or column plot 7 dependent variables with multiple data points in each?
    By CateFranklin in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-01-2011, 09:27 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