+ Reply to Thread
Results 1 to 4 of 4

Select visible row filtered data

  1. #1
    Registered User
    Join Date
    06-16-2015
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    52

    Select visible row filtered data

    I have an Excel file with over 50.00 rows, which I update on a monthly base. However, some information needs to be updated on ad-hoc base.
    These updates take information from a different Excel file. Both files use the same unique values, allowing me to index match the information from one file to the other.

    My solution to only update the rows with new information, is as follows. I apply a filter based on the unique identifier value from the updatefile. With an Index/Match formula, I then update the information in some columns, select the full row and paste it as values. I then go on the the next unique identifier and continue with the same process until everything has been updated.

    It works, but I do have an issue, because of the way I select the cell in the only visible row. For now I use the following formula:
    Please Login or Register  to view this content.
    It thus starts at the header row and then loops until it finds the only visible row. Because of the huge number of rows, this takes quite some time.

    Is there an easier way to achieve what I want?

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Select visible row filtered data

    I understand that this may vary - just trying to understand relative sizes
    Q1
    There are 50k rows
    How many rows are visible after filter?
    How many rows are updated?

    Q2
    Instead of " I select the full row and paste it as values", why not copy & paste values the whole sheet in one hit like this?:
    Please Login or Register  to view this content.
    Q3
    What do you mean by "update the information in some columns" - are you pasting or doing something different?

    Selecting is usually not necessary
    "Selecting" - takes time and VBA usually does not require it. Just point it at the correct cells and tell it what to do without selecting
    Last edited by kev_; 06-03-2017 at 03:06 PM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,324

    Re: Select visible row filtered data

    Try something like:

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    06-16-2015
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    52

    Re: Select visible row filtered data

    Thanks for your reply!

    Quote Originally Posted by kev_ View Post
    I understand that this may vary - just trying to understand relative sizes
    Q1
    There are 50k rows
    How many rows are visible after filter?
    How many rows are updated?
    After filter only 1 row.
    The number of updates rows differ per update.

    My reasoning is that I have my masterfile with 50K rows. The updatefile can contain updates for 10 rows or for 100 rows. So, I need to apply my Index/Match formula only to the rows for which I have an update. That is why I thought it would make sense to only keep 1 row visible in my masterfile and update some cells. Then filter the next row, update, and so on.

    Quote Originally Posted by kev_ View Post
    Q2
    Instead of " I select the full row and paste it as values", why not copy & paste values the whole sheet in one hit like this?:
    Please Login or Register  to view this content.
    Makes sense, but I apply the filter, based on the unique identifier in cell A2 in the update file. Once updated, I delete row 2 in the updatefile, shifting the cells up and resulting in a new value in A2 which then will be used to apply on the filter again in the masterfile.

    Quote Originally Posted by kev_ View Post
    Q3
    What do you mean by "update the information in some columns" - are you pasting or doing something different?
    Each row has approx. 50 columns with information. But only 5 columns have information that needs to be updated based on the updatefile.

    Quote Originally Posted by kev_ View Post
    Selecting is usually not necessary
    "Selecting" - takes time and VBA usually does not require it. Just point it at the correct cells and tell it what to do without selecting
    Makes sense!
    Last edited by Nipius; 06-03-2017 at 03:20 PM. Reason: Used quotes better

+ 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 on visible rows
    By jamesbrightwell in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2015, 01:31 AM
  2. Offset to next visible cell in filtered data
    By Varun13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2013, 04:37 AM
  3. [SOLVED] Macro to select visible rows containg data in filtered list
    By knevil in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-15-2013, 01:22 PM
  4. Replies: 3
    Last Post: 04-11-2013, 04:13 AM
  5. Error checking of visible filtered data - Display text in textbox if no data visible
    By cocobean in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2012, 12:58 AM
  6. Macro to select till last cell visible(numbers in cells) (filtered) ignoring formulas
    By DiegoBoffa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2012, 11:10 PM
  7. Filtered data pasting - visible cells only
    By olechkq in forum Excel General
    Replies: 1
    Last Post: 03-08-2012, 03:41 AM

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