Solved

Display current day and time in google sheet

Posted on 2014-11-12
5
186 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
  • 2
  • 2
5 Comments
 
LVL 48

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 48

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Google is more than just a search engine. Over the years the company has developed a wide range of online services that are readily available to all users. This article highlights how one can use Google services for simple project management.
If your app took Google’s lash recently, here are the 5 most likely reasons.
This Micro Tutorial will demonstrate the easy use of Gmail embedding images in your email so the recipient of your email can view them in context.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

747 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

9 Experts available now in Live!

Get 1:1 Help Now