+ Reply to Thread
Results 1 to 2 of 2

How to add formulae to cell after advanced auto filter

  1. #1
    Registered User
    Join Date
    03-29-2017
    Location
    manchester
    MS-Off Ver
    2013
    Posts
    56

    How to add formulae to cell after advanced auto filter

    Hi, please could someone help?

    Im very new to VBA, so this maybe very simple...

    i have some code that sorts my data into order using advanced auto-filter and it then selects the cell in which i need the formulae adding, the problem i have is that the formulae i am using includes absolute references and it locks it to that particular cell instead of the first visible cell.

    The working bit of the code is;-

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    the formulae i need adding is this but i need the R1253C9 & R1253C14 to be absolute references but not to that cell, if im making sense??
    i need them to be locked to rc[-6] & rc[-1]


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    can anyone point me in the right direction ?

    thanks

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: How to add formulae to cell after advanced auto filter

    confused
    not sure if you want to "locked" (absolute) and what you want to be relative
    in RC notation removing the [] applies $ in formula

    ie putting in A1
    =SUM($B$1:$B$5) =SUM(R1C2:R5C2)
    =SUM(B1:B5) = SUM(RC[1]:R[4]C[1])

    so just remove the square brackets?
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Different results for Auto Filter and Advanced Filter
    By me20161130 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-01-2016, 09:02 AM
  2. Advanced Filter - Auto refresh
    By drewan187 in forum Excel General
    Replies: 5
    Last Post: 11-04-2015, 10:22 AM
  3. advanced auto-filter not working
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 08-28-2015, 06:09 PM
  4. [SOLVED] advanced auto filter vs. regular filter
    By ammartino44 in forum Excel General
    Replies: 1
    Last Post: 08-28-2015, 05:07 PM
  5. Advanced Auto Filter. ( Get Distinct Value, Max, Min )
    By slapaks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2014, 02:04 AM
  6. Delete Rows hidden by either Auto Filter and Advanced Filter
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:29 AM
  7. [SOLVED] Advanced Filter results don't match auto filter
    By WaterWings in forum Excel General
    Replies: 1
    Last Post: 09-13-2012, 05:37 PM

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