Between two markers in one column, find the max/min value in another column and mark in a third column

starlight89

New Member
Joined
Oct 31, 2012
Messages
2
Hi,

I was hoping to get some help with something that is way beyond my Excel capabilities.

I have a set of data that is marked as "CT" in Column D. Between each pair of "CT" I need to:
1. Determine if the value next to "CT" in column C is 1 or -1
2. If the value is 1, I need to find the maximum value from column B between the two values of "CT" in column D. If the value is -1, I need to find the minimum value.
3. In the row that contains the max/min value, enter "ET/ST" in column E.

I need to be able to repeat this on any range between the two cells marked "CT".

Is there a way to do this without using VBA?

Thanks in advance!

[TABLE="width: 256"]
<colgroup><col span="4"></colgroup><tbody>[TR]
[TD]Time[/TD]
[TD]Price[/TD]
[TD]Side Est[/TD]
[TD]Cross Time Indicator[/TD]
[/TR]
[TR]
[TD]12:00:00[/TD]
[TD]99.5[/TD]
[TD]1[/TD]
[TD]CT[/TD]
[/TR]
[TR]
[TD]12:32:00[/TD]
[TD]100.5[/TD]
[TD]1[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]12:39:00[/TD]
[TD]100[/TD]
[TD]1[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]12:46:00[/TD]
[TD]100.5[/TD]
[TD]1[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]12:53:00[/TD]
[TD]100[/TD]
[TD]1[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]12:56:00[/TD]
[TD]99.5[/TD]
[TD]-1[/TD]
[TD]CT[/TD]
[/TR]
[TR]
[TD]13:06:00[/TD]
[TD]100[/TD]
[TD]-1[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14:47:00[/TD]
[TD]97.5[/TD]
[TD]-1[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14:50:00[/TD]
[TD]98[/TD]
[TD]-1[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14:53:00[/TD]
[TD]98.5[/TD]
[TD]1[/TD]
[TD]CT[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,224,609
Messages
6,179,876
Members
452,949
Latest member
Dupuhini

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