Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Terri
 
Posts: n/a
Default SumIf in Visible Cell Range

How do you set the range in the SumIf if you only want to refer to visible
cells in the range and not all the cells?

Thanks to all of You!
  #2   Report Post  
Alok
 
Posts: n/a
Default

Hi,
I do not think there is a way to total only the visible rows if the rows are
hidden by the user. However, if the hiding takes place as a result of a Data
Filter then you can use the formula

=SUBTOTAL(9,D2:D7)

This will total all the visible rows as long as the hiding of the rows takes
place as a result of the filter.

Alok

"Terri" wrote:

How do you set the range in the SumIf if you only want to refer to visible
cells in the range and not all the cells?

Thanks to all of You!

  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

On Excel 2003, you can also subtotal "the visible rows if the rows are
hidden by the user".

Alok wrote:
Hi,
I do not think there is a way to total only the visible rows if the rows are
hidden by the user. However, if the hiding takes place as a result of a Data
Filter then you can use the formula

=SUBTOTAL(9,D2:D7)

This will total all the visible rows as long as the hiding of the rows takes
place as a result of the filter.

Alok

"Terri" wrote:


How do you set the range in the SumIf if you only want to refer to visible
cells in the range and not all the cells?

Thanks to all of You!


--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
  #4   Report Post  
Alok
 
Posts: n/a
Default

Thanks.

Alok

"Aladin Akyurek" wrote:

On Excel 2003, you can also subtotal "the visible rows if the rows are
hidden by the user".

Alok wrote:
Hi,
I do not think there is a way to total only the visible rows if the rows are
hidden by the user. However, if the hiding takes place as a result of a Data
Filter then you can use the formula

=SUBTOTAL(9,D2:D7)

This will total all the visible rows as long as the hiding of the rows takes
place as a result of the filter.

Alok

"Terri" wrote:


How do you set the range in the SumIf if you only want to refer to visible
cells in the range and not all the cells?

Thanks to all of You!


--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.

  #5   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Aladin

Just a small caveat, when rows are hidden by the user, then to have them
ignored by Subtotal(), you have to add 100 to the normal number for the
function required.
=SUBTOTAL(109,D2:D7)

=SUBTOTAL(9,D7:D27) will behave the same as in earlier versions of Excel
i.e. it will not ignore user hidden rows.

Regards

Roger Govier



Aladin Akyurek wrote:

On Excel 2003, you can also subtotal "the visible rows if the rows are
hidden by the user".

Alok wrote:

Hi,
I do not think there is a way to total only the visible rows if the
rows are hidden by the user. However, if the hiding takes place as a
result of a Data Filter then you can use the formula

=SUBTOTAL(9,D2:D7)

This will total all the visible rows as long as the hiding of the
rows takes place as a result of the filter.

Alok

"Terri" wrote:


How do you set the range in the SumIf if you only want to refer to
visible cells in the range and not all the cells?

Thanks to all of You!





  #6   Report Post  
topola
 
Posts: n/a
Default SumIf in Visible Cell Range

In Excel 2003 you can summarize hidden rows by using another set of
keys for subtotal (X+100) - see Excel Help for Subtotal function.

SUBTOTAL(9,D2:D7) = Summarize all (visible and invisible) rows
SUBTOTAL(109,D2:D7) = Summarize visible rows only

With the columns however this is not so simple. To know more see the
topic:
"Subtotal function for hidden row"
topola - 13 Paz. 16:04 microsoft.public.excel.worksheet.functions
Topola

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
Cell linked to a range of cell values in different sheet szeng Excel Discussion (Misc queries) 1 August 9th 05 02:41 AM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Offset Function works in cell, not in named range DragonslayerApps Excel Worksheet Functions 0 July 25th 05 04:39 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Reveal cell formats and extendable range in tool/statusbar/icon. Danny O'Hern ([email protected]) Excel Worksheet Functions 0 April 29th 05 01:16 PM


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