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

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Do you mean if the sum of the cells in F K & R are greater/less than 30 minutes?

Also you specify greater than 30 minutes and below 30 minutes. What about exactly 30 minutes?

In Cell U1:
Excel Formula:
=IF(SUM(F1,K1,R1)>TIME(0,30,0),"Fail","Pass")

(I am baffled as to why the numbers in column F are negative. What are you trying to do?)
 
Upvote 0
Hi MrsSurg,

Welcome to MrExcel!!

Let me know how this goes (assumes the first row is 2 - change to suit):

=IF(OR(ABS(F2)>0.3,ABS(K2)>0.3,ABS(R2)>0.3),"Fail","Pass")

Regards,

Robert
 
Upvote 0
Do you mean if the sum of the cells in F K & R are greater/less than 30 minutes?

Also you specify greater than 30 minutes and below 30 minutes. What about exactly 30 minutes?

In Cell U1:
Excel Formula:
=IF(SUM(F1,K1,R1)>TIME(0,30,0),"Fail","Pass")

(I am baffled as to why the numbers in column F are negative. What are you trying to do?)
I am actually not sure why column F is showing a negative result and the other two are not. All 3 columns are set up the same (eg, =E9-D9) but just that one column is showing a negative result.

This is a worksheet made by someone in the business previously and has not been working correctly, so I am currently trying to fix it.
We are taking the time from two different sources (timer and datalogger) to performance check that the timers are working correctly. Therefore if the timer is showing more than a 30 minute difference from the datalogger (either 30 mins faster or slower than the datalogger) then that timer will fail its performance check.

It would need to fail if it were 30 minutes plus either faster or slower or pass if 29 minutes or less. Hope that makes sense!
 
Upvote 0
Hi MrsSurg,

Welcome to MrExcel!!

Let me know how this goes (assumes the first row is 2 - change to suit):

=IF(OR(ABS(F2)>0.3,ABS(K2)>0.3,ABS(R2)>0.3),"Fail","Pass")

Regards,

Robert
Thank you! That one seems to not work for me.
 
Upvote 0
That one seems to not work for me.

I take it "not" was a typo? If so you're welcome. If not let us know the formula is not working and we'll try again.
 
Upvote 0
I take it "not" was a typo? If so you're welcome. If not let us know the formula is not working and we'll try again.
Sorry, I thought it was, but after playing around to check, it is giving a pass for results over the 30 minute difference, whereas anything over that 30 minutes should be a fail. What am I doing wrong? 😅😅
 

Attachments

  • Screenshot 2023-11-07 140031.png
    Screenshot 2023-11-07 140031.png
    27 KB · Views: 8
Upvote 0
Welcome to the MrExcel board!

Do those 'Difference' columns contain formulas? If so, what formula?

Could you give us that sample data with XL2BB so we can easily copy for testing?
 
Upvote 0
Welcome to the MrExcel board!

Do those 'Difference' columns contain formulas? If so, what formula?

Could you give us that sample data with XL2BB so we can easily copy for testing?
Unfortunately it looks like it won't let me download XL2BB - I am on a business laptop and they lock things down pretty tightly here.
All 3 'Difference' columns have the two columns in front of them with this formula (but with the corresponding column letters) - =G16-H16

They are set up with custom number of h:mm am/pm and the 'Difference' columns with h:mm

Hope that is helpful! 🤞
 
Upvote 0
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")
 
Upvote 1
Solution

Forum statistics

Threads
1,215,133
Messages
6,123,231
Members
449,091
Latest member
jeremy_bp001

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