+ Reply to Thread
Results 1 to 8 of 8

Formula that tells me if the temp has exceed a temp of 2 degrees for more than an hour.

  1. #1
    Registered User
    Join Date
    11-11-2021
    Location
    london
    MS-Off Ver
    2019
    Posts
    3

    Formula that tells me if the temp has exceed a temp of 2 degrees for more than an hour.

    Ive tried some options but cant get it to stick.

    I have a some data around 5000 rows.Each row is date and time stamp of 15 minutes, every 15 minutes its takes a temperature reading. In column one is a date and time in row 2 is temp. i need a formula that tells me if the temp has exceed a temp of 2 degrees for more than an hour.

    what is the best way to do this.


    test data excel.pdf

    Regards
    Last edited by AliGW; 11-11-2021 at 11:21 AM. Reason: Title changed - please think more carefully about your thread titles in future!

  2. #2
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,438

    Re: Formula that tells me if the temp has exceed a temp of 2 degrees for more than an hour

    Administrative Note:

    Welcome to the forum.

    Your thread title did not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    (Note: this change is not optional. As you are new here, I have done it for you today.)

    Whilst I understand that you may be in a bit of a panic, don't tell us that it is URGENT, please. All your helpers here are volunteers giving freely of their own time: you haven't paid a penny for any assistance you get here, therefore expecting any form of preferential treatment, or seeming to, is inappropriate.

    Thank you for your understanding. I have removed the urgency notice from your thread title.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    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.

  3. #3
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Formula that tells me if the temp has exceed a temp of 2 degrees for more than an hour

    I would set one column to find if temp is 2 degrees or greater difference. If((B2-x)>=2,1,"") or something then in next column =If(Countif(Indirect("C"&Row()-4&":C"&Row()),1)=4,"1 Hour","")
    If this solves your issue, Mark thread as Solved & Add Reputation.

    Thanks!

  4. #4
    Registered User
    Join Date
    11-11-2021
    Location
    london
    MS-Off Ver
    2019
    Posts
    3

    Re: Formula that tells me if the temp has exceed a temp of 2 degrees for more than an hour

    Hi crime dog. I think ive got this wrong, ive attached a sample spreadsheet. Can you check this please
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Formula that tells me if the temp has exceed a temp of 2 degrees for more than an hour

    Please Login or Register  to view this content.
    Row() is a formula. are you just testing the temp in B?

  6. #6
    Registered User
    Join Date
    11-11-2021
    Location
    london
    MS-Off Ver
    2019
    Posts
    3

    Re: Formula that tells me if the temp has exceed a temp of 2 degrees for more than an hour

    Yes only temps in Row B

  7. #7
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Formula that tells me if the temp has exceed a temp of 2 degrees for more than an hour

    You can eliminate column 3 then and use in the Count (instead of counting the ones) ">="&2
    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Formula that tells me if the temp has exceed a temp of 2 degrees for more than an hour

    Do you really need the indirect() here??

    In D4 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I think this gives the same results.

    And in col-H, it looks like you were trying to generate an up/down trend, so in H3 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

+ 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. Urgent help with formula please!!
    By targus92 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-16-2017, 04:31 AM
  2. Formula Help - Urgent
    By pip_kay in forum Excel General
    Replies: 3
    Last Post: 05-31-2016, 07:21 PM
  3. [URGENT][Help with a VBA Macro - Maximum with criterias][URGENT]
    By mahmoudmerhi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-04-2013, 03:39 PM
  4. please help with this formula - its urgent
    By seia3a in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-16-2012, 06:19 PM
  5. [SOLVED] Urgent Need Help (Formula)
    By Robert Lie in forum Excel General
    Replies: 0
    Last Post: 12-12-2005, 12:40 AM
  6. [SOLVED] Urgent Formula Help
    By Peter Curtis in forum Excel General
    Replies: 19
    Last Post: 01-12-2005, 11:05 PM
  7. [SOLVED] Urgent Formula!
    By Peter Curtis in forum Excel General
    Replies: 4
    Last Post: 01-06-2005, 12:06 PM

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