Solved

Convert Time to text in excel

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
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.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

895 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

15 Experts available now in Live!

Get 1:1 Help Now