Find Max in reoccurring 24hr periods

MPFX2022

New Member
Joined
Nov 24, 2022
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hi all,
I need help please.
I want to find max value in each 24hr range over a years worth of data.
So I know how to find max, conditional formatting and use an IF statement to find it for one 24hr period.
But in IF statement it needs the $ symbols to make those cells constant when I paste formula.
I want to copy/paste this formula down sheet and not have to rewrite formula each time.
I hope all that makes sense :rolleyes::biggrin:
Any help would be greatly appreciated..
 

Attachments

  • ex.png
    ex.png
    32.6 KB · Views: 6

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Here is better pic with code..
 

Attachments

  • Untitled.png
    Untitled.png
    50.5 KB · Views: 8
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(B2=MAX(INDEX($B$2:$B$1000,SEQUENCE(24,,INT((ROWS(C$2:C2)-1)/24)*24+1))),"Y","N")
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,078
Messages
6,122,997
Members
449,093
Latest member
masterms

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top