Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Add to current cell value

What I want to do is simple... I have a set of data in a single
column, but at some points this data resets to 0. I don't want this,
so my idea for fixing the data is to add the current cell value to the
cell value before 0.

I'll try and illustrate this with an example...

Say my column looks as follows...

1
2
3
4
5
6
7
8
0
1
2
3
4

The zero indicates a point where the data stream was inadvertently
reset. So the optimal solution would be to add the value '8' to the
remainder of the cell values to readjust, which would look as follows:

1
2
3
4
5
6
7
8
8
9
10
11
12

Problem is, when I try and add the current cell to the formula, it
gives me a circular reference warning. I kind of need to get around
this, so what is the best way?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Add to current cell value

Assuming there's going to be only one reset point in the data stream, one
tinker which gets the results you seek in an adjacent col

Assume source data in A1 down
In B1:
=IF(ROW()=MATCH(0,A:A,0),INDEX(A:A,MATCH(0,A:A,0)-1)+A1,A1)
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,000 Files:370 Subscribers:66
xdemechanik
---
"Ray D." wrote in message
...
What I want to do is simple... I have a set of data in a single
column, but at some points this data resets to 0. I don't want this,
so my idea for fixing the data is to add the current cell value to the
cell value before 0.

I'll try and illustrate this with an example...

Say my column looks as follows...

1
2
3
4
5
6
7
8
0
1
2
3
4

The zero indicates a point where the data stream was inadvertently
reset. So the optimal solution would be to add the value '8' to the
remainder of the cell values to readjust, which would look as follows:

1
2
3
4
5
6
7
8
8
9
10
11
12

Problem is, when I try and add the current cell to the formula, it
gives me a circular reference warning. I kind of need to get around
this, so what is the best way?



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
CURRENT TIME IN DESTINATION CELL IF SOURCE CELL IS TEXT Thomasel Excel Discussion (Misc queries) 3 April 15th 08 11:19 PM
How do i assign cell A1 to show the current cursor cell in Excel? OB Excel Discussion (Misc queries) 2 October 11th 06 04:02 PM
formula, move to previous cell when the current cell=0 or empty osama amer Excel Discussion (Misc queries) 0 May 29th 06 12:18 PM
Can I automatically enter the current date or current time into a Ben New Users to Excel 7 October 19th 05 03:38 PM
Send cell value to custom pane based on current cell/row? rman666 Excel Discussion (Misc queries) 5 March 9th 05 02:46 AM


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