Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

=CONCATENATE("00:0",L4,":",N4) 1

Status
Not open for further replies.

metalboy

Technical User
Apr 1, 2004
97
GB
I am using =CONCATENATE("00:0",L4,":",N4) to have a field show the time in 00:00:00 but when the secons from N4 is only 1 digit it will show 13:30:7 instead of 13:30:07.

Any ideas to get this to show correctly?

Kindest regards to everyone.

“It is a mistake to think you can solve any major problems just with potatoes.”
Douglas Adams
 
Hi metalboy,

Try:
="00:0"&TEXT(L4,"00")&":"&TEXT(N4,"00")

Cheers
 
Douglas Adams

Only problem with your approch is that the result is TEXT and it is NOT TIME!

I'd convert to TIME and then FORMAT. Your application will be much more versitile.
[tt]
=TIME(0,L4,N4)
[tt]
Use an appropriate TIME FORMAT or a CUSTOM FORMAT.

Skip,

[glasses] [red]Be advised:[/red] Researchers have found another Descartes trueism, "Cogito ergo spud."
"I think; therefore, I YAM!
[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top