Hi,
In a process, a value first decreases and then increases back up again, over time. Would be great if someone can help me calculate the time when the value is increasing and has gone past a certain level.
So for example, in the following example, I would like Excel to return "7 hour" (because this is when the 'Value' climbs back up to greater than my set threshold, 5). Please note that I would like the formula/macro to ignore the initial hours when the 'value' was greater than 5 BUT it was not increasing (i.e., it was initially decreasing):
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Time (hour)[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]0.5[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]5.5[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]7[/TD]
[/TR]
</tbody>[/TABLE]
A formula would be great, otherwise a macro will also do. Thanks
In a process, a value first decreases and then increases back up again, over time. Would be great if someone can help me calculate the time when the value is increasing and has gone past a certain level.
So for example, in the following example, I would like Excel to return "7 hour" (because this is when the 'Value' climbs back up to greater than my set threshold, 5). Please note that I would like the formula/macro to ignore the initial hours when the 'value' was greater than 5 BUT it was not increasing (i.e., it was initially decreasing):
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Time (hour)[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]0.5[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]5.5[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]7[/TD]
[/TR]
</tbody>[/TABLE]
A formula would be great, otherwise a macro will also do. Thanks
Last edited: