Finding the Count in # of Months between the next highest in the range of values.

EVANWIT84

New Member
Joined
Sep 25, 2020
Messages
22
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
Hi All,

I have found the Max Value in Col. P of my attached imaged. However, I also wanted to find out the # of months it takes until the range of values (Col. O) hits a new maximum. Any thoughts on how to best achieve this results? For example, from July 1956 until July 1958 it took 24 months to hit a new peak. From Aug 1954 to Nov 1954 it took 3 months. So I would like this unique count so I can then find the average # of months to hit a new peak.

Thanks
 

Attachments

  • Capture.JPG
    Capture.JPG
    228 KB · Views: 6

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I'm not entirely sure, but maybe:

Book1
OPQRS
6CumulativeMAXMax TrueNew Max# of months
7100000010000001000000
81016146101614610161461
99815911016146  
109832731016146  
1110142201016146  
121020635102063510206354
131022758102275810227581
141055023105502310550231
151057522105752210575221
161077882107788210778821
171110374111037411103741
181133556113355611335561
191134874113487411348741
201174683117468311746831
2111511061174683 5 
22120980012098001209800 2
2311966341209800 6 
24125512412551241255124 2
25129523912952391295239 1
26131041113104111310411 1
27131426213142621314262 1
2813115441314262 7 
29134240213424021342402 2
30134245513424551342455 1
31141085214108521410852 1
32146359414635941463594 1
3314579871463594 8 
34146946214694621469462 2
3514440331469462 9 
36150941515094151509415 2
Sheet4
Cell Formulas
RangeFormula
P7:P36P7=MAX(O$7:O7)
Q7:Q36Q7=IF(O7=P7,O7,"")
S8:S36S8=IF(Q8="","",ROW(Q8)-LOOKUP(P7,Q$7:Q7/(Q$7:Q7<>""),ROW(P$7:P7)))
R22:R36R22=IF(Q22="",MAX(R$7:R21)+1,"")
 
Upvote 0
Solution
Didn't work exactly but you have me a good idea on how to solve this thru a Pivot Table.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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