Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jules
 
Posts: n/a
Default how do i do a subtraction formula

I am trying to put together a worksheet for work that involves adding and
subtracting columns. I cannot figure out the formula to subtract some of the
columns. Can anyone help
  #2   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

=A1+B1-C1-D1

does what it looks like it should

=SUM(A:A,B:B)-SUM(C:C,D:D)

adds all of the cells in columns A and B and subtracts all of the cells
in columns C and D.

If neither of these are what you wanted, try asking a more specific
question.

Jerry

jules wrote:

I am trying to put together a worksheet for work that involves adding and
subtracting columns. I cannot figure out the formula to subtract some of the
columns. Can anyone help


  #3   Report Post  
Ragdyer
 
Posts: n/a
Default

There is no actual function for subtraction like the SUM() function is for
addition.
Simply use a minus sign [ - ].
Subtract Column A from Column B by entering this formula in Column C:

=B1-A1

You can then click in C1 again, and you'll see a small square in the lower
right corner of the cell.
This is called the "fill handle".
Hover the cursor over this square until the cursor changes from a fat white
cross to a skinny black cross.
Then click, and drag this down the column as far as needed to copy the
formula to every cell down Column C.

If you're going to add and subtract in the same formula:

=B1-(A1+A2+A3+A4)
OR
=B1-SUM(A1:A4)

In XL, there is almost always more then one way to perform calculation.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------


"jules" wrote in message
...
I am trying to put together a worksheet for work that involves adding and
subtracting columns. I cannot figure out the formula to subtract some of

the
columns. Can anyone help


  #4   Report Post  
Gord Dibben
 
Posts: n/a
Default

Jules

Common formula is =A1-B1 to subtract a cell's value from another cell's
value.

OR =SUM(A1:A9)-SUM(B1:B9) to subtract a range of cells.

Give us a sample(not a file) of your data layout and what you would like to do
with it.


Gord Dibben Excel MVP

On Wed, 29 Dec 2004 19:01:06 -0800, "jules"
wrote:

I am trying to put together a worksheet for work that involves adding and
subtracting columns. I cannot figure out the formula to subtract some of the
columns. Can anyone help


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
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
How do I use Range Names listed in a VLookup table in a formula? Essbasedvlpr32 Excel Worksheet Functions 3 December 15th 04 10:11 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM
Excel 2003 - Formula result shows as 0:00 Serena Excel Worksheet Functions 4 November 11th 04 10:18 PM


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

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"