Solved

EXCEL time/date

Posted on 2013-11-29
8
284 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
  • 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
 
LVL 1

Author Comment

by:Stephen Byrom
ID: 39686445
Ok.
This is still in it's embryo stage
Production.xlsm
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 4

Accepted Solution

by:
andrew_man earned 500 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now