Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Convert Time to text in excel

Posted on 2012-03-30
5
Medium Priority
?
285 Views
Last Modified: 2012-04-04
Hi,

I am having a problem. I have the time as below (see picture)

2:30:22 PM

Now I want to conver this into JUST

14:30

in text format as prior data is in similar format (when I say prior data, the data available to me from a point before)

The prior data is entered on excel as this

'14:30 by a user...then the use of computerized scripts made the time look like above. But for reporting purposes, I need to make them look like old data. Thats the history of this.

Thanks for your time!
Temp.PNG
0
Comment
Question by:Shanan212
  • 3
5 Comments
 
LVL 7

Expert Comment

by:Alex_W
ID: 37788006
Have you tried right clicking the column containing times, click Format Cells..., choose Custom then hh:mm?
0
 
LVL 13

Author Comment

by:Shanan212
ID: 37788029
if I hit that, then the time comes as intended (14:30)

However, when I click the time/cell where the time is located

it shows "2:30:22 PM" on formula bar.

I want the core data to be changed though

Thanks!
0
 
LVL 13

Accepted Solution

by:
Shanan212 earned 0 total points
ID: 37788169
I solved it by copying the time, pasting it in notepad, then copying from notepad to excel fields (pre-formatted to text)
0
 
LVL 81

Expert Comment

by:byundt
ID: 37788412
Shanan212,
Given the formula you are using in your subsequent question, it doesn't matter whether the time is in text or time format.
=IF(COUNTA(A2:B2)<2,"",MOD(B2-A2,1))

For this reason, I suggest following Alex_W's suggestion of changing the format of that column to h:mm     This is simpler than taking a round trip through Notepad.

Brad
0
 
LVL 13

Author Closing Comment

by:Shanan212
ID: 37805151
Solved
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question