ms009986
New Member
- Joined
- Aug 16, 2009
- Messages
- 17
Hi guys!
I have a row of data, daily stock prices.
I want a formula that'll look in that row for the first value that meets a given condition.
Like...the first value that's 25% more than another value.
or
the first value that's either 25% more than another value, or 10% less than that value.
Etc.
Here's some example data.
So let's say I'd want the first value that was 25% more than the initial figure. The formula would give me $125.98.
Or let's say I'd want the first value that was either 25% higher or 10% lower. The formula would give me $89.22. If that low $89.22 hadn't been there, it would have given me the $125.98.
And to throw a wrench in this, sometimes I might want just the value, other times I might just want to know what cell the value is in (so I can count up the number of days it took for an event to occur and so forth).
Okay, smart people...work your magic. It's beyond me.
The Bear of Very Little Brain
I have a row of data, daily stock prices.
I want a formula that'll look in that row for the first value that meets a given condition.
Like...the first value that's 25% more than another value.
or
the first value that's either 25% more than another value, or 10% less than that value.
Etc.
Here's some example data.
$100 $101.50 $98.12 $89.22 $99.50 $107.33 $112.99 $123.20 $124.99 $125.98 $123.10 $131.88
So let's say I'd want the first value that was 25% more than the initial figure. The formula would give me $125.98.
Or let's say I'd want the first value that was either 25% higher or 10% lower. The formula would give me $89.22. If that low $89.22 hadn't been there, it would have given me the $125.98.
And to throw a wrench in this, sometimes I might want just the value, other times I might just want to know what cell the value is in (so I can count up the number of days it took for an event to occur and so forth).
Okay, smart people...work your magic. It's beyond me.
The Bear of Very Little Brain