+ Reply to Thread
Results 1 to 7 of 7

Need to pare down huge data file for plotting

  1. #1
    Registered User
    Join Date
    07-21-2011
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    16

    Need to pare down huge data file for plotting

    We have a piece of test equipment, home grown, that is controlled by a VB program. In a few minutes, it gathers a lot of information from different sensors and inputs, and exports them to an XL workbook that ends up consisting of a dozen worksheets.

    One worksheet alone has 18 columns and about 53,000 rows. Needless to say, it takes a long while to plot this data.

    The data is necessary as it is, but the plot does not need to have that fine of a resolution; instead, it would be just fine if we plotted every 25th row. So instead of 53K+ rows, we could have just over 2100 rows.

    I need a macro that would copy every 25th row and paste it on another worksheet, and then we could more effciently plot this new, abbreviated data. It probably would be better if this 'other' worksheet were in a different workbook as well.

    I would attach the workbook with the data, but it is over 27MB!

    Thanks for your help.

    Alex
    Last edited by Nando01; 09-20-2011 at 10:02 AM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Need to pare down huge data file for plotting

    hi, Alex, please check attachment, run code "test", the data is supposed to start from A1 cell
    Attached Files Attached Files

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need to pare down huge data file for plotting

    You could use a formula
    Say your data begins A2
    In B2
    Please Login or Register  to view this content.
    In B3
    Please Login or Register  to view this content.
    Drag/Fill Down

    You could use, instead of ROW($A$2), just 2
    I just used ROW($A$2) to illustrate that we are adding the start row as an "offset" for the returned values.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    07-21-2011
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Need to pare down huge data file for plotting

    watersev
    When I try to download your file, I get a [Microsoft Visual Basic - File not Found] error message, twice; and then another error message regarding 'unreadable contents'.

    But I would really like to see your proposed approach!

    Marcol
    I understand your approach, but the data extends beyond one column.

    For example, I just opened the file from one of this morning's tests.
    The data to plot for three of the spreadsheets extends from columns A through N (for all three sheets), and the number of rows are 54005, 67992, and 41449.

    Thanks for following up!

    Alex

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need to pare down huge data file for plotting

    Best post a sample of your data say about 1000 rows, disguise any confidential data, but be sure to keep the format and layout the same.

    [EDIT]
    The Formula can be in any column and dragged across as well as down, does that help?
    Last edited by Marcol; 09-19-2011 at 01:36 PM.

  6. #6
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Need to pare down huge data file for plotting

    uploaded again, though it's ok for me when downloaded from post # 2 (files are identical, just in case in two different formats)

    The code itself provided data starts in A1 cell:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-21-2011
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Need to pare down huge data file for plotting

    watersev
    That worked perfectly - exactly what I needed!

    Thank You !!!!!!!!!!!!!!!!!!!

    Alex

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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