AND with condition of time

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi the formula below is not working

=AND(B41="HR",C41>"8:00 am")

The problem is with C41>"8:00 am"

Any idea would be appreciated it. Thank you very much

ifs.xlsx
ABCD
40NameDeptStart TimeDept =HR , Start Time > 8:00
41MaryIT8:17 AMFALSE
42AlexSales8:04 AMFALSE
43DavidHR8:10 AMFALSE
44SarahMarketing7:59 AMFALSE
45LindaHR8:14 AMFALSE
46TamIT8:17 AMFALSE
47SamSales7:59 AMFALSE
48AliHR7:54 AMFALSE
49EricMarketing8:20 AMFALSE
50AnnaHR8:12 AMFALSE
AND
Cell Formulas
RangeFormula
D41:D50D41=AND(B41="HR",C41>"8:00 am")
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi,

Try it this way:

Book3.xlsx
ABCDEF
40NameDeptStart TimeDept =HR , Start Time > 8:00OROR
41MaryIT8:17:00 AMFALSEFALSEFALSE
42AlexSales8:04:00 AMFALSEFALSEFALSE
43DavidHR8:10:00 AMTRUETRUETRUE
44SarahMarketing7:59:00 AMFALSEFALSEFALSE
45LindaHR8:14:00 AMTRUETRUETRUE
46TamIT8:17:00 AMFALSEFALSEFALSE
47SamSales7:59:00 AMFALSEFALSEFALSE
48AliHR7:54:00 AMFALSEFALSEFALSE
49EricMarketing8:20:00 AMFALSEFALSEFALSE
50AnnaHR8:12:00 AMTRUETRUETRUE
Sheet889
Cell Formulas
RangeFormula
D41:D50D41=AND(B41="HR",C41>8/24)
E41:E50E41=AND(B41="HR",C41>TIME(8,0,0))
F41:F50F41=AND(B41="HR",C41>TIMEVALUE("8:00 am"))
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,044
Members
449,063
Latest member
ak94

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