#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default NOW AND TODAY

Is ther anyway to combine the now and today fuctions in a logic formula?
Somehting like....
if it from 7am to 11:59pm then display today and if it between 12am and 7am
display yesterdays date

Any help would be greatly appreciated

Thank You
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default NOW AND TODAY

Put a time in A1 and in B1 enter:

=IF(A10.2916666666,TODAY(),TODAY()-1) and format as a date

--
Gary''s Student - gsnu200786
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default NOW AND TODAY

Try this:

=IF(MOD(NOW(),1)=7/24,TODAY(),TODAY()-1)

Hope this helps.

Pete

On May 17, 12:48*pm, THill wrote:
Is ther anyway to combine the now and today fuctions in a logic formula?
Somehting like....
if it from 7am to 11:59pm then display today and if it between 12am and 7am
display yesterdays date

Any help would be greatly appreciated

Thank You


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default NOW AND TODAY

Thank you so much


"Pete_UK" wrote:

Try this:

=IF(MOD(NOW(),1)=7/24,TODAY(),TODAY()-1)

Hope this helps.

Pete

On May 17, 12:48 pm, THill wrote:
Is ther anyway to combine the now and today fuctions in a logic formula?
Somehting like....
if it from 7am to 11:59pm then display today and if it between 12am and 7am
display yesterdays date

Any help would be greatly appreciated

Thank You



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default NOW AND TODAY

You're welcome.

Pete

On May 17, 1:45*pm, THill wrote:
Thank you so much



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default NOW AND TODAY

Try this:

=TODAY()-(HOUR(NOW())<7)

Format as DATE

--
Biff
Microsoft Excel MVP


"THill" wrote in message
...
Is ther anyway to combine the now and today fuctions in a logic formula?
Somehting like....
if it from 7am to 11:59pm then display today and if it between 12am and
7am
display yesterdays date

Any help would be greatly appreciated

Thank You



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default NOW AND TODAY

Neat one, Biff.

Pete

On May 17, 5:42*pm, "T. Valko" wrote:
Try this:

=TODAY()-(HOUR(NOW())<7)

Format as DATE

--
Biff
Microsoft Excel MVP

"THill" wrote in message

...



Is ther anyway to combine the now and today fuctions in a logic formula?
Somehting like....
if it from 7am to 11:59pm then display today and if it between 12am and
7am
display yesterdays date


Any help would be greatly appreciated


Thank You- Hide quoted text -


- Show quoted text -


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default NOW AND TODAY

If it's just for display purposes

=NOW()-7/24

format as date

If you want the underlying value to be a date only, add an INT function, i.e.

=INT(NOW()-7/24)

"T. Valko" wrote:

Try this:

=TODAY()-(HOUR(NOW())<7)

Format as DATE

--
Biff
Microsoft Excel MVP


"THill" wrote in message
...
Is ther anyway to combine the now and today fuctions in a logic formula?
Somehting like....
if it from 7am to 11:59pm then display today and if it between 12am and
7am
display yesterdays date

Any help would be greatly appreciated

Thank You




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default NOW AND TODAY

Even better!

--
Biff
Microsoft Excel MVP


"daddylonglegs" wrote in message
...
If it's just for display purposes

=NOW()-7/24

format as date

If you want the underlying value to be a date only, add an INT function,
i.e.

=INT(NOW()-7/24)

"T. Valko" wrote:

Try this:

=TODAY()-(HOUR(NOW())<7)

Format as DATE

--
Biff
Microsoft Excel MVP


"THill" wrote in message
...
Is ther anyway to combine the now and today fuctions in a logic
formula?
Somehting like....
if it from 7am to 11:59pm then display today and if it between 12am and
7am
display yesterdays date

Any help would be greatly appreciated

Thank You






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Before today MAustin Excel Discussion (Misc queries) 2 October 2nd 07 04:54 PM
=TODAY() Steved Excel Worksheet Functions 7 June 12th 07 10:53 PM
IF TODAY equals date in cell A10, or if TODAY is beyond that date SoupNazi Excel Worksheet Functions 4 April 23rd 07 01:14 AM
How is everyone today? MommaQ Excel Discussion (Misc queries) 0 March 17th 05 03:15 PM
=IF(OR(TODAY()G9),"Pass","Overdue") Why doe it not wo. Fkor Excel Discussion (Misc queries) 3 March 10th 05 08:29 AM


All times are GMT +1. The time now is 04:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"