IF with OR and Today Functionality

Shinianne

New Member
Joined
Aug 6, 2018
Messages
24
Office Version
  1. 365
Hi,

Is it possible to associate =today() to if

this is an example: the current tab i'd like for it to change from EMEA to AMER if today the work time is 10 PM onwards and be change to EMEA if the shift was changed to 5PM, is that possible can i kindly ask for help please thank you

[TABLE="width: 1404"]
[TR]
[TD]Absent[/TD]
[TD]AB[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Vacation Leave[/TD]
[TD]VL[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Half Day[/TD]
[TD]HD[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Adjusted[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]6-May[/TD]
[TD]7-May[/TD]
[TD]8-May[/TD]
[TD]9-May[/TD]
[TD]10-May[/TD]
[TD]11-May[/TD]
[TD]12-May[/TD]
[TD]13-May[/TD]
[TD]14-May[/TD]
[TD]15-May[/TD]
[TD]16-May[/TD]
[TD]17-May[/TD]
[TD]18-May[/TD]
[TD]19-May[/TD]
[TD]20-May[/TD]
[TD]21-May[/TD]
[TD]22-May[/TD]
[/TR]
[TR]
[TD]NAME[/TD]
[TD]LEAD[/TD]
[TD]Status[/TD]
[TD]CURRENT[/TD]
[TD]NEW [/TD]
[TD]IN[/TD]
[TD]OUT[/TD]
[TD]Monday[/TD]
[TD]Tuesday[/TD]
[TD]Wednesday[/TD]
[TD]Thursday[/TD]
[TD]Friday[/TD]
[TD]Saturday[/TD]
[TD]Sunday[/TD]
[TD]Monday[/TD]
[TD]Tuesday[/TD]
[TD]Wednesday[/TD]
[TD]Thursday[/TD]
[TD]Friday[/TD]
[TD]Saturday[/TD]
[TD]Sunday[/TD]
[TD]Monday[/TD]
[TD]Tuesday[/TD]
[TD]Wednesday[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]Billable[/TD]
[TD]EMEA[/TD]
[TD]EMEA[/TD]
[TD]5:00 AM[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TD]
[TD] [/TD]
[TD]Billable[/TD]
[TD]AMER[/TD]
[TD]AMER[/TD]
[TD]2:00 PM[/TD]
[TD]11:00 PM[/TD]
[TD]2PM[/TD]
[TD]2PM[/TD]
[TD]2PM[/TD]
[TD]2PM[/TD]
[TD]2PM[/TD]
[TD]RD[/TD]
[TD]RD[/TD]
[TD]8PM[/TD]
[TD]8PM[/TD]
[TD]8PM[/TD]
[TD]8PM[/TD]
[TD]8PM[/TD]
[TD]RD[/TD]
[TD]RD[/TD]
[TD]8PM[/TD]
[TD]8PM[/TD]
[TD]8PM[/TD]
[/TR]
[/TABLE]
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hello,

I think I figured out what you need. I would suggest adding a cell that says Today's Date somewhere on your sheet and using the Today() function to automatically update the date each time you open the workbook. In my example below, Today is in A1 and =TODAY() is in B1. Current is in A3. I set the formula to see if the date in cell B1 matches the date in row 3 and the return value is 10PM then it will give the New column AMER. If not then it will use the current value as the new value.

[TABLE="width: 268"]
<colgroup><col span="2"><col><col></colgroup><tbody>[TR]
[TD]Today[/TD]
[TD="align: right"]6/10/2019[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Current[/TD]
[TD]New[/TD]
[TD="align: right"]6/9/2019[/TD]
[TD="align: right"]6/10/2019[/TD]
[/TR]
[TR]
[TD]EMEA[/TD]
[TD]AMER[/TD]
[TD]9PM[/TD]
[TD]10PM[/TD]
[/TR]
[TR]
[TD]EMEA[/TD]
[TD]EMEA[/TD]
[TD]7PM[/TD]
[TD]8PM[/TD]
[/TR]
</tbody>[/TABLE]

CurrentNew6/9/20196/10/2019
EMEA=IF(INDEX($C:$D,MATCH($B$1,$3:$3,0)*0,2)="10PM","AMER",A4)9PM10PM
EMEA=IF(INDEX($C:$D,MATCH($B$1,$3:$3,0)*0,2)="10PM","AMER",A5)7PM8PM

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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