Reputation: 4518
I have an excel sheet in which one of the column is transaction time and its format is HH:MM:SS. But I need transaction time in HHMM format so that i can upload that excel sheet into my application. As of now i am manually formatting each row, is there any way i can apply required format to whole column at once?
Upvotes: 9
Views: 114273
Reputation: 1
For example, type .633
in B2
cell. When we convert 0.633
to time means we convert 0.633
day. We consider 24 hours as 1 day.
Follow the steps:
hh:mm:ss
from right list. hhmmss
in the right side just under 'Type:'.You may read this tutorial from msofficeworld: Format Time in Excel
Upvotes: -1
Reputation: 3678
If for your eyes only:
select whole column, right click somewhere in your selection, go to Format Cells, tab Number, Catergory Custom.
Type HHmm
Press OK
done.
If you need this as the actual value:
make a column containing the following formula =TEXT(<targetcell>;"HHmm")
Note that it is language-dependant whether you need a , or ; in that formula.
Upvotes: 11
Reputation: 377
You have two options:
A1
contains the text 15:48:58
. You use the formula in another cell (say B1) as =TEXT(HOUR(A1),"00")&TEXT(MINUTE(A1),"00")
. This gives the output as 1548
.Upvotes: 2