badger6225
New Member
- Joined
- Oct 13, 2013
- Messages
- 9
Hello, I have the following column of data in D5 through D15.
[TABLE="width: 83"]
<tbody>[TR]
[TD="align: right"][TABLE="width: 83"]
<tbody>[TR]
[TD="align: right"]128.68[/TD]
[/TR]
[TR]
[TD="align: right"]142.68[/TD]
[/TR]
[TR]
[TD="align: right"]149.69[/TD]
[/TR]
[TR]
[TD="align: right"]173.32[/TD]
[/TR]
[TR]
[TD="align: right"]182.84[/TD]
[/TR]
[TR]
[TD="align: right"]115.19[/TD]
[/TR]
[TR]
[TD="align: right"]145.67[/TD]
[/TR]
[TR]
[TD="align: right"]167.60[/TD]
[/TR]
[TR]
[TD="align: right"]171.14[/TD]
[/TR]
[TR]
[TD="align: right"]198.52[/TD]
[/TR]
[TR]
[TD="align: right"]237.81[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
What I'd like to do in E5 through E15 is take the value from the corresponding D cell if it is higher than the previous cell. For example, cell E5 would take the value of D5 (128.68). E6 would take D6 (142.68). This would continue through E9. However, E10 would not use the value of D10, it would have the same value as D9 because D10 is lower than the previous high in column D.
The value for E11, E12 etc should continue to use the old high until it has been broken. For example, E11, E12 and E13 will still use the value from D9 because it is the most recent high. E14 will have the new value from D14 (198.52) because it is the new high in column D.
Any help is appreciated.
[TABLE="width: 83"]
<tbody>[TR]
[TD="align: right"][TABLE="width: 83"]
<tbody>[TR]
[TD="align: right"]128.68[/TD]
[/TR]
[TR]
[TD="align: right"]142.68[/TD]
[/TR]
[TR]
[TD="align: right"]149.69[/TD]
[/TR]
[TR]
[TD="align: right"]173.32[/TD]
[/TR]
[TR]
[TD="align: right"]182.84[/TD]
[/TR]
[TR]
[TD="align: right"]115.19[/TD]
[/TR]
[TR]
[TD="align: right"]145.67[/TD]
[/TR]
[TR]
[TD="align: right"]167.60[/TD]
[/TR]
[TR]
[TD="align: right"]171.14[/TD]
[/TR]
[TR]
[TD="align: right"]198.52[/TD]
[/TR]
[TR]
[TD="align: right"]237.81[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
What I'd like to do in E5 through E15 is take the value from the corresponding D cell if it is higher than the previous cell. For example, cell E5 would take the value of D5 (128.68). E6 would take D6 (142.68). This would continue through E9. However, E10 would not use the value of D10, it would have the same value as D9 because D10 is lower than the previous high in column D.
The value for E11, E12 etc should continue to use the old high until it has been broken. For example, E11, E12 and E13 will still use the value from D9 because it is the most recent high. E14 will have the new value from D14 (198.52) because it is the new high in column D.
Any help is appreciated.
Last edited: