Peak/Trough analysis

skyup0053

New Member
Joined
Apr 15, 2011
Messages
3
Hello,

I'm working on a pet project for my economics thesis that deals with the Federal Funds Rate and several other capital market rates. I'm charting 2 rates at a time against each other and would like to measure the areas that are peaks and the areas that are troughs with each respective rate.

I have 478 rows of data for each rate, so there's a good deal of data.

Any idea how to do this?

Thanks!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Welcome to the board.

How do you define peak and trough? It it as simple as local minima and maxima?
 
Upvote 0
Like this?

Code:
       --A--- ---B---
   1    Data  Extrema
   2   621.78        
   3   334.19 min    
   4   417.78        
   5   668.71 max    
   6   655.15        
   7   403.79 min    
   8   433.79        
   9   532.91        
  10   726.11 max    
  11   491.96 min    
  12   558.43 max    
  13   464.68        
  14   444.66 min    
  15   593.18 max    
  16   347.46 min    
  17   530.22 max    
  18   456.69
The formula in B3 and down is

=IF((A3>A2)*(A3>A4), "max", IF((A3<A2)*(A3<A4), "min", ""))
 
Upvote 0
Oops:

=IF((A3>A2)*(A3>A4), "max", IF((A3< A2)*(A3< A4), "min", ""))
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,267
Members
452,902
Latest member
Knuddeluff

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