Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bruce
 
Posts: n/a
Default How to combine milliseconds with date/time reference and display?

I am trying to combine a date/time reference (B10) with another column (C10)
containing milliseconds. I would like to display the date/time and the
milliseconds in another column (D10) like dd/mm/yyyy hh:mm:ss.000.

I have tried the following, but none seems to work:
=DATEVALUE(B10)+TIMEVALUE(B10)+TIME(0,0,C10)
=B10+TIME(0,0,C10)

Both formulas result appears the same as the reference time in B10 even
after selecting the custom format of dd/mm/yyyy hh:mm:ss.000.

Appreciate a suggestion.

Thanks,
Bruce

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default How to combine milliseconds with date/time reference and display?

Hi Bruce,

If C10 is 1 millisecond, what value does it have? 1 or .001?
What are the values of B10 and C10 and what results do you get from the formulas shown?

--
Kind regards,

Niek Otten

"Bruce" wrote in message ...
|I am trying to combine a date/time reference (B10) with another column (C10)
| containing milliseconds. I would like to display the date/time and the
| milliseconds in another column (D10) like dd/mm/yyyy hh:mm:ss.000.
|
| I have tried the following, but none seems to work:
| =DATEVALUE(B10)+TIMEVALUE(B10)+TIME(0,0,C10)
| =B10+TIME(0,0,C10)
|
| Both formulas result appears the same as the reference time in B10 even
| after selecting the custom format of dd/mm/yyyy hh:mm:ss.000.
|
| Appreciate a suggestion.
|
| Thanks,
| Bruce
|


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stefi
 
Posts: n/a
Default How to combine milliseconds with date/time reference and display?

Enter in D10, formatted like dd/mm/yyyy hh:mm:ss.000
=B10+(C10/86400)

Regards,
Stefi

€˛Bruce€¯ ezt Ć*rta:

I am trying to combine a date/time reference (B10) with another column (C10)
containing milliseconds. I would like to display the date/time and the
milliseconds in another column (D10) like dd/mm/yyyy hh:mm:ss.000.

I have tried the following, but none seems to work:
=DATEVALUE(B10)+TIMEVALUE(B10)+TIME(0,0,C10)
=B10+TIME(0,0,C10)

Both formulas result appears the same as the reference time in B10 even
after selecting the custom format of dd/mm/yyyy hh:mm:ss.000.

Appreciate a suggestion.

Thanks,
Bruce

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stefi
 
Posts: n/a
Default How to combine milliseconds with date/time reference and displ

Yes, I forgot to tell that I supposed in C10 0.001!
Stefi


€˛Stefi€¯ ezt Ć*rta:

Enter in D10, formatted like dd/mm/yyyy hh:mm:ss.000
=B10+(C10/86400)

Regards,
Stefi

€˛Bruce€¯ ezt Ć*rta:

I am trying to combine a date/time reference (B10) with another column (C10)
containing milliseconds. I would like to display the date/time and the
milliseconds in another column (D10) like dd/mm/yyyy hh:mm:ss.000.

I have tried the following, but none seems to work:
=DATEVALUE(B10)+TIMEVALUE(B10)+TIME(0,0,C10)
=B10+TIME(0,0,C10)

Both formulas result appears the same as the reference time in B10 even
after selecting the custom format of dd/mm/yyyy hh:mm:ss.000.

Appreciate a suggestion.

Thanks,
Bruce

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bruce
 
Posts: n/a
Default How to combine milliseconds with date/time reference and displ

Hi Stefi,

Your suggestion worked! The date/time reference was actually a text string
and not a serial number as I thought. Therefore, once I converted it using
the datevalue() and timevalue() functions and using your suggestion
C10/86400, it worked! Here is my final formula:
=DATEVALUE(B10)+TIMEVALUE(B10)+C10/86400
using custom format dd/mm/yyyy hh:mm:ss.000
RESULT: 04/21/06 11:16:34.799

Thanks for your help!
Bruce

"Stefi" wrote:

Yes, I forgot to tell that I supposed in C10 0.001!
Stefi


€˛Stefi€¯ ezt Ć*rta:

Enter in D10, formatted like dd/mm/yyyy hh:mm:ss.000
=B10+(C10/86400)

Regards,
Stefi

€˛Bruce€¯ ezt Ć*rta:

I am trying to combine a date/time reference (B10) with another column (C10)
containing milliseconds. I would like to display the date/time and the
milliseconds in another column (D10) like dd/mm/yyyy hh:mm:ss.000.

I have tried the following, but none seems to work:
=DATEVALUE(B10)+TIMEVALUE(B10)+TIME(0,0,C10)
=B10+TIME(0,0,C10)

Both formulas result appears the same as the reference time in B10 even
after selecting the custom format of dd/mm/yyyy hh:mm:ss.000.

Appreciate a suggestion.

Thanks,
Bruce



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stefi
 
Posts: n/a
Default How to combine milliseconds with date/time reference and displ

Hi Bruce,

You are welcome, thanks for the feedback! Your case shows that it's
advisable to check data formats instead of guessing them!

Regards,
Stefi


€˛Bruce€¯ ezt Ć*rta:

Hi Stefi,

Your suggestion worked! The date/time reference was actually a text string
and not a serial number as I thought. Therefore, once I converted it using
the datevalue() and timevalue() functions and using your suggestion
C10/86400, it worked! Here is my final formula:
=DATEVALUE(B10)+TIMEVALUE(B10)+C10/86400
using custom format dd/mm/yyyy hh:mm:ss.000
RESULT: 04/21/06 11:16:34.799

Thanks for your help!
Bruce

"Stefi" wrote:

Yes, I forgot to tell that I supposed in C10 0.001!
Stefi


€˛Stefi€¯ ezt Ć*rta:

Enter in D10, formatted like dd/mm/yyyy hh:mm:ss.000
=B10+(C10/86400)

Regards,
Stefi

€˛Bruce€¯ ezt Ć*rta:

I am trying to combine a date/time reference (B10) with another column (C10)
containing milliseconds. I would like to display the date/time and the
milliseconds in another column (D10) like dd/mm/yyyy hh:mm:ss.000.

I have tried the following, but none seems to work:
=DATEVALUE(B10)+TIMEVALUE(B10)+TIME(0,0,C10)
=B10+TIME(0,0,C10)

Both formulas result appears the same as the reference time in B10 even
after selecting the custom format of dd/mm/yyyy hh:mm:ss.000.

Appreciate a suggestion.

Thanks,
Bruce

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
Display the cell reference of the cell that is currently selected. Emlou85 via OfficeKB.com Excel Worksheet Functions 5 March 18th 06 10:29 AM
how to get excel to display blank if reference cell blank silent1(not) Excel Worksheet Functions 1 December 2nd 05 02:49 PM


All times are GMT +1. The time now is 06:03 PM.

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

About Us

"It's about Microsoft Excel"