+ Reply to Thread
Results 1 to 5 of 5

Find maximum measurement taken within an hour

  1. #1
    Registered User
    Join Date
    02-20-2018
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    42

    Find maximum measurement taken within an hour

    Hello, I have two columns one with the date and time that each measurement was taken and another with the measurement values. I would like to add a column that only shows the maximum measurement taken for each day within an hour. I know that I could create a column that rounds the time down to the nearest hour and find the max using that but I want to find the max within a 60 minute period no matter what part of the hour they fall if that makes sense. I attached a small portion of my data, I would appreciate any help, thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Find maximum measurement taken within an hour

    =max(if(a2:$a$40<=a2+3/72,b2:$b$40)) cse
    Attached Files Attached Files

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Find maximum measurement taken within an hour

    one way with PowerQuery

  4. #4
    Registered User
    Join Date
    02-20-2018
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Find maximum measurement taken within an hour

    Quote Originally Posted by tim201110 View Post
    =max(if(a2:$a$40<=a2+3/72,b2:$b$40)) cse
    Sorry I probably should've added this in my post but is there a way to display the max only on the row that it occurs? I added a column to the spreadsheet where I manually put the max values in to show you what I mean.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Find maximum measurement taken within an hour

    Try this in C2:

    =IF(MAX(IF(FLOOR($A$2:$A$40,1/24)=FLOOR(A2,1/24),$B$2:$B$40))=B2,B2,"")

    Array formula, enter with Ctrl+Shift+Enter.

+ 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. [SOLVED] Macro to find time hour period with maximum sale value
    By Ucpaul in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2015, 05:41 PM
  2. Replies: 5
    Last Post: 06-07-2014, 09:54 AM
  3. Find hour in a range of hour values
    By mqdias in forum Excel General
    Replies: 2
    Last Post: 04-11-2011, 05:06 AM
  4. find the maximum value
    By klaus22 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-15-2007, 04:27 AM
  5. [SOLVED] to find the row of the maximum value
    By [email protected] in forum Excel General
    Replies: 3
    Last Post: 03-22-2006, 11:10 AM
  6. Replies: 7
    Last Post: 01-24-2006, 10:17 AM
  7. [SOLVED] find maximum
    By Frank Drost in forum Excel General
    Replies: 7
    Last Post: 01-17-2006, 10:25 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