Solved

Convert Time to text in excel

Posted on 2012-03-30
5
216 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 80

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now