NUMBER OF DAYS SINCE 2% PULLBACK

excelbetter

Board Regular
Joined
Oct 13, 2010
Messages
190
I am doing a project and need to find a way to count the number of days since a 2% pullback in a given stock.

The way I think about this is that I need to find the "recent" high in a given stock price, and count the # of days since there has been a 2% pullback in the stock.

I envision the raw data having two columns.

Column A = Date
Column B = Closing Price of the stock

Any ideas of how to do this?

Any help is greatly appreciated!!

TY
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
how are you calculating the 2% ?
difference between previous cell

Column C = (B1-B2)/B1

will this happen multiple times or just for one trough so to speak
COUNTIF( range , "<="&0.02)
but that will count all the range below 2%

Perhaps a sample of the data and expected result would help
you can use XL2BB see menu or my signature , to post a sample
Or link to dropbox / onedrive - although the XL2BB is preferred as it stays on the forum , for people searching, where as a link can disappear
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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