LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to Evaluate Values in the filter used range

I am not getting correct calculation when calculating in filter used
range Please help.
I want to calculate visible rows only after filtering the work sheet.
Totally I filter 5 items each time I filter one item this in a loop.

Example of my code

But All range and allrange1 totals are different

Set AllRange = Worksheets("Quantum Items").UsedRange

allrange1 = AllRange.Columns(1).SpecialCells(xlVisible).Count ' this
is counting visible rows

For j = 2 To allrange1 'AllRange.Rows.Count ' there is a header row
in the range !!

If Rows(AllRange.Cells(j, q_SERVICE).Row).Hidden = False Then
calculate calling a procedure
end if
------------------------
I used another method but it is also not calculating properly means it
not skipping the hidden rows while calculating the code is like this.

Quantum Items work sheet is used with the advanced filter.

Set AllRange = Worksheets("Quantum Items").UsedRange

For j = 2 To AllRange.Rows.Count

If Rows(AllRange.Cells(j, q_SERVICE).Row).Hidden = False Then
calculation
end if


Thanks in advance.





 
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
filter for missing values in a range billnock Excel Discussion (Misc queries) 1 January 30th 10 11:01 PM
Evaluate boolean values as 1 or 0 hmm Excel Worksheet Functions 3 September 2nd 08 01:32 PM
I Need a formula to evaluate a cell with + or - values Bob in Oklahoma Excel Worksheet Functions 6 October 31st 05 02:41 PM
HOW to Evaluate a range with IF ? dancab Excel Discussion (Misc queries) 3 September 1st 05 05:08 PM
Search/Filter to find values in another range based on two cell values Andy Excel Programming 2 April 29th 04 04:08 PM


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