Pass/Fail Formula

MrsSurg

New Member
Joined
Nov 6, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to have Column 'U' show pass or fail based on 3 columns showing a time difference.
If columns 'F', 'K' & 'R' are showing a difference greater that 30 minutes I would like column 'U' to show Fail. Anything below 30 minutes to show Pass.
Example in attached image.

Thank you!
 

Attachments

  • Screenshot 2023-11-07 112450.png
    Screenshot 2023-11-07 112450.png
    6.2 KB · Views: 11
I have provided my suggestion in column N and if you adapted the post #3 suggestion as shown in column O you could also use that.
The column N formula would more easily scale up if you might end up with more groups of columns.

23 11 07.xlsm
DEFGHIJKLMNO
1TimerDataDifference (mins)TimerDataDifference (mins)Yes/NoTimerDataDifference (mins)
26:55 AM6:42 AM0:132:18 PM2:25 PM-0:076:30 AM6:28 AM0:02PassPass
312:45 PM1:10 PM-0:2511:10 PM11:00 PM0:106:37 PM6:20 PM0:17PassPass
48:33 PM1:09 AM19:247:29 AM3:14 PM-7:459:57 PM10:42 PM-0:45FailFail
56:57 AM8:26 PM-13:298:35 AM10:01 AM-1:262:31 PM12:38 PM1:53FailFail
610:04 PM11:12 PM-1:089:53 PM8:00 AM13:5312:42 PM11:46 AM0:56FailFail
Pass Fail
Cell Formulas
RangeFormula
M2:M6,I2:I6,F2:F6M2=K2-L2
N2:N6N2=IF(MAX(ABS(IF(LEFT(D$1:M$1,2)="Di",D2:M2,0)))>30/1440,"Fail","Pass")
O2:O6O2=IF(OR(ABS(F2)>30/1440,ABS(I2)>30/1440,ABS(M2)>30/1440),"Fail","Pass")
That is wonderful and works a treat! Thank you for your help! Everyone here is so helpful =)
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,152
Messages
6,123,323
Members
449,094
Latest member
Chestertim

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