+ Reply to Thread
Results 1 to 2 of 2

Drag formula to entire column with ignoring hidden rows

  1. #1
    Registered User
    Join Date
    06-05-2018
    Location
    Malaysia
    MS-Off Ver
    2016
    Posts
    1

    Drag formula to entire column with ignoring hidden rows

    Dear everyone,

    Have some problem with dragging formula to the entire column by ignoring the hidden rows.

    For examples, cell A1 inserted formula =SUMMARY!J7 , which is the data i need from another sheet, follow by cell A15 to be inserted formula = SUMMARY!J8 .

    Yet i fail to drag the whole 300k column with the Visible cells way. Hope someone can help

  2. #2
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    276

    Re: Drag formula to entire column with ignoring hidden rows

    copy and paste ignores hidden cells, which works in most cases

    however to get your situation to work where A1 =SUMMARY!J7, A2:A14 (hidden), A15 =SUMMARY!J8

    instead of trying to figure out a complicated cell formula which works when copied, you're better off going through a sorting process
    1. if you get lost close and don't save so you can start over.
    2. un-filter your data
    3. Insert two columns to the left of the formula one (column A in your example)
    4. Fill the first colum with a counting formula (A1 =1, A2:A3000 =A1+1)
    5. copy and paste the first colum by values over the top of itself to preserve the original row order.
    6. fill the second column with a filter formula that matches how you had it filtered(B1:B3000 =AND(D1="New",OR(G1="Larry",G1="Curly",G1="Moe")))
    7. select the whole data range including the two new columns you just added
    8. sort by the second column descending because in Excel TRUE < FALSE (sort by B descending)
    9. Filter for TRUE
    10. Fill your formula in as you would have done before by dragging it down
    11. Sort by the first column since it preserved the original order
    12. remove the two helper columns you created
    13. re-filter your data as you originally had it

    It's a bit of a twiddle, but it's kinda fast once you get the hang of it.
    If it'd make you feel better using my answer because of my street cred, then you can go ahead and click Add Reputation below to improve it.

+ 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. [SOLVED] Ignoring Hidden Rows with AutoFilter Macro
    By CTW in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-10-2017, 11:53 PM
  2. Replies: 4
    Last Post: 03-11-2016, 03:15 PM
  3. drag formula by ignoring hidden rows/columns
    By sarinky in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-11-2013, 01:42 AM
  4. Replies: 3
    Last Post: 07-28-2012, 09:58 PM
  5. [SOLVED] Excel 2007 : Drag Formula Down Entire Column
    By KSSLR in forum Excel General
    Replies: 2
    Last Post: 06-18-2012, 12:57 PM
  6. Drag values with hidden rows
    By VICTOR5 in forum Excel General
    Replies: 1
    Last Post: 11-09-2010, 08:48 AM
  7. Ignoring autofiler hidden rows with SUMPRODUCT and SUBTOTAL
    By JONNY981 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-19-2009, 12:19 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