date and time stamp between two other date and time stamps

qwerty78

New Member
Joined
Jun 4, 2019
Messages
3
Hi,

im trying to build a formula that can check a date and time stamp is between two other calculated date and time stamps.
If this was a value issue I would use a IF statement e.g. answer 10 between 5 and 20 =IF(and(a1<=5,a1>=20,"Yes","No")

But when it comes to date and time stamps I want to aid thelogic by using the date and time stamp to give me the partial upper and lowerrange date and then add the time. Ive tried to concatenate but the value never works.
I know that INT can give me the date but how do I code theformula to start at the lower point of 8:00:00 am and the upper of 18:00:00

Example if A1 has a calculated date and time stamp I needthe formula in B1 to say “yes” or “no” if A1 is between the lower or uppertimes
A1=01/07/2019 9:00:00 AM
B1=IF(


 

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.
Welcome to Mr Excel forum,

Could you provide examples along with expected results?

By the way, to check if 10 is between 5 and 20 you should use
=IF(AND(A1>=5,A1<=20),"Yes","No")

M.
 
Upvote 0

Forum statistics

Threads
1,224,755
Messages
6,180,758
Members
452,996
Latest member
nelsonsix66

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