ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Format a cell for hours ' minutes " (https://www.excelbanter.com/excel-worksheet-functions/45690-format-cell-hours-minutes-%22.html)

KazFirth

Format a cell for hours ' minutes "
 

I need to format a cell to show hours and minutes. For example 1'30".
How do I do this?


--
KazFirth
------------------------------------------------------------------------
KazFirth's Profile: http://www.excelforum.com/member.php...o&userid=27305
View this thread: http://www.excelforum.com/showthread...hreadid=468091


malik641


Give this a shot.

In cell D1: 6:00 PM
In cell D2: 7:30 PM

In cell F1: =D2-D1

It should display "1:30 AM"
Right-click cell F1 and select "Format Cells"

Go to the number tab.
Select custom, and delete whatever is in the text box.

Place this in it:

hh"' "mm"''"

Press Okay, and that should do it.

HTH


--
malik641


------------------------------------------------------------------------
malik641's Profile: http://www.excelforum.com/member.php...o&userid=24190
View this thread: http://www.excelforum.com/showthread...hreadid=468091


David McRitchie

Do you have your terminology correct? (degree, minutes, seconds or DMS)
A degree is 1/360 of a circle, a degree is split into 60 minutes, and a
minute is split into 60 seconds. The single quote normally is for
minutes and the double quote for seconds.

As far as how you asked your question goes, Malik provided solution.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"KazFirth" wrote in message
...

I need to format a cell to show hours and minutes. For example 1'30".
How do I do this?


--
KazFirth
------------------------------------------------------------------------
KazFirth's Profile: http://www.excelforum.com/member.php...o&userid=27305
View this thread: http://www.excelforum.com/showthread...hreadid=468091






All times are GMT +1. The time now is 09:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com