Need If Formula

faraz502

Board Regular
Joined
Mar 26, 2014
Messages
127
Office Version
  1. 2016
Platform
  1. Windows
I have a sheet in this sheet I need a formula I used the below-mentioned formula but gives me always the first condition.

DateTimeShift
7/11/2023 13:2013day
7/11/2023 1:2001day
7/11/2023 2:2002day

Currently used Below mentioned Formula.

DateTimeShift
7/11/2023 13:2013=IF(HOUR(AD3)<=10,"day","night")
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
it looks like the Time column is formatted as Text, not numbers.
and is AD column the left column or the middle column?

Using the xl2bb add in can help the forum help you. Link below.
 
Upvote 0
Upvote 0
Assuming that AD3 is the column labelled time, then you just need
Excel Formula:
=IF(AD3<=10,"day","night")
 
Upvote 0

Forum statistics

Threads
1,215,353
Messages
6,124,462
Members
449,163
Latest member
kshealy

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