Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
scw1217
 
Posts: n/a
Default Subtracting From 2 Cells


I need to have a running difference between amounts from 2 different
cells. For instance, in cell A1 I have 10,000 and in A2 I have 5,000.
However, in cells B1, B2, etc. I have varying amounts. I need a cell,
such as A3 to keep a running subtraction from A1 until it reaches zero
(0) and then to switch over to A2 and subtract from the 5,000. Can
this be done?


--
scw1217
------------------------------------------------------------------------
scw1217's Profile: http://www.excelforum.com/member.php...fo&userid=2814
View this thread: http://www.excelforum.com/showthread...hreadid=529211

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default Subtracting From 2 Cells

Let's say you're subtracting the values in cells B1:B100. Use this formula
in A3

=A1-sum(B1:b100)+A2*(sum(B1:b100)A1)



"scw1217" wrote:


I need to have a running difference between amounts from 2 different
cells. For instance, in cell A1 I have 10,000 and in A2 I have 5,000.
However, in cells B1, B2, etc. I have varying amounts. I need a cell,
such as A3 to keep a running subtraction from A1 until it reaches zero
(0) and then to switch over to A2 and subtract from the 5,000. Can
this be done?


--
scw1217
------------------------------------------------------------------------
scw1217's Profile: http://www.excelforum.com/member.php...fo&userid=2814
View this thread: http://www.excelforum.com/showthread...hreadid=529211


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
scw1217
 
Posts: n/a
Default Subtracting From 2 Cells


Cool! That worked! Thanks.


--
scw1217
------------------------------------------------------------------------
scw1217's Profile: http://www.excelforum.com/member.php...fo&userid=2814
View this thread: http://www.excelforum.com/showthread...hreadid=529211

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
What formula is used for subtracting a range of different cells f. tim Excel Worksheet Functions 3 April 21st 23 10:07 PM
trouble with subtracting cells and adding text... traybuddy Excel Discussion (Misc queries) 5 October 14th 05 01:20 PM
trouble with subtracting cells and adding text... Gary''s Student Excel Discussion (Misc queries) 0 October 14th 05 05:18 AM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 16th 05 12:14 AM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 01:57 PM


All times are GMT +1. The time now is 12:54 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"