Need a formula help:

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
if time is between 7:30 to 14:30 then "Morning","Eve"....


Please help
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try

=IF(AND(MOD(NOW(),1)>="07:30"+0,MOD(NOW(),1)<="14:30"+0),"Daytime","Evening")
 
Upvote 0
Peter, thank and sorry. If A2 is where the time is and not the now thing.

If A2 time falls between 7:30 to 14:30 then "Morning","Eve"....
 
Upvote 0
A1 = <TABLE style="WIDTH: 60pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=80 border=0><COLGROUP><COL style="WIDTH: 60pt; mso-width-source: userset; mso-width-alt: 2925" width=80><TBODY><TR style="HEIGHT: 13.5pt" height=18><TD class=xl68 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 60pt; BORDER-BOTTOM: #ece9d8; HEIGHT: 13.5pt; BACKGROUND-COLOR: transparent" width=80 height=18>8:01:27 AM</TD></TR></TBODY></TABLE>and that is why it is showing Eve though it should be Morning. Can we please change the formula...

Peter thank you but please help again
 
Upvote 0
Joe, sorry. Was sort of desperate. I came up with so many formulas but did not work as expected....;)

My apologies.
 
Upvote 0
Joe, sorry. Was sort of desperate. I came up with so many formulas but did not work as expected....:wink:

My apologies.
There is a good chance that bumping your threads so quickly will actually reduce the chance that people see your question, as that question no longer shows up on the list of threads with no replies (that is the first thing I, and many other usersm look at).

So it is generally recommended not to bump posts until they are at least hours old and have fallen back a few pages (in most cases, I would recommend waiting a full day, as there are people logging on all over the world at different times, and this would allow them all to see it as unanswered).
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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