Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date/Time function 1

Status
Not open for further replies.

N1755L

Computer
Dec 27, 2002
17
US
Good morning all,

With this formula:

=TEXT(NOW(),"dddd, mmmm dd, yyyy, hh:mm")

I have an output resembling this:

Monday, October 03, 2005, 10:40

I would like it to look as such:

Monday, October 03, 2005, 10:40 hrs

I've tried countless combinations of quotation marks and concatentations, but haven't yet hit on the right combination that will allow me to add the "hrs" text at the end of this string (no, I cannot add it in the column immediately to the right, and cannot add an extra column, has to be in the same cell).

There has to be a way...

Thanks.
 
Replies continue below

Recommended for you

How about this?

=TEXT(NOW(),"dddd, mmmm dd, yyyy, hh:mm") & " hrs"

works for me.
 
That outta do it.

=====================================
Eng-tips forums: The best place on the web for engineering discussions.
 
Or

=CONCATENATE(TEXT(NOW(),"dddd, mmmm dd, yyyy, hh:mm")," hrs")

Read the Eng-Tips Site Policies at FAQ731-376
 
That does it alright,

I remember putting the concatenation at the end like that, and using quotation marks... musta used 'em within the brackets... but thought I'd tried it like that as well. I'll be darned! Thanks guys.
 
Of course you can also create a custom format for the cell containing just the =now() formula as follows:

dddd, mmmm, dd, yyyy hh:mm "hrs"

 
Cool.

=====================================
Eng-tips forums: The best place on the web for engineering discussions.
 
Cool indeed. that opens up a lot of other possibilities/ideas...

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top