Once a cell reads 'X', Analyse a column and return a value

DavidWT87

New Member
Joined
May 10, 2023
Messages
23
Office Version
  1. 2016
Platform
  1. Windows
Hello

I have some data - the temperature of a gas as time passes through various stages of a test. Each row is the data returns on a second by second basis. The outlet temperature needs to get below -33 within 30 seconds of the dispense stage reaching '60'.

So it should see me getting to stage 60 at Time=22, sees the temp get below -33 at Time= 46, and in a designated cell return the number of seconds taken (ie 46-22 = 24 seconds). I can then in another cell do a straightforward if function to return a pass/fail based on whether my answer is above/below 30 seconds.

Is there a way I can do this?

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-4.513885
7620-4.181137
8720-7.754623
9820-10.46007
10920-14.40971
111020-15.76967
121120-17.69386
131220-18.33044
141320-19.18404
151420-19.63252
161540-19.8206
171640-19.8206
181740-19.8206
191840-20.47165
201940-22.61285
212040-23.78472
222140-24.33449
232260-24.52257
242360-24.52257
252460-24.52257
262560-24.52257
272660-24.37789
282760-24.20428
292860-24.03067
302960-23.85706
313060-23.61111
323160-23.37962
333260-22.989
343360-22.8588
353460-23.13368
363560-24.76852
373660-25.69444
383760-26.50462
393860-27.27142
403960-28.06712
414060-28.87732
424160-29.62962
434260-30.35301
444360-31.09086
454460-31.77084
464560-32.45081
474660-33.04398
484760-33.60822
494860-34.08564
504960-34.72222
515060-35.01158
Sheet4
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
How about
Excel Formula:
=AGGREGATE(15,6,M2:M100/(O2:O100<=-33),1)-MATCH(60,N2:N100,0)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0
No problem. One more question that is somewhat related?

Off the back of this, I also want to analyse the same temperature data and return the low value. So once Column N starts returning 60, I want to analyse Column O, see that it gets below -33, and once that happens check returns the lowest value it sees after that point whilst the criteria from column N & O are maintained.

So for the data I attached in the initial question, it sees N=60 & O<=-33 from row 47, then returns the low value from O47:O51, but hypothetically if N=60 & O<=-33 from row 37, but N then stopped being equal to 60 from row 47, it would check O37:O47 and return the low value from that range.
 
Upvote 0
As this is a totally different question, it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,079
Messages
6,123,000
Members
449,092
Latest member
masterms

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