Solved

Convert Time to text in excel

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 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