time calculation

  • Thread starter Thread starter pda52
  • Start date Start date
P

pda52

I need to do a check on the time.. if it is after midnight but before 5am
then I need to minus 1 day off of the date. How could I do this?
 
Hi
if A1 stores a date/time value try
=A1-((MOD(A1,1)>=0)*(MOD(A1,1)<=5/24))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top