+ Reply to Thread
Results 1 to 6 of 6

Using a filtered range to calculate data, yet it goes through all the data.

  1. #1
    Registered User
    Join Date
    07-21-2019
    Location
    USA
    MS-Off Ver
    office 365 pro Excel version 1906
    Posts
    19

    Using a filtered range to calculate data, yet it goes through all the data.

    Hello

    I am expanding my skills in VBA, and thanks to this forum i am really starting to enjoy automating my workbooks.

    I had run into this problem earlier, and my workaround was "IF THEN" statements, primarily because the filtering aspect didn't work. But now, my datasets have become quite large and will continue to get larger.


    I set my filters and all I am trying to do is go through each filtered line and add the word Yes to the 25th row. I am at a complete loss though as to why this won't work.

    Please Login or Register  to view this content.

    as you can imagine, this goes through all the cells.

    Appreciate any guidance you can offer on this

    Groundhog
    Last edited by damngroundhog; 08-12-2019 at 10:31 AM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Using a filtered range to calculate data, yet it goes through all the data.

    Try:
    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    07-21-2019
    Location
    USA
    MS-Off Ver
    office 365 pro Excel version 1906
    Posts
    19

    Re: Using a filtered range to calculate data, yet it goes through all the data.

    That was a typo, i meant to put in

    Please Login or Register  to view this content.
    And actually what happens is,

    it counts the rows and puts them sequentially, so when i unfilter the sheet,

    the first 250 items have yes in them

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Using a filtered range to calculate data, yet it goes through all the data.

    Maybe:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-21-2019
    Location
    USA
    MS-Off Ver
    office 365 pro Excel version 1906
    Posts
    19

    Re: Using a filtered range to calculate data, yet it goes through all the data.

    That actually went through the entire worksheet plus 2000 more rows.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Using a filtered range to calculate data, yet it goes through all the data.

    Another:

    Please Login or Register  to view this content.
    Last edited by xladept; 08-12-2019 at 11:28 AM. Reason: Typo

+ 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. Copy filtered data into filtered range in a separate sheet
    By vikas.trades25 in forum Excel General
    Replies: 1
    Last Post: 02-07-2019, 04:04 AM
  2. [SOLVED] Help With A Formula To Calculate Only Filtered Data?
    By artiststevens in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-20-2017, 09:10 AM
  3. [SOLVED] how i can update my formula for calculate only filtered(seen) data
    By aaaaa34 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-24-2014, 07:54 AM
  4. Replies: 5
    Last Post: 09-29-2014, 08:31 PM
  5. Selecting and Copying Variable Data Range from a Filtered Data Set
    By evan.sams in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-14-2012, 12:02 AM
  6. filter and automatically calculate only the filtered data
    By herolindl in forum Excel General
    Replies: 5
    Last Post: 07-05-2010, 08:15 PM
  7. Excel 2007 : Calculate Average on Filtered Data Only
    By Justinetme in forum Excel General
    Replies: 3
    Last Post: 09-16-2009, 06:01 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