If cell contains data then tell me if the next cell meets certain criteria

wetsoks

New Member
Joined
Jan 2, 2021
Messages
3
Office Version
  1. 2010
Platform
  1. Windows
Hi, sorry im a relative beginner here in comparison.
I have 2 columns of data column A has the date and column b has the time.
Unfortunately column A is only populated once per day where as column B populates multiple times (up to 50) in the day.
What I want is if column A is not blank then tell me if the data in Column B is >09:00:00 or not

Ultimately I want to count the number of times the first login of the day is >09:00:00 in a month

I feel like i should be able to figure this out but its got me stumped can someone assist?

TIA
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Ultimately I want to count the number of times the first login of the day is >09:00:00 in a month
=COUNTIFS(A:A,"<>",B:B,">="&TIME(9,0,0))
Book1
ABCD
21/1/207:004
39:30
412:00
514:30
617:00
71/2/2019:30
822:00
90:30
101/3/203:00
115:30
128:00
131/4/2010:30
1413:00
1515:30
161/5/2018:00
1720:30
1823:00
191/6/201:30
204:00
216:30
221/7/209:00
Sheet3
Cell Formulas
RangeFormula
D2D2=COUNTIFS(A:A,"<>",B:B,">="&TIME(9,0,0))
 
Upvote 0
I wouldn't use whole column references, and check whether you want an exact time of 9:00:00 to be included in the count or not.
count the number of times the first login of the day is >09:00:00
Adjust ranges if required.

21 01 02.xlsm
BCDE
1
21/01/202116:10:453
39:58:12
47:28:03
52/01/20213:46:22
61:41:18
74:58:35
821:29:08
93/01/202121:48:29
108:28:22
115:09:35
124/01/202111:31:35
133:08:08
149:53:13
155:36:47
16
COUNTIFS
Cell Formulas
RangeFormula
E2E2=COUNTIFS(B2:B100,">0",C2:C100,">"&9/24)
 
Upvote 0
Solution
=COUNTIFS(A:A,"<>",B:B,">="&TIME(9,0,0))
Book1
ABCD
21/1/207:004
39:30
412:00
514:30
617:00
71/2/2019:30
822:00
90:30
101/3/203:00
115:30
128:00
131/4/2010:30
1413:00
1515:30
161/5/2018:00
1720:30
1823:00
191/6/201:30
204:00
216:30
221/7/209:00
Sheet3
Cell Formulas
RangeFormula
D2D2=COUNTIFS(A:A,"<>",B:B,">="&TIME(9,0,0))
thank you!
 
Upvote 0

Forum statistics

Threads
1,214,621
Messages
6,120,568
Members
448,972
Latest member
Shantanu2024

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