Count number of temperature swings over a 2 month period

Barque

New Member
Joined
Nov 25, 2020
Messages
13
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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

maabadi

Well-known Member
Joined
Oct 22, 2012
Messages
1,839
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
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)
 

Watch MrExcel Video

Forum statistics

Threads
1,130,190
Messages
5,640,749
Members
417,165
Latest member
Hilders1

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
Top