?
Solved

EXCEL time/date

Posted on 2013-11-29
8
Medium Priority
?
328 Views
Last Modified: 2013-11-29
Hi,
Cell A1 shows the date and time using Now().
I wish a different cell to show that date minus 1 if the time is less than 08:05.
I have tried many permutations of datevalue and timevalue but i'm slowly losing the will to live.
Any help is greatly appreciated.
0
Comment
Question by:Stephen Byrom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 4

Expert Comment

by:andrew_man
ID: 39686424
=IF(NOW()-TODAY()<TIME(8,5,0),-1,0)
0
 
LVL 1

Author Comment

by:Stephen Byrom
ID: 39686440
Thanks for the speedy response Andrew.
If I place that formula in a cell it just shows lots of hash marks, no matter how large I make the cell or whatever format I change it to.
Is there a way to use the IF statement in the target cell?
Such as
IF cell A1 is less than time 08:05 then show yesterday's date and time, else show today's date and time

Thanks again
0
 
LVL 4

Expert Comment

by:andrew_man
ID: 39686441
Can you attach your file here?  I will help to fix.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Author Comment

by:Stephen Byrom
ID: 39686445
Ok.
This is still in it's embryo stage
Production.xlsm
0
 
LVL 4

Accepted Solution

by:
andrew_man earned 2000 total points
ID: 39686452
Okay! I dun know!

=NOW()-IF(NOW()-TODAY()<TIME(8,5,0),-1,0)

Thanks!
Production.xlsm
0
 
LVL 4

Expert Comment

by:andrew_man
ID: 39686454
Okay! I dun know you dun know the basic function.  Sorry!  

Keep in touch!

Andrew
0
 
LVL 1

Author Closing Comment

by:Stephen Byrom
ID: 39686462
Thanks for your time Andrew (no pun intended)
As you can probably guess, I will be asking a few more questions on here before I finish that workbook :)
0
 
LVL 4

Expert Comment

by:andrew_man
ID: 39686466
Good!  I can help you!

Keep in touch!

Andrew Man from Hong Kong
andrew.man@live.cn
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question