Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Paulymon
 
Posts: n/a
Default Formula referencing deleted row (move up automatically)

I have a list of items with values:

aaa . 5 . 7 fixed value=5 computed cell = 7 (fixed + 2 e.g.)
bbb . 4 . 11 fixed value = 4, computed cell = 4 + 7
ccc . 2 . 13 fixed value = 2, computed cell = 11 + 2

I want users to be able to delete e.g. row bbb and have all the data move up
but when I do that the ccc computed cell shows #REF.

Is there a way to get the cell to reference the one above it and not the
deleted cell?
So, if bbb was deleted, the computed cell for ccc would = 7 + 2?



  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Assuming the 5 and 7 in your example appear in A2 and B2, and all your
'constant' values are in column A, then paste this formula into B3

=A3+OFFSET(A3,-1,1)

then copy it down as far in column B as you need it



"Paulymon" wrote:

I have a list of items with values:

aaa . 5 . 7 fixed value=5 computed cell = 7 (fixed + 2 e.g.)
bbb . 4 . 11 fixed value = 4, computed cell = 4 + 7
ccc . 2 . 13 fixed value = 2, computed cell = 11 + 2

I want users to be able to delete e.g. row bbb and have all the data move up
but when I do that the ccc computed cell shows #REF.

Is there a way to get the cell to reference the one above it and not the
deleted cell?
So, if bbb was deleted, the computed cell for ccc would = 7 + 2?



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
Search column and move text formula tommy Excel Discussion (Misc queries) 0 February 8th 05 07:55 PM
Referencing Sheets in a Formula Christopher Anderson Excel Discussion (Misc queries) 1 January 31st 05 05:10 PM
formula referencing another workbook Steve D Excel Worksheet Functions 2 January 7th 05 10:43 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 05:16 AM
How do I keep a formula from changing if a row is added or deleted cwolt Excel Discussion (Misc queries) 1 December 28th 04 12:18 AM


All times are GMT +1. The time now is 02:14 PM.

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"