Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Len Len is offline
external usenet poster
 
Posts: 162
Default Adding up range of cells exclude hide cells

Hi,

How to set excel function or formula such as SUM function to add up
the range of selected cells which gives the result excludes hide
cells, particularly for long range of cells in a column ?


E.g.

In this case, the result excludes hide cells will be 10,086.40 ( ie
A1+A4+A5+A6+A8+A9 ) and not 10,884.00 ( ie adding up cells from A1 to
A10 )
A
1 4,084.20
2 300.00 ( Hide cell )
3 450.00 ( Hide cell )
4 3,965.00
5 200.00
6 50.00
7 47.00 ( Hide cell )
8 1,037.20
9 750.00
10 0.60 ( Hide cell )
---------------------
10,086.40 ( Sum up exclude hide cells )
==========

Please help, thanks

Regards
Lenard
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default Adding up range of cells exclude hide cells

Hi Len,

If the cells were hidden as the result of a filter (or if yuo are using a
recent version of Excel, try the SubTotal function:

=SubTotal(9, A1:A10)

See Excel help for nore details.



---
Regards.
Norman


"Len" wrote in message
...
Hi,

How to set excel function or formula such as SUM function to add up
the range of selected cells which gives the result excludes hide
cells, particularly for long range of cells in a column ?


E.g.

In this case, the result excludes hide cells will be 10,086.40 ( ie
A1+A4+A5+A6+A8+A9 ) and not 10,884.00 ( ie adding up cells from A1 to
A10 )
A
1 4,084.20
2 300.00 ( Hide cell )
3 450.00 ( Hide cell )
4 3,965.00
5 200.00
6 50.00
7 47.00 ( Hide cell )
8 1,037.20
9 750.00
10 0.60 ( Hide cell )
---------------------
10,086.40 ( Sum up exclude hide cells )
==========

Please help, thanks

Regards
Lenard


  #3   Report Post  
Posted to microsoft.public.excel.programming
Len Len is offline
external usenet poster
 
Posts: 162
Default Adding up range of cells exclude hide cells

On May 22, 12:59*am, "Norman Jones"
wrote:
Hi Len,

If the cells were hidden as the result of a filter (or if yuo are using a
recent version of Excel, try the SubTotal function:

* * * * =SubTotal(9, A1:A10)

See Excel help for nore details.

---
Regards.
Norman

"Len" wrote in message

...



Hi,


How to set excel function or formula such as SUM function to add up
the range of selected cells which gives the result excludes hide
cells, particularly for long range of cells in a column ?


E.g.


In this case, the result excludes hide cells will be 10,086.40 ( ie
A1+A4+A5+A6+A8+A9 ) and not 10,884.00 ( ie adding up cells from A1 to
A10 )
* * * * * A
1 * * 4,084.20
2 * * * *300.00 *( Hide cell )
3 * * * *450.00 *( Hide cell )
4 * * *3,965.00
5 * * * * 200.00
6 * * * * * 50.00
7 * * * * * 47.00 ( Hide cell )
8 * * *1,037.20
9 * * * * 750.00
10 * * * * * 0.60 *( Hide cell )
---------------------
* * 10,086.40 ( Sum up exclude hide cells )
==========


Please help, thanks


Regards
Lenard- Hide quoted text -


- Show quoted text -


Hi Norman,

Ya....... from excel help. Thanks for your advice

Regards
Lenard
  #4   Report Post  
Posted to microsoft.public.excel.programming
Len Len is offline
external usenet poster
 
Posts: 162
Default Adding up range of cells exclude hide cells

On May 22, 9:30*am, Len wrote:
On May 22, 12:59*am, "Norman Jones"
wrote:





Hi Len,


If the cells were hidden as the result of a filter (or if yuo are using a
recent version of Excel, try the SubTotal function:


* * * * =SubTotal(9, A1:A10)


See Excel help for nore details.


---
Regards.
Norman


"Len" wrote in message


...


Hi,


How to set excel function or formula such as SUM function to add up
the range of selected cells which gives the result excludes hide
cells, particularly for long range of cells in a column ?


E.g.


In this case, the result excludes hide cells will be 10,086.40 ( ie
A1+A4+A5+A6+A8+A9 ) and not 10,884.00 ( ie adding up cells from A1 to
A10 )
* * * * * A
1 * * 4,084.20
2 * * * *300.00 *( Hide cell )
3 * * * *450.00 *( Hide cell )
4 * * *3,965.00
5 * * * * 200.00
6 * * * * * 50.00
7 * * * * * 47.00 ( Hide cell )
8 * * *1,037.20
9 * * * * 750.00
10 * * * * * 0.60 *( Hide cell )
---------------------
* * 10,086.40 ( Sum up exclude hide cells )
==========


Please help, thanks


Regards
Lenard- Hide quoted text -


- Show quoted text -


Hi Norman,

Ya....... from excel help. *Thanks for your advice

Regards
Lenard- Hide quoted text -

- Show quoted text -


Hi Norman,

After "=SubTotal(9, A1:A10)" is calculated, the result is different
( ie 10,884.00 ) and unable to obtain 10,086.40, am I miss out
anything ?

Regards
Len
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default Adding up range of cells exclude hide cells

Hi Len,

If your hidden rows are not hidden by a
filter, try using the formula:


=SUBTOTAL(109,A1:A1)

which will exclude from the sum any hidden
values; the previous formula only excludes
values hidden by a filter.



---
Regards.
Norman


"Len" wrote in message

Hi Norman,

After "=SubTotal(9, A1:A10)" is calculated, the result is different
( ie 10,884.00 ) and unable to obtain 10,086.40, am I miss out
anything ?

Regards
Len


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
Need to exclude certain cells in a range Bob Smith Excel Worksheet Functions 3 May 5th 06 05:25 PM
How to exclude certain cells from a range? Ed Excel Programming 5 January 11th 06 06:18 PM
How to use macros to copy a range of cells which can exclude some cells which I didn't want to be copied? excelnovice Excel Worksheet Functions 2 September 25th 05 12:38 AM
Exclude blank cells from a range? achidsey Excel Programming 4 August 12th 05 02:45 AM
Adding colour to a range of cells based on one of the cells v... McKenna Excel Discussion (Misc queries) 4 March 11th 05 02:25 PM


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