Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
how do i format cells with preceeding zeros & minus sign
Hi
I am downloading data in to excel & need to format an amount field in to a fixed 12 character field i.e. prefix with zeros to fill the 12 chars. NOW comes the tricky bit, if the value is negative I need the (-) minus sign prior to any leading zeros. Help Please! |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
how do i format cells with preceeding zeros & minus sign
Hi Homer
FormatCellsNumberCustom000000000000 Then as you paste values to the cell, they will be padded to 12 digits with a negative sign in front where necessary -- Regards Roger Govier "Homer" wrote in message ... Hi I am downloading data in to excel & need to format an amount field in to a fixed 12 character field i.e. prefix with zeros to fill the 12 chars. NOW comes the tricky bit, if the value is negative I need the (-) minus sign prior to any leading zeros. Help Please! |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
how do i format cells with preceeding zeros & minus sign
If you are looking to fill a fixed, 12-character field, try this:
Select the cells to be impacted From the Excel main menu: <format<cells<number tab Category: custom Type: 000000000000;-00000000000;000000000000 That format will always present 12 characters. Notice the difference between the positive or zero format vs neg: 000000000000 -00000000000 Is that something you can work with? *********** Regards, Ron XL2002, WinXP "Homer" wrote: Hi I am downloading data in to excel & need to format an amount field in to a fixed 12 character field i.e. prefix with zeros to fill the 12 chars. NOW comes the tricky bit, if the value is negative I need the (-) minus sign prior to any leading zeros. Help Please! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
want format cells alignment not format cells font style | Excel Discussion (Misc queries) | |||
Format Cells - Accounting - Discrepancy? | Excel Discussion (Misc queries) | |||
Why will my cells not format? | New Users to Excel | |||
checking that cells have a value before the workbook will close | Excel Worksheet Functions | |||
Protected cells -automatically format to a different color | Excel Discussion (Misc queries) |