Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ChuckSF
 
Posts: n/a
Default how do i prevent a #REF! error when i delete non adjacent rows?

I set up a simple function, e.g., =sum(B2,B5,B7,B9). If I delete rows 5, 6
and 7, the cell that used to give me the total now shows #REF! My question
is how can I delete the rows and still get the sum for adding B2 and
B9--without having to start over and select cells B2 and B9.
  #2   Report Post  
Max
 
Posts: n/a
Default

Assuming you have in say, D20: =SUM(B2,B5,B7,B9)
and you want always to point the summation to cells: B2,B5,B7,B9, then one
way ..

Put instead in D20, and array-enter
(i.e. press CTRL+SHIFT+ENTER):

=SUM(TRANSPOSE(OFFSET(INDIRECT("B1"),{1;4;6;8},)))
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"ChuckSF" wrote in message
...
I set up a simple function, e.g., =sum(B2,B5,B7,B9). If I delete rows 5,

6
and 7, the cell that used to give me the total now shows #REF! My

question
is how can I delete the rows and still get the sum for adding B2 and
B9--without having to start over and select cells B2 and B9.



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
In a protected worksheet allow users to delete rows Jason Trivett Excel Worksheet Functions 1 July 12th 05 09:50 AM
Delete row depending on criteria adw223 Excel Discussion (Misc queries) 1 June 30th 05 12:55 AM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM
How to delete blank rows John Mansfield Excel Discussion (Misc queries) 3 April 27th 05 11:48 PM
delete row contains specific word in an macro Jean-Francois Excel Discussion (Misc queries) 4 January 11th 05 11:40 PM


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