#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 189
Default variable question

hi,
I have c column in my spreadsheet with a formula in it like:=E8+F8-D8 IN C8
CELL.
E8 and F8 are change manually resulting changes in availability(C8) but the
content of D8 comes from another source and it's change off an on.the problem
is ,say E8=10, F8=20 and D8=12 ,so the C8 comes to 18; now when the D8
changes to 8, the C8 changes to 22 but what I need is maintaining the
previous quantity as 18 and after D8 is turned to 8, the new C8 be 10.
I hope I was able to convey my problem clearly to you.
colu. A col. D
col. E col. F
=E8+F8-D8 (=18) =xx(=12)
10 20
=22 but i need (18-8=10) (now if xx=8)

so is there any way to keep the previous qnty constant?!!
thanx for your time.



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default variable question

Sounds like you need to make D8 an accumulator:

http://www.mcgimpsey.com/excel/accumulator.html

In article ,
peyman wrote:

hi,
I have c column in my spreadsheet with a formula in it like:=E8+F8-D8 IN C8
CELL.
E8 and F8 are change manually resulting changes in availability(C8) but the
content of D8 comes from another source and it's change off an on.the problem
is ,say E8=10, F8=20 and D8=12 ,so the C8 comes to 18; now when the D8
changes to 8, the C8 changes to 22 but what I need is maintaining the
previous quantity as 18 and after D8 is turned to 8, the new C8 be 10.
I hope I was able to convey my problem clearly to you.
colu. A col. D
col. E col. F
=E8+F8-D8 (=18) =xx(=12)
10 20
=22 but i need (18-8=10) (now if xx=8)

so is there any way to keep the previous qnty constant?!!
thanx for your time.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 189
Default variable question

thanx I'll me check it out.

"JE McGimpsey" wrote:

Sounds like you need to make D8 an accumulator:

http://www.mcgimpsey.com/excel/accumulator.html

In article ,
peyman wrote:

hi,
I have c column in my spreadsheet with a formula in it like:=E8+F8-D8 IN C8
CELL.
E8 and F8 are change manually resulting changes in availability(C8) but the
content of D8 comes from another source and it's change off an on.the problem
is ,say E8=10, F8=20 and D8=12 ,so the C8 comes to 18; now when the D8
changes to 8, the C8 changes to 22 but what I need is maintaining the
previous quantity as 18 and after D8 is turned to 8, the new C8 be 10.
I hope I was able to convey my problem clearly to you.
colu. A col. D
col. E col. F
=E8+F8-D8 (=18) =xx(=12)
10 20
=22 but i need (18-8=10) (now if xx=8)

so is there any way to keep the previous qnty constant?!!
thanx for your time.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 189
Default variable question

bit,I have a range of cells that I need accumulator for them, so how can I
extend the macro for C4:C1800??
thanx

"JE McGimpsey" wrote:

Sounds like you need to make D8 an accumulator:

http://www.mcgimpsey.com/excel/accumulator.html

In article ,
peyman wrote:

hi,
I have c column in my spreadsheet with a formula in it like:=E8+F8-D8 IN C8
CELL.
E8 and F8 are change manually resulting changes in availability(C8) but the
content of D8 comes from another source and it's change off an on.the problem
is ,say E8=10, F8=20 and D8=12 ,so the C8 comes to 18; now when the D8
changes to 8, the C8 changes to 22 but what I need is maintaining the
previous quantity as 18 and after D8 is turned to 8, the new C8 be 10.
I hope I was able to convey my problem clearly to you.
colu. A col. D
col. E col. F
=E8+F8-D8 (=18) =xx(=12)
10 20
=22 but i need (18-8=10) (now if xx=8)

so is there any way to keep the previous qnty constant?!!
thanx for your time.


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
variable height variable width stacked bar charts ambthiru Charts and Charting in Excel 3 January 18th 06 11:41 PM
Sum cells based on a row variable and seperate column variable CheeseHeadTransplant Excel Worksheet Functions 10 September 23rd 05 06:59 PM
object variable or with block variable not set Diego Excel Discussion (Misc queries) 1 August 9th 05 02:46 PM
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? Daniel Excel Worksheet Functions 1 July 9th 05 03:05 AM
I Need VBA Assistance for global variable question Brent E Excel Discussion (Misc queries) 1 March 1st 05 08:46 PM


All times are GMT +1. The time now is 08:17 PM.

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"