+ Reply to Thread
Results 1 to 5 of 5

[SOLVED] Quick question: Time it takes to reach a temperature?

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question [SOLVED] Quick question: Time it takes to reach a temperature?

    Hello! What a great forum, has helped me many times.

    I have two columns of data, D and E with time in the E column and rising temperatures in the D column.
    My question is that I would like to the find the time between when column D exceeds 30 and when it reaches a value like 150 by referencing the time column E.

    I solved this using the VLOOKUP function: =(VLOOKUP(150,D12:E400,2,TRUE))-(VLOOKUP(30,D12:E100,2,TRUE))
    However, I had to move my time variables from column C to E in order for VLOOKUP to work. (It won't accept a lookup value of -1 for the column designation)

    Is there another way to do this?

    Thank you in advance!
    Last edited by Romoko; 06-11-2012 at 01:01 PM.

  2. #2
    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,938

    Re: Quick question: Time it takes to reach a temperature?

    =index(match()) will do a "negative" lookup for you. try this 1, you may have to play around with the references

    =INDEX(D13:E19,MATCH(I12,E13:E19,0),1)
    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

  3. #3
    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,938

    Re: Quick question: Time it takes to reach a temperature?

    thinking about it again, there may be another way. can you upload a sample worksheet?

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Quick question: Time it takes to reach a temperature?

    as long as data in d is in ascending order use lookup
    lookup(d12:d100,c12:c100)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    06-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Quick question: Time it takes to reach a temperature?

    Quote Originally Posted by FDibbins View Post
    =index(match()) will do a "negative" lookup for you. try this 1, you may have to play around with the references

    =INDEX(D13:E19,MATCH(I12,E13:E19,0),1)
    This worked like a charm. Thank you

    Here is what I changed to make it work for my application (just in case anyone else needs it)

    =(INDEX(C13:D400,MATCH(150,D13:D400,1),1))

    and here is the full formula i used in the cell:

    =(INDEX(C13:D400,MATCH(150,D13:D400,1),1))-(INDEX(C13:D35,MATCH(30,D13:D35,1),1))

    Thanks again. + rep
    Last edited by Romoko; 06-11-2012 at 01:03 PM.

+ 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