#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Zeros in Formula Bar

I have a worksheet and I need to preserve the zeros in front of numbers in
the formula bar, but I cant seem to get them to show up. How do I do this?
They are in the cell, but not the formula bar?

TIA

Scott T.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Zeros in Formula Bar

If leading zeros appear in the cell, but not the formula bar, then they
result from formatting. They ae not actually in the data.

If you require them in the formula bar (not a normal requirement) precede
the value with an apostrophe (single quote).
--
Gary's Student - gsnu200798


"scottdog129" wrote:

I have a worksheet and I need to preserve the zeros in front of numbers in
the formula bar, but I cant seem to get them to show up. How do I do this?
They are in the cell, but not the formula bar?

TIA

Scott T.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Zeros in Formula Bar

Ill use a little more detail so, maybe, you can see what Im trying to
accomplish. I have data sent to our company in an Excel worksheet. In this
worksheet, there is a column that is a matter number, or file number. In
most cases, the number looks similar to 01234.0001. There are other numbers
in other cells that look a little different, like 123456.0000.

The problem we are finding is that, when we import this data into our SQL
database that runs our records management software, the zero in front of the
number isnt making it into the database. Its being dropped off. This is bad
because the client needs that zero there.

Is this happening in Excel BEFORE the import, or is this happening DURING
the import?

"Gary''s Student" wrote:

If leading zeros appear in the cell, but not the formula bar, then they
result from formatting. They ae not actually in the data.

If you require them in the formula bar (not a normal requirement) precede
the value with an apostrophe (single quote).
--
Gary's Student - gsnu200798


"scottdog129" wrote:

I have a worksheet and I need to preserve the zeros in front of numbers in
the formula bar, but I cant seem to get them to show up. How do I do this?
They are in the cell, but not the formula bar?

TIA

Scott T.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Zeros in Formula Bar

The cells with the leading zeros are formatted to display a leading zero.

The zero does not actually exist in the cell so when you export you will
export the actual value of 1234.0000

For exporting to a DB that needs the leading zero, in a helper cell enter

=TEXT(A1, "00000.0000"

Copy and paste special(in place) as Values


Gord Dibben MS Excel MVP

On Thu, 7 Aug 2008 12:16:16 -0700, scottdog129
wrote:

Ill use a little more detail so, maybe, you can see what Im trying to
accomplish. I have data sent to our company in an Excel worksheet. In this
worksheet, there is a column that is a matter number, or file number. In
most cases, the number looks similar to 01234.0001. There are other numbers
in other cells that look a little different, like 123456.0000.

The problem we are finding is that, when we import this data into our SQL
database that runs our records management software, the zero in front of the
number isnt making it into the database. Its being dropped off. This is bad
because the client needs that zero there.

Is this happening in Excel BEFORE the import, or is this happening DURING
the import?

"Gary''s Student" wrote:

If leading zeros appear in the cell, but not the formula bar, then they
result from formatting. They ae not actually in the data.

If you require them in the formula bar (not a normal requirement) precede
the value with an apostrophe (single quote).
--
Gary's Student - gsnu200798


"scottdog129" wrote:

I have a worksheet and I need to preserve the zeros in front of numbers in
the formula bar, but I cant seem to get them to show up. How do I do this?
They are in the cell, but not the formula bar?

TIA

Scott T.


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
when i megre cells that begin with zeros , I lose the zeros RDC Excel Discussion (Misc queries) 1 November 16th 07 03:31 PM
Essbase: Text zeros to number zeros santhu Excel Discussion (Misc queries) 1 March 23rd 07 01:01 PM
LEADING ZEROS IN FORMULA RESULT Advent Excel Worksheet Functions 4 December 8th 06 01:22 PM
Minimum formula the excludes zeros Joco Excel Worksheet Functions 3 August 14th 06 08:51 AM
save text field w/ leading zeros in .csv format & not lose zeros? Ques Excel Discussion (Misc queries) 1 May 4th 05 06:21 PM


All times are GMT +1. The time now is 04:10 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"