Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Formulas with no results

I'm creating an invoice, I would like to to set up the formulas up for all
cells so that even if they do not yet have any information there would be an
end result. An item could be entered on any line and the invoice will work.
If no item information is entered there should not be anything displayed;
however, in the Total Price cells, the resulting number should be formatted
to show dollars and cents, but if nothing is entered the cell should display
a dash only.

My biggest issue is formatting the "Total Price" cell to show a dash if
nothing is entered.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Formulas with no results

A very simple example. Say we have:

=A1+A2

Instead use:

=IF(OR(A1="",A2=""),"-",A1+A2)

Now if either A1 or A2 is empty, a dash is displayed rathr than the sum.

Adjust cells to suit.
--
Gary''s Student - gsnu200851


"Sondra" wrote:

I'm creating an invoice, I would like to to set up the formulas up for all
cells so that even if they do not yet have any information there would be an
end result. An item could be entered on any line and the invoice will work.
If no item information is entered there should not be anything displayed;
however, in the Total Price cells, the resulting number should be formatted
to show dollars and cents, but if nothing is entered the cell should display
a dash only.

My biggest issue is formatting the "Total Price" cell to show a dash if
nothing is entered.

Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 59
Default Formulas with no results

Sondra,

In order for you to show a dash in "Total Price" cell, you will have to
format this cell as Accounting, to do so select that particular cell and then
navigate to Format Cells Number tab select Accounting OK


HTP
Adnan

If I have helped and/or answered your question, please let me know by
replying or clicking question answered (below positioned €˜Yes button).


"Sondra" wrote:

I'm creating an invoice, I would like to to set up the formulas up for all
cells so that even if they do not yet have any information there would be an
end result. An item could be entered on any line and the invoice will work.
If no item information is entered there should not be anything displayed;
however, in the Total Price cells, the resulting number should be formatted
to show dollars and cents, but if nothing is entered the cell should display
a dash only.

My biggest issue is formatting the "Total Price" cell to show a dash if
nothing is entered.

Thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 112
Default Formulas with no results

In [Excel 2000] look up "Create a Custom Number Format" in the help.

Select the cell to be formatted.

Format = Cells = Number = Custom

And type in the formatting code you want. (or select an available one
and modify it.)

The code for formatting a number has four elements, separated by
semicolons:

[format for positive numbers];[format for negative numbers];[format
for zero];[format for text]

In the format for zero, enter "-" (including the quotation marks) for
just a hyphen to show. Add a space or more after the hypen to offset
it from the right margin. To add a space of an explicit width, type
in an underscore character followd by the character whose width is to
be duplicated by the space. Click on the various links in the help to
find all the goodies available.

The following formating code might do what you want:

$#,##0.00;-$#,##0.00;"-"

HTH

Fred Holmes


On Wed, 6 May 2009 09:35:01 -0700, Sondra
wrote:

I'm creating an invoice, I would like to to set up the formulas up for all
cells so that even if they do not yet have any information there would be an
end result. An item could be entered on any line and the invoice will work.
If no item information is entered there should not be anything displayed;
however, in the Total Price cells, the resulting number should be formatted
to show dollars and cents, but if nothing is entered the cell should display
a dash only.

My biggest issue is formatting the "Total Price" cell to show a dash if
nothing is entered.

Thanks in advance.


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
IF Formulas and Summing Results WilliamsDeLisle Excel Worksheet Functions 7 April 10th 09 02:46 AM
Look up Formulas with Results MaggieR Excel Discussion (Misc queries) 0 October 12th 07 05:56 PM
sum the results of a group of formulas astjels Excel Worksheet Functions 3 May 11th 06 09:34 AM
calculating results in formulas Linda Excel Discussion (Misc queries) 9 July 6th 05 09:20 AM
Formulas with If/ and results Katiemcgi Excel Worksheet Functions 1 November 1st 04 05:34 PM


All times are GMT +1. The time now is 06:19 AM.

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

About Us

"It's about Microsoft Excel"