Max Min Difference from Range from previous Cell Reference

nostradamus

Board Regular
Joined
Aug 9, 2010
Messages
143
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I need help with a couple of formulas based on information (cell range/reference) obtained from the cell above.

E2 identifies the number of consecutive days value increased (excluding 0s)
E4 need help with formula: from the identified range of consecutive days of increasing flow in col.B (result in E2), find the difference bet max and min values (you'll need to go one cell above the identified range to catch the starting point) - expected result in F4

E3 identifies the number of consecutive days value decreased (excluding 0s)
E5 need help with formula: from the identified range of consecutive days of decreasing flow in col.B (result in E3), find the difference bet max and min values (you'll need to go one cell above the identified range to catch the starting point) - expected result in F5

Book1.xlsx
ABCDEF
1DateFlowDeltaFlowDescriptionResults
210/30/201513900Duration of Rise3
310/31/20156990056000Duration of Drop9
411/1/2015699000Magnitude of Rise"please help"1055
511/2/201540600-29300Magnitude of Drop"please help"2100
611/3/20155950-34650
711/4/20153710-2240
811/5/20152860-850
911/6/20152790-70
1011/7/20152995205
1111/8/20152230-765
1211/9/201522300
1311/10/20151700-530
1411/11/20151340-360
1511/12/20151220-120
1611/13/20151090-130
1711/14/20151020-70
1811/15/2015962-58
1911/16/2015895-67
2011/17/20151460565
2111/18/20151930470
2211/19/2015195020
23
Sheet1
Cell Formulas
RangeFormula
E2E2=MAX(FREQUENCY(IF(C3:C22>-0.99,ROW(C3:C22)),IF(C3:C22<=-0.99,ROW(C3:C22))))
E3E3=MAX(FREQUENCY(IF(C3:C22<0.99,ROW(C3:C22)),IF(C3:C22>=0.99,ROW(C3:C22))))
F4F4=B22-B19
F5F5=ABS(B19-B10)
C3:C22C3=B3-B2
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
just cross-posted the question in excelforum
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,616
Latest member
intern444

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