PC Review


Reply
Thread Tools Rate Thread

Can you formulate a cell to add and subtract in the same cell?

 
 
jmuncy
Guest
Posts: n/a
 
      16th Jul 2008
I have a subtotal and the next cell could be either an addition or a
subtraction from the subtotal. Can you do this with a formula?
 
Reply With Quote
 
 
 
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      16th Jul 2008
Yes, with an IF function call, but there needs to be some identifiable
"trigger" that chooses one over the other. For example, if your "trigger"
could be cell B1 contains a 0 to select addition and any other value to
select subtraction. Assuming your SubTotal is in A1000, and the value you
want to either add or subtract is in B1000, and the trigger value is in B1
(0 for addition, anything else for subtraction), then this is the formula
you would use is this...

=IF(B1=0,A1000+B1000,A1000-B1000)

Rick


"jmuncy" <(E-Mail Removed)> wrote in message
news:14487C74-0867-4531-A4C3-(E-Mail Removed)...
>I have a subtotal and the next cell could be either an addition or a
> subtraction from the subtotal. Can you do this with a formula?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
subtract one cell from each cell in a range and count instances tworrall Microsoft Excel Worksheet Functions 2 15th Oct 2009 05:31 PM
formulate all in one cell carrol Microsoft Excel Worksheet Functions 2 29th Oct 2008 05:21 AM
using the offset function to subtract a cell in b column from cell in a instead of adding mike Microsoft Excel Worksheet Functions 1 18th Oct 2004 08:44 AM
I need to subtract cell B-6 sheet2 from cell B12 sheet1/ Excel 2003 =?Utf-8?B?UVdFUlRZ?= Microsoft Excel New Users 2 5th Jun 2004 01:54 PM
Re: I need to subtract cell B-6 sheet2 from cell B12 sheet1/ Excel 2003 Dave R. Microsoft Excel Worksheet Functions 2 4th Jun 2004 11:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:28 AM.