Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Formatting Zeros

I have a spreadsheet with currency values in cells D16-
H50. Column H is the last column in the spreadsheet. How
can I automatically have all the cells with a 0 in it
change to the dash(-) when it's is opened?

I Really need the code because I suck at excel.

Thanks in advance.
OS

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Formatting Zeros

Hi
use a custom format 8no coede needed) goto the menu 'Format - Cells'
and apply the custom format
0.00;-0.00;"-"

--
Regards
Frank Kabel
Frankfurt, Germany


OriginalStealth wrote:
I have a spreadsheet with currency values in cells D16-
H50. Column H is the last column in the spreadsheet. How
can I automatically have all the cells with a 0 in it
change to the dash(-) when it's is opened?

I Really need the code because I suck at excel.

Thanks in advance.
OS


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Formatting Zeros

Blank cells don't display anything. You would need to put a zero in them.

--
Regards,
Tom Ogilvy

"OriginalStealth" wrote in
message ...
thanks frank that worked. How do I get the blank cells to show a dash(-)
also. When the sheet opens all blank cells and zeros must be in the form

of
a dash.

"Frank Kabel" wrote:

Hi
use a custom format 8no coede needed) goto the menu 'Format - Cells'
and apply the custom format
0.00;-0.00;"-"

--
Regards
Frank Kabel
Frankfurt, Germany


OriginalStealth wrote:
I have a spreadsheet with currency values in cells D16-
H50. Column H is the last column in the spreadsheet. How
can I automatically have all the cells with a 0 in it
change to the dash(-) when it's is opened?

I Really need the code because I suck at excel.

Thanks in advance.
OS





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
Formatting zeros as dashes Arun Excel Discussion (Misc queries) 1 December 17th 09 05:10 PM
when i megre cells that begin with zeros , I lose the zeros RDC Excel Discussion (Misc queries) 1 November 16th 07 03:31 PM
Conditional formatting to ignore zeros Jock Excel Worksheet Functions 5 October 17th 07 09:35 AM
Formula/formatting to omit trailing zeros Robin Excel Worksheet Functions 5 March 22nd 06 06:29 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 09:25 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"