Shinianne

New Member
Joined
Aug 6, 2018
Messages
24
Office Version
  1. 365
Hi can I please ask for help is it possible to use IF to Time?


If its between 08:00 - 15:59 CST time it will be AMER
If its between 16:00 - 23:59 CST Time APAC
If its between 00:00 - 07:59 CST Time EMEA


I tried =IF(AB2<TIME(15,59,0),"AMER",IF(AB2<TIME(23,59,0),"APAC",IF(AB2<TIME(7,59,0),"EMEA")))


and its not working :(
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
if your time in A1, try

=IF(A1>=TIME(16,0,0),"AMER",IF(A1>=TIME(8,0,0),"APAC","EMEA"))
 
Last edited:
Upvote 0
if your time in A1, try

=IF(A1>=TIME(16,0,0),"AMER",IF(A1>=TIME(8,0,0),"APAC","EMEA"))


Hi I tried it but its not falling on the criteria,

TimeREGION
04:27:01AMER
04:23:46AMER
03:36:45AMER
03:17:53AMER

<colgroup><col><col></colgroup><tbody>
</tbody>

Its showing AMER on 4:00:00 CST which should show as EMEA
 
Upvote 0
works for me


Book1
AB
1TimeREGION
204:27:01EMEA
304:23:46EMEA
409:36:45APAC
523:17:53AMER
Sheet1
Cell Formulas
RangeFormula
B2=IF(A2>=TIME(16,0,0),"AMER",IF(A2>=TIME(8,0,0),"APAC","EMEA"))
 
Upvote 0
works for me

AB
1TimeREGION
204:27:01EMEA
304:23:46EMEA
409:36:45APAC
523:17:53AMER

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
B2=IF(A2>=TIME(16,0,0),"AMER",IF(A2>=TIME(8,0,0),"APAC","EMEA"))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

The formula for my time is =TEXT(L2,"HH:MM:SS") if i use the formula it wouldnt work for me ..
 
Upvote 0
The formula for my time is =TEXT(L2,"HH:MM:SS") if i use the formula it wouldnt work for me ..

Hi, what exactly do you have in L2? If it's a date and time and the text() function is an attempt to extract just the time then use this formula instead and apply a number format of HH:MM:SS to display it the way want.

=MOD(L2,1)
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,399
Members
448,957
Latest member
Hat4Life

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