Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Display the cell reference of the cell that is currently selected. | Excel Worksheet Functions | |||
how to get excel to display blank if reference cell blank | Excel Worksheet Functions |