+ Reply to Thread
Results 1 to 2 of 2

How to reference only visible cells once filtered

  1. #1
    Registered User
    Join Date
    08-26-2013
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    1

    How to reference only visible cells once filtered

    Hello,

    I cannot figure out how to return the reference to the next visible cell in a column. I have values in column D (D2=292.6, D3=270.57, D4=263.85, D5=263.49...), and would like to return in column H the difference between neighboring columns, so H2=D2-D3. The issue is that rows will be filtered, and I need the equation to only consider visible rows, so if row 3 is filtered, the resulting value in H2 should now be D2-D4.

    Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: How to reference only visible cells once filtered

    hi and welcome to the forum

    Without seeing a sample of what you are working with, try using 1 of the features of the subtotal() function - it only works on visible rows
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Filtered data pasting - visible cells only
    By olechkq in forum Excel General
    Replies: 1
    Last Post: 03-08-2012, 03:41 AM
  2. How to sum a filtered list by visible cells only?
    By DorothyFan1 in forum Excel General
    Replies: 2
    Last Post: 10-10-2011, 02:03 PM
  3. Changing visible (filtered) cells
    By Edwin Niemoller in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-09-2005, 04:05 PM
  4. [SOLVED] average of visible cells in a filtered range
    By dave roth in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-23-2005, 08:06 AM

Tags for this Thread

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