Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 354
Default Formating into date and time

Hello,

I am building a text using multiple cell values. Here is an extract

= 'Contract variables'!B12 & " on " & 'Contract variables'!B11 & " at the
inspection site"

problem being that it return/displays

'0.375 on 39294 at the inspection site'

instead of

'9:00 on 2007/07/29 at the inspection site'

How can I convert the date and time values into proper values?

Thank you,

Daniel P
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default Formating into date and time

Daniel,

You can formate it in the formula:

= TEXT('Contract variables'!B12, "mm/dd/yy") & " on " & text('Contract
variables'!B11,"hh:mm:ss") & " at the inspection site"
--
Earl Kiosterud
www.smokeylake.com

Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------
"Daniel" wrote in message
...
Hello,

I am building a text using multiple cell values. Here is an extract

= 'Contract variables'!B12 & " on " & 'Contract variables'!B11 & " at the
inspection site"

problem being that it return/displays

'0.375 on 39294 at the inspection site'

instead of

'9:00 on 2007/07/29 at the inspection site'

How can I convert the date and time values into proper values?

Thank you,

Daniel P



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 354
Default Formating into date and time

I've never used the text() function before. Thank you for making me aware of
it!

Daniel P




"Earl Kiosterud" wrote:

Daniel,

You can formate it in the formula:

= TEXT('Contract variables'!B12, "mm/dd/yy") & " on " & text('Contract
variables'!B11,"hh:mm:ss") & " at the inspection site"
--
Earl Kiosterud
www.smokeylake.com

Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------
"Daniel" wrote in message
...
Hello,

I am building a text using multiple cell values. Here is an extract

= 'Contract variables'!B12 & " on " & 'Contract variables'!B11 & " at the
inspection site"

problem being that it return/displays

'0.375 on 39294 at the inspection site'

instead of

'9:00 on 2007/07/29 at the inspection site'

How can I convert the date and time values into proper values?

Thank you,

Daniel P




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formating a timestamp as a date and time. Dan Excel Worksheet Functions 3 April 20th 07 05:38 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 02:48 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Worksheet Functions 1 December 2nd 04 12:04 AM


All times are GMT +1. The time now is 11:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"