×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Converting Time to Whole Numbers in Excel

 Forum Search FAQs Links MVPs

## Converting Time to Whole Numbers in Excel

(OP)
I am trying to convert for example 10:00 A.M. from an excel cell that has time format to 10.00.  Another example is trying to convert 17:30 Military time to 5.5.

Can this be done?  I really appreciate your help and suggestions.

thanks
Replies continue below

### RE: Converting Time to Whole Numbers in Excel

Not sure what you are trying to do.

If you take the fractional part of the serial number time format and multiply that by 24, you have military time in decimal format.

TTFN

### RE: Converting Time to Whole Numbers in Excel

To expand on IRstuff's post, if your time value is in cell A1, then the following will convert it to a decimal time:

=24*(RIGHT(A1,LEN(A1)-(FIND(".",VALUE(A1))-1)))

Ken

### RE: Converting Time to Whole Numbers in Excel

(OP)
I placed 11:30 in cell A1, then I place the formula in cell B1.  The result it gave me was 12:00.

What I am trying to get is 11.5.

I appreciate your help.  thanks

### RE: Converting Time to Whole Numbers in Excel

Change the formatting of cell B1 to "General" or "Number". Looks like Excel sees that formual (when first entered) and automatically changes the formatting of the cell to Time or Custom.

Ken

### RE: Converting Time to Whole Numbers in Excel

Here's another way, again presuming the time is located in cell A1:

=HOUR(A1)+MINUTE(A1)/60

As KenBolen mentioned in his solution, the format must be set to "Number".

-InspEngr

### RE: Converting Time to Whole Numbers in Excel

should be simpler than that:

enter 11:30 pm in A1

in B1 put =24*A1

format B1 for "number"

B1 should read 23.5

TTFN

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

#### Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!