Time value result in on cell used in IF function in another not working

kaia2001

New Member
Joined
Sep 7, 2018
Messages
17
Office Version
  1. 2013
Platform
  1. Windows
Time ranges from below to be compared in IF stated with column [@TIME]:

1ST=5:30 AM to 13:29 PM
2ND=14:00 TO 22:29 PM

The formulas in the Number column and the Week column will not work properly. How do I turn the info in the Time column into the time format I need to use in the Number Column to determine if the time falls between the two logical test?
Number
WEEK
DATE
TIME
MODIFYTS
FORMULA:
=IF(AND([@TIME]>TIMEVALUE("05:30:00"),([@TIME])<=TIMEVALUE("13:29:00")),"1st","")

CELL OUTPUT: blank
FORMULA:

=WEEKNUM([@DATE]+553,2)

CELL OUTPUT: "51"
FORMULA:

=IFERROR(TEXT([@MODIFYTS]-TIME(8,0,0),"mm/dd/yyyy"),"")

CELL OUTPUT: "06/08/2020"
FORMULA:

=IFERROR([@MODIFYTS]-TIME(8,0,0),"")

CELL OUTPUT: "7:06:00 PM"
CELL CONTENTS: 6/9/2020 3:06
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Screenshot of the spreadsheet is attached. The time column i converting to PST and the highlighted column should show if the time in the "TIME" column is 1st shift 2nd shift or 3rd.
 

Attachments

  • Putaway screenshot.jpg
    Putaway screenshot.jpg
    138.6 KB · Views: 5
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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