Solved

Display current day and time in google sheet

Posted on 2014-11-12
5
198 Views
Last Modified: 2014-11-13
Sheet:  https://docs.google.com/spreadsheets/d/1hpp_HYEOVPzBnfCRZwQfpsYuAxkK8e31OVeFzAz4tsg/edit#gid=323269223

The current formula on row 12 is this =IF(E12="","",IF(E12="+","+",text(now()+5/24+E12/24,"ddd hh:mm a")))
However, it appears wrong because it only produces an AM value instead of both.

I need to base the current day and time in cell F12 and the offset in the adjacent E12 cell using a formula.  Using the fill handle, I need the rest of the cells to fill with the current time based on their offsets.

Assistance in correcting this is greatly appreciated.
0
Comment
Question by:frugalmule
[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
  • 2
  • 2
5 Comments
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 40440462
HI,

pls try

=IF(E12=ʺʺ,ʺʺ,IF(E12=ʺ+ʺ,ʺ+ʺ,text(now()+5/24+E12/24,ʺddd hh:mm AM/PMʺ)))

Regards
0
 
LVL 7

Accepted Solution

by:
tomfarrar earned 250 total points
ID: 40440510
This seems to work to:
=IF(ISBLANK(D4),"",TEXT(NOW()+VALUE(D4/24),"ddd hh:mm am/pm"))
0
 
LVL 50

Assisted Solution

by:Rgonzo1971
Rgonzo1971 earned 250 total points
ID: 40440560
Pls try

Corrected formula

=IF(E12="","",TEXT(NOW()+5/24+VALUE(E12/24),"ddd hh:mm am/pm"))

Regards
0
 

Author Closing Comment

by:frugalmule
ID: 40441781
Thank you both very much.  I chose the first one only because it looked more understandable to me than the second one.  However, there may have been a good reason to choose the second one so I would like to open up for discussion.  Thanks very much for the contribution.

1. =IF(ISBLANK(D4),"",TEXT(NOW()+VALUE(D4/24),"ddd hh:mm am/pm"))

2. =IF(E12="","",TEXT(NOW()+5/24+VALUE(E12/24),"ddd hh:mm am/pm")).
0
 

Author Comment

by:frugalmule
ID: 40441808
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…
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…

740 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