Converting Time to a Number

  • Thread starter Thread starter Connie
  • Start date Start date
C

Connie

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
 
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
 
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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

How can we convert OST to PDF file format? 1
How to Convert EML to PST? 2
convert time 2
convert to minutes 6
Convert Time 3
coverting h:mm to decimal 2
Converting time (raw) into ss:mm 1
Convert Time to Number 1

Back
Top