Count number of temperature swings over a 2 month period

Barque

New Member
Joined
Nov 25, 2020
Messages
15
Office Version
  1. 365
I have searched the forums and have not seen a question like this asked:

I am trying to count the number of times Average temperature moves by X %, up or down, over a specified time period, or on a rolling N day lookback.

For example: Over the past 20 days, how many times has Avg Temp moved (ABS, up or down) by 10%, 30%? Over the past 40 days? etc.

I am trying to work things using local min and max values, and countifs but cannot get much traction.

My data looks like the below. Any suggestions or links are appreciated.

1607214597952.png
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
I think you can use with helper column and then hide it.
Formula for Helper Column ( first Average temp at C2):
Excel Formula:
=((C3-C2)/C2)*100

and then Use countif:
Excel Formula:
=COUNTIF(G2:G19,">"&10)
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,007
Members
448,935
Latest member
ijat

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