Solved

Excel-- negative numbers and subtracting

Posted on 1997-12-11
4
4,524 Views
Last Modified: 2008-02-01
I'm not sure what the formula is to subtract the values of 2 or more cells.

Also, How are negative numbers processed?  I have a cell which adds two cells and divides by another.  If the number happens to be negative, then the value in the answer cell is in parenthases.  Is there a way to have it printed in the cell like regular positive numbers?
0
Comment
Question by:deeto
4 Comments
 
LVL 2

Expert Comment

by:AlFa
Comment Utility
Change the cell format negative in brakets is a financial format you can put a personalised format like _-# ##0,00
·# Do not print 0.
·0 (zéro) print left zéros .
·? replace 0 with space
.- sign (space for +)
.+ sign (+ for +)


0
 

Author Comment

by:deeto
Comment Utility
I don't understand what you're saying.
0
 
LVL 4

Expert Comment

by:itamar
Comment Utility
I sugest you to always sum the cells with + (plus) sign or SUM function, e.g., SUM(A1:A2).

You have 2 ways to deal with negative results:

1. If you want to always get positive results on despite of negative values in the others cells you must use ABS function. For example:
=ABS((A1+B1)/A2)

2. If you want only SHOW negative results in the same way you show positive ones, you must format the cell in a convenient manner. How ?
Select the cell(s), right-click on the selection, choose format cells, select Custom category and type #.##0,00_);#.##0,00

If you want to take this comment as an answer, reject the previous one, so I can submit it again to be graded.

Regards,
Itamar
0
 
LVL 1

Accepted Solution

by:
Danimal earned 100 total points
Comment Utility
Hi deeto,

 I've pasted your questions below, with some attempted answers that begin with >>>.

I'm not sure what the formula is to subtract the values of 2 or more cells.
>>>  The following formula subtracts the values of two cells from the value in cell E5

                    =E5-D5-C5

D5 and C5 are both being subtracted from E5.
Another way to do it would be

                    =E5-(D5+C5)

Both these formulas yield the same result.

As an example, say that E5=15, D5=5, and C5=3.  The result using the first formula would be 15-5-3, which equals 7.  

Using the second formula, the result would be 15-(5+3), which is the same thing as subtracting 8 from 15.  Result is 7.
---------------------------------

Also, How are negative numbers processed? I have a cell which adds two cells and divides by another. If the number happens to be negative, then the value in the answer cell is in parenthases. Is there a way to have it printed in the cell like regular positive numbers?
>>>itamar's suggestion #1 will work fine.  The ABS function stands for "absolute value."  Absolute value is the positive expression of a number.  For example the absolute value of -10 is 10.  Also, the absolute value of 10 is 10.  The ABS function in Excel returns the absolute value of the expression in parenthesis.

If these anwers don't completely make sense, please let me know, and I will try to clarify the areas that are unclear.

Good luck.
-Danimal
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction It seems that at least a couple of times per month, I answer a question that requires automating Outlook from another Microsoft Office application, usually (although not always) to send one or more email messages.  For example: …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now