Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default AutoFilter Header Row

I want to apply an AutoFilter to a Structured Table within my
worksheet. Row 1 is a header row, and row 2 contains a series of
inputs needed for calculations within the table. I only want to apply
the AutoFilter to row 3 and down (which contain dates), but my code
always filters out my input row because it doesn't contain a date. I'm
using:

ActiveSheet.Range("A3").AutoFilter field1:=1, ..........

Any suggestions?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default AutoFilter Header Row

On Aug 17, 11:06 am, bgetson wrote:
I want to apply an AutoFilter to a Structured Table within my
worksheet. Row 1 is a header row, and row 2 contains a series of
inputs needed for calculations within the table. I only want to apply
the AutoFilter to row 3 and down (which contain dates), but my code
always filters out my input row because it doesn't contain a date. I'm
using:

ActiveSheet.Range("A3").AutoFilter field1:=1, ..........

Any suggestions?


Move your inputs in to a row above your table. If your header row is
row 1 in your spreadsheet, just insert a row above it.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default AutoFilter Header Row

On Aug 17, 2:06 pm, Ferris wrote:
Move your inputs in to a row above your table. If your header row is
row 1 in your spreadsheet, just insert a row above it.


The problem is that my formulas are recursive. Because I have several
rows of data (anywhere from 11,000 to 100,000), this is the easiest
and quickest way for me to do several calculations at once. This means
that my inputs have to be directly above the calculations. They are
basically initial conditions for 2-3 of 20 columns.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default AutoFilter Header Row

Maybe it would make more sense if I phrase my problem a different way.

I have a table full of data that is sorted in ascending order based on
time. There is a row of initial conditions at the top of the table so
that my recursive formulas can reference the previous time interval
and evalulate change.

I am creating a macro that will restrict my data based on a time
interval that I create (through a user form), with the ultimate goal
of updating the first non-filtered row so that it references the
initial conditions (instead of the hidden row above it).

What would be the best way to go about this?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default AutoFilter Header Row

On Aug 17, 1:24 pm, bgetson wrote:
Maybe it would make more sense if I phrase my problem a different way.

I have a table full of data that is sorted in ascending order based on
time. There is a row of initial conditions at the top of the table so
that my recursive formulas can reference the previous time interval
and evalulate change.

I am creating a macro that will restrict my data based on a time
interval that I create (through a user form), with the ultimate goal
of updating the first non-filtered row so that it references the
initial conditions (instead of the hidden row above it).

What would be the best way to go about this?


I would still move the initial conditions above the table - just so it
never gets hidden by your filter, and because it really isn't part of
your data. It sounds like you may need to do your calculations in VBA.
I'm not sure how you'd manage skipping over hidden rows in your data
with a formula in a sheet. In VBA you could loop through your data
and on the first visible row use the initial values and on subsequent
visible rows use the previous visible rows values. If you've found a
way to do a similar process in an Excel formula I'd love to see it,
always looking to add something to my toolkit.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default AutoFilter Header Row

There might be some way of using a subtotal to count the visible rows
and reference the inital conditions if the count returns 0, but I
think that may be too much trouble than it's worth. I was afraid of
the VBA alternative because of the work it would create in undoing the
changes each time I filter.

Thanks for your input.

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
excel 2007 autofilter change to 2003 autofilter functionality? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 10:05 PM
2007 excel autofilter back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 3 April 19th 10 08:11 PM
2007 excel autofilter change back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 05:53 PM
Autofilter header row Mister Cul-de-sac Excel Discussion (Misc queries) 3 April 11th 10 04:46 PM
Excel-Header-My Company Name won't work in Header (AT&T) & Time June K Excel Discussion (Misc queries) 2 April 10th 06 08:36 PM


All times are GMT +1. The time now is 08:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"