can someone work on this if(mod) code

zilch4ry

Board Regular
Joined
Feb 27, 2011
Messages
76
hi,

earlier i asked a question and had really helpful answers however not all worked. Peter_SS posted this answer for me
Code:
=IF(MOD(J3,1)<14/24,"Shift 1","Shift2")
J3 is the cell which had =NOW()
This worked well but can someone add onto this code stating that the times between 22:00 and 06:00 says "closed"

If anybody can do this it will be hugely appreciated

Thanks in advance,


tom
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Maybe

=LOOKUP(HOUR(J3+"2:"),{0,8,16},{"Closed","Shift1","Shift2"})
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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