+ Reply to Thread
Results 1 to 2 of 2

Formula in visible rows of filtered column

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Formula in visible rows of filtered column

    Good morning, Gurus.

    I have applied 3 filters to a data set, and need to add a formula down one column of the filtered data. I know how to select the entire filtered range, but how would I select only a single column of a filter range, and then add a formula to the visible rows, (minus the headings in row 1)?

    Here's what I've got that is NOT working:
    Range("I1").AutoFilter Field:=9, Criteria1:="032961"
        Range("AA1").AutoFilter Field:=27, Criteria1:=">0", _
            Operator:=xlAnd
        Range("AD1").AutoFilter Field:=30, Criteria1:="0"
        Set Rng = Columns("AD:AD").AutoFilter.Range 'This is where I get the error
        Rng.Offset(1, 0).Resize(Rng.Rows.Count - 1, _
        Rng.Columns.Count).FormulaR1C1 = "=RC[-3]"
        ActiveSheet.AutoFilterMode = False
    Thanks in advance for any help you can offer.

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Formula in visible rows of filtered column

    If this can't be done, perhaps I could use a helper column and just paste a formula all the way down the column. I still believe the earlier way would be neater.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1