Display seconds always "00"

L

Legacy 143009

Guest
Hi,

TEXT(A1,"hh:mm:ss##:##:00") is not working. How can I format the time as it will show seconds always "00"?
I don't want to use any floor or round function because the problem I face is already because of precision overflow. So I want to take a shortcut with text formatting.

Eg: 01:00:01 => 01:00:00

Thanks a lot!
 
Last edited by a moderator:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
If you never want seconds to show any value other than 00, why include them in the first place?

Code:
=TEXT(A1,"hh:mm")&":00"
 
Upvote 0
Hi,

TEXT(A1,"hh:mm:ss##:##:00") is not working. How can I format the time as it will show seconds always "00"?
Another way...

TEXT(A1,"hh:mm\:\0\0")

Putting a backslash in front of a character that the TEXT function (or Cell Formatting for that matter) uses for a special purpose takes that special purpose away and considers the character that follows the backslash to simply be that character.
 
Upvote 0
Another way...

TEXT(A1,"hh:mm\:\0\0")

Putting a backslash in front of a character that the TEXT function (or Cell Formatting for that matter) uses for a special purpose takes that special purpose away and considers the character that follows the backslash to simply be that character.
A more elegant solution.
 
Upvote 0

Forum statistics

Threads
1,223,887
Messages
6,175,199
Members
452,617
Latest member
Narendra Babu D

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top