Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Converting Time to a Number

Hello,
I used the following formula to convert time to a number:

=CONVERT(P14*24,"hr","mn")

This works perfectly for some time, then I will open the spreadsheet and
will receive a "Data Loss" error. When I open the spreadsheet, the cell will
then have the following: =#N/A

Any help is appreciated.

Connie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Converting Time to a Number

Not sure why you're getting that error. My best guess is it has something to
do with the Analysis ToolPak add-in which is required for the CONVERT
function.

You really don't need to use the CONVERT function. This will do the same
thing:

=P14*1440

Format as General or Number

--
Biff
Microsoft Excel MVP


"Connie" wrote in message
...
Hello,
I used the following formula to convert time to a number:

=CONVERT(P14*24,"hr","mn")

This works perfectly for some time, then I will open the spreadsheet and
will receive a "Data Loss" error. When I open the spreadsheet, the cell
will
then have the following: =#N/A

Any help is appreciated.

Connie



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Converting Time to a Number

Hi T.

Thank you for your response. As you say, didn't need to use CONVERT.
Instead, I used (D14-INT(D14))*24*3600/60. This works perfectly. P14*1440
changes the cell format to Time, even though I make it General or Number.

Connie


"T. Valko" wrote:

Not sure why you're getting that error. My best guess is it has something to
do with the Analysis ToolPak add-in which is required for the CONVERT
function.

You really don't need to use the CONVERT function. This will do the same
thing:

=P14*1440

Format as General or Number

--
Biff
Microsoft Excel MVP


"Connie" wrote in message
...
Hello,
I used the following formula to convert time to a number:

=CONVERT(P14*24,"hr","mn")

This works perfectly for some time, then I will open the spreadsheet and
will receive a "Data Loss" error. When I open the spreadsheet, the cell
will
then have the following: =#N/A

Any help is appreciated.

Connie




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Converting Time to a Number

P14*1440 changes the cell format to Time,
even though I make it General or Number.


That's just Excel being "helpful".

After Excel is done being "helpful" just change the format to General or
Number.


--
Biff
Microsoft Excel MVP


"Connie" wrote in message
...
Hi T.

Thank you for your response. As you say, didn't need to use CONVERT.
Instead, I used (D14-INT(D14))*24*3600/60. This works perfectly.
P14*1440
changes the cell format to Time, even though I make it General or Number.

Connie


"T. Valko" wrote:

Not sure why you're getting that error. My best guess is it has something
to
do with the Analysis ToolPak add-in which is required for the CONVERT
function.

You really don't need to use the CONVERT function. This will do the same
thing:

=P14*1440

Format as General or Number

--
Biff
Microsoft Excel MVP


"Connie" wrote in message
...
Hello,
I used the following formula to convert time to a number:

=CONVERT(P14*24,"hr","mn")

This works perfectly for some time, then I will open the spreadsheet
and
will receive a "Data Loss" error. When I open the spreadsheet, the
cell
will
then have the following: =#N/A

Any help is appreciated.

Connie






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
converting number to time bourbon84 Excel Discussion (Misc queries) 3 August 21st 06 10:32 PM
Converting a decimal number into time M.A.Tyler Excel Discussion (Misc queries) 7 May 26th 06 04:39 AM
converting a number to time SheriTingle Excel Worksheet Functions 2 March 14th 06 03:38 PM
Converting a calculated number into time KipHartman New Users to Excel 3 February 24th 06 08:28 PM
Converting whole number to TIME B. Baumgartner Excel Discussion (Misc queries) 3 July 1st 05 11:26 PM


All times are GMT +1. The time now is 12:18 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"