Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 216
Default Formula Bar - display of content

Have cells custom formatted for seconds :ss
but in the formala bar shows and invalid date and time, is there a way to
make the formula bar show the correct value of the cell

i.e.
typed in cell - 55 for 55 seconds
but the formula bar showing content as: 1900-02-24 12:00:00 AM
for me to get it to display as :55
have to enter it as :55
but then can't use it for a calculation

if format it as mm:ss
enter 55 shows as 00:00 in the cell
but in the formula bar shows content as: 1900-02-24 12:00:00 AM

need cells to display a seconds :55
but will need to use the cells for other calculations

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Formula Bar - display of content

You need to enter it as 0:0:55
--
David Biddulph


Nadine wrote:
Have cells custom formatted for seconds :ss
but in the formala bar shows and invalid date and time, is there a
way to make the formula bar show the correct value of the cell

i.e.
typed in cell - 55 for 55 seconds
but the formula bar showing content as: 1900-02-24 12:00:00 AM
for me to get it to display as :55
have to enter it as :55
but then can't use it for a calculation

if format it as mm:ss
enter 55 shows as 00:00 in the cell
but in the formula bar shows content as: 1900-02-24 12:00:00 AM

need cells to display a seconds :55
but will need to use the cells for other calculations




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 216
Default Formula Bar - display of content

Entering it as - 0:0:55 works to display it as seconds
but the formula bar shows - 12:00:55 AM

"David Biddulph" wrote:

You need to enter it as 0:0:55
--
David Biddulph


Nadine wrote:
Have cells custom formatted for seconds :ss
but in the formala bar shows and invalid date and time, is there a
way to make the formula bar show the correct value of the cell

i.e.
typed in cell - 55 for 55 seconds
but the formula bar showing content as: 1900-02-24 12:00:00 AM
for me to get it to display as :55
have to enter it as :55
but then can't use it for a calculation

if format it as mm:ss
enter 55 shows as 00:00 in the cell
but in the formula bar shows content as: 1900-02-24 12:00:00 AM

need cells to display a seconds :55
but will need to use the cells for other calculations




.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Formula Bar - display of content

It doesn't matter what it says in the formula bar; you can format the cell
as [h]:mm:ss
If you want the formula bar to display in 24 hour format, rather than 12
hour, you might try changing your Windows Regional Options (in Control
Panel, not in Excel).
--
David Biddulph


Nadine wrote:
Entering it as - 0:0:55 works to display it as seconds
but the formula bar shows - 12:00:55 AM

"David Biddulph" wrote:

You need to enter it as 0:0:55
--
David Biddulph


Nadine wrote:
Have cells custom formatted for seconds :ss
but in the formala bar shows and invalid date and time, is there a
way to make the formula bar show the correct value of the cell

i.e.
typed in cell - 55 for 55 seconds
but the formula bar showing content as: 1900-02-24 12:00:00 AM
for me to get it to display as :55
have to enter it as :55
but then can't use it for a calculation

if format it as mm:ss
enter 55 shows as 00:00 in the cell
but in the formula bar shows content as: 1900-02-24 12:00:00 AM

need cells to display a seconds :55
but will need to use the cells for other calculations




.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Formula Bar - display of content

Entering time is a bit of a beast. If you just enter in 55 what you are
actually entering 55 days after January 1 1900. That is beause of how dates
and times are store in XL. Dates & times are sotred as decimal values. Teh
integer portion is the number of days that have transpired since Jan 1, 1900.
The decimal part it the fraction of 24 hours that have transpired. So for
example 0.25 is 6:00 am and 0.5 is noon.

There is no inherant way to directly enter times as integers. You need to
use the colon which tells XL that what is being entered is a time and XL then
does the conversion to a decimal.

A couple of options.

1. Enter 55 in a cell. In another cell divide 55 by 86,400 (seconds in a
day) and you will get 0.000637 which when formatted as time shows up as 55
seconds.

2. Check out this link on a macro solution.
http://www.cpearson.com/excel/DateTimeEntry.htm

That site also has an excellent description of how dates and times work...
--
HTH...

Jim Thomlinson


"Nadine" wrote:

Have cells custom formatted for seconds :ss
but in the formala bar shows and invalid date and time, is there a way to
make the formula bar show the correct value of the cell

i.e.
typed in cell - 55 for 55 seconds
but the formula bar showing content as: 1900-02-24 12:00:00 AM
for me to get it to display as :55
have to enter it as :55
but then can't use it for a calculation

if format it as mm:ss
enter 55 shows as 00:00 in the cell
but in the formula bar shows content as: 1900-02-24 12:00:00 AM

need cells to display a seconds :55
but will need to use the cells for other calculations



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 216
Default Formula Bar - display of content

that macros a bit beyond my understanding.

Will just live with the 0:0:55 option

Thanks

"Jim Thomlinson" wrote:

Entering time is a bit of a beast. If you just enter in 55 what you are
actually entering 55 days after January 1 1900. That is beause of how dates
and times are store in XL. Dates & times are sotred as decimal values. Teh
integer portion is the number of days that have transpired since Jan 1, 1900.
The decimal part it the fraction of 24 hours that have transpired. So for
example 0.25 is 6:00 am and 0.5 is noon.

There is no inherant way to directly enter times as integers. You need to
use the colon which tells XL that what is being entered is a time and XL then
does the conversion to a decimal.

A couple of options.

1. Enter 55 in a cell. In another cell divide 55 by 86,400 (seconds in a
day) and you will get 0.000637 which when formatted as time shows up as 55
seconds.

2. Check out this link on a macro solution.
http://www.cpearson.com/excel/DateTimeEntry.htm

That site also has an excellent description of how dates and times work...
--
HTH...

Jim Thomlinson


"Nadine" wrote:

Have cells custom formatted for seconds :ss
but in the formala bar shows and invalid date and time, is there a way to
make the formula bar show the correct value of the cell

i.e.
typed in cell - 55 for 55 seconds
but the formula bar showing content as: 1900-02-24 12:00:00 AM
for me to get it to display as :55
have to enter it as :55
but then can't use it for a calculation

if format it as mm:ss
enter 55 shows as 00:00 in the cell
but in the formula bar shows content as: 1900-02-24 12:00:00 AM

need cells to display a seconds :55
but will need to use the cells for other calculations


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Formula Bar - display of content

In line with what Jim T posted you can add this sheet event code to your
worksheet.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'change a number to minutes/seconds...4 = 00:00:04 ....91 = 00:1:31
Const WS_RANGE As String = "A1:A10" 'edit to suit
If Target.Count 1 Then Exit Sub
If Not IsNumeric(Target.Value) Then Exit Sub
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
Application.EnableEvents = False
With Target
.Value = .Value / 86400
.NumberFormat = "[hh]:mm:ss"
Application.EnableEvents = True
End With
End If
End Sub

Right-click on the sheet tab and "View Code". Copy/paste the above code
into that module.

Edit to suit your range.

Alt + q to return to Excel.


Gord Dibben MS Excel MVP

On Thu, 18 Feb 2010 12:33:01 -0800, Nadine
wrote:

Have cells custom formatted for seconds :ss
but in the formala bar shows and invalid date and time, is there a way to
make the formula bar show the correct value of the cell

i.e.
typed in cell - 55 for 55 seconds
but the formula bar showing content as: 1900-02-24 12:00:00 AM
for me to get it to display as :55
have to enter it as :55
but then can't use it for a calculation

if format it as mm:ss
enter 55 shows as 00:00 in the cell
but in the formula bar shows content as: 1900-02-24 12:00:00 AM

need cells to display a seconds :55
but will need to use the cells for other calculations


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula Content linked to other cells formula Content Flawlesgem Excel Discussion (Misc queries) 5 November 21st 08 11:06 AM
Why does my cell content display as '############'? Mark Excel Discussion (Misc queries) 4 July 22nd 08 07:07 PM
display part of the cell content linda Excel Discussion (Misc queries) 4 August 28th 07 03:02 AM
display content of linked cell Lynn Excel Worksheet Functions 3 January 5th 07 05:04 PM
How do I display textboxes without any content in a spreadsheet? Leo Excel Discussion (Misc queries) 1 May 11th 05 12:04 AM


All times are GMT +1. The time now is 02:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"