Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Alex
 
Posts: n/a
Default SUM or COUNT and adding a row

Hi,

If I have COUNT(A1:A100) with a total in the row #101 and when a user insert
a row between the 98 and 99 rows the function will be COUNT(A1:A101) and the
total will be in the row #102, which is fine - the row has been added into
the function.

But, when a user adding a row between the total row (101) and the previous
row (100), the total will be in the row 102 but the function will remain the
same and the one row will be missing from the calculation.

How could I resolve it and give the user the flexibility to add a row the
total row?

Thanks
  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Alex wrote:
Hi,

If I have COUNT(A1:A100) with a total in the row #101 and when a user insert
a row between the 98 and 99 rows the function will be COUNT(A1:A101) and the
total will be in the row #102, which is fine - the row has been added into
the function.

But, when a user adding a row between the total row (101) and the previous
row (100), the total will be in the row 102 but the function will remain the
same and the one row will be missing from the calculation.

How could I resolve it and give the user the flexibility to add a row the
total row?

Thanks


=COUNT($A$1:INDEX(A:A,ROW()-1))
  #3   Report Post  
Ken Wright
 
Posts: n/a
Default

Generally in that kind of scenario i will add a header row and a footer row
to straddle the range in question, and then the summation row goes below the
footer row and sums from header row to footer row inclusive. The header and
footer row are left empty and i will then shrink them to circa 1/4 size and
I will usually colour them to make the banding obvious. Then tell the user
that any row insertions MUST be done within the two bands.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"Alex" wrote in message
...
Hi,

If I have COUNT(A1:A100) with a total in the row #101 and when a user

insert
a row between the 98 and 99 rows the function will be COUNT(A1:A101) and

the
total will be in the row #102, which is fine - the row has been added into
the function.

But, when a user adding a row between the total row (101) and the previous
row (100), the total will be in the row 102 but the function will remain

the
same and the one row will be missing from the calculation.

How could I resolve it and give the user the flexibility to add a row the
total row?

Thanks



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
adding a new page break to an existing page break Edward Letendre Excel Discussion (Misc queries) 1 March 6th 05 09:29 AM
count dates in excel skchth Excel Discussion (Misc queries) 6 March 3rd 05 12:35 AM
Adding a formula to a pivot table Tony Excel Discussion (Misc queries) 2 January 20th 05 10:27 AM
Comparing and potentially adding two fields Avi Excel Worksheet Functions 1 November 15th 04 07:11 PM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


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