Analysing Data based on Input Conditions being met

DavidWT87

New Member
Joined
May 10, 2023
Messages
25
Office Version
  1. 2016
Platform
  1. Windows
Hello. If someone can help, I would like to analyse some temperature data and return the low value, once certain conditions are met. The scenario is once my test is at a certain stage (60), the outlet temperature needs to maintain a certain range once it hits a threshold. So I would like to be checking for Column N becoming 60, and then start analysing Column O once it gets below -33, and once that happens, return the lowest value it sees whilst N=60, in one cell, and the highest value it sees in another cell.

So for the attached data, it sees N=60 & O<=-33 from row 29, then checks O29:O51 (stage stops being 60 in row 52), and returns the low value that it finds in a cell.

Once O<=-33, it doesn't matter whether it becomes higher again.

Thanks

Copy of Test 36A 30.03.23 PASS.xlsm
MNO
1TimeDispense StageOutlet Temperature
2100
3220-4.600693
4320-4.528351
5420-4.528351
6520-15.76967
7620-17.69386
8720-18.33044
9820-19.18404
10920-19.63252
111040-19.8206
121140-19.8206
131240-19.8206
141340-20.47165
151440-22.61285
161540-23.78472
171640-24.33449
181760-24.52257
191860-24.52257
201960-24.52257
212060-24.03067
222160-23.85706
232260-23.61111
242360-23.37962
252460-26.50462
262560-27.27142
272660-28.06712
282760-29.62962
292860-33.01
302960-33.04398
313060-33.60822
323160-34.08564
333260-34.72222
343360-35.01158
353460-35.30092
363560-35.47454
373660-35.63368
383760-34.8235
393860-36.03876
403960-36.06771
414060-36.12558
424160-36.14005
434260-36.16898
444360-36.22686
454460-36.24132
464560-36.29919
474660-36.31365
484760-36.31365
494860-36.386
504960-36.386
515060-36.40046
525170-36.386
535270-36.22686
545370-36.08217
555470-35.9809
Sheet4
 
Last edited:
Ok, how about
Excel Formula:
=AGGREGATE(14,6,INDEX(O:O,AGGREGATE(15,6,M2:M100/(O2:O100<=-33),1)+1):O100/(INDEX(N:N,AGGREGATE(15,6,M2:M100/(O2:O100<=-33),1)+1):N100=60),1)
And we're there.

Thank you so much. You've been extraordinarily patient in helping me. It is hugely appreciated :)
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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