+ Reply to Thread
Results 1 to 6 of 6

I have two columns of data that I need parse data from every 1 second to every 10 minutes.

  1. #1
    Registered User
    Join Date
    07-21-2012
    Location
    London, englan
    MS-Off Ver
    Excel 2007
    Posts
    7

    I have two columns of data that I need parse data from every 1 second to every 10 minutes.

    Hi everyone,

    I need a macro to parse a big data set. The data is logging every second, however I only require the values when it starts, then every 10 minutes after that. I process this file after its collected.

    I want to start at the first time in R2C1, copy both the time and the Baro value. So copy R2C1 & R2C2 (both cells) for that time. Then paste these values into another worksheet. Then I need the next value 10 minutes later & repeat it for the entire file. So one continuous loop until all values are pasted into the one worksheet.

    Time.........Baro
    23:14:13 1022.7
    23:14:14 1022.71
    23:14:15 1022.67
    23:14:16 1022.65
    23:14:17 1022.63
    23:14:18 1022.63
    23:14:19 1022.64
    23:14:20 1022.67
    23:14:21 1022.69
    23:14:22 1022.7
    23:14:23 1022.66
    23:14:24 1022.66
    23:14:25 1022.65
    23:14:26 1022.64
    23:14:27 1022.65
    23:14:28 1022.67
    23:14:29 1022.71
    23:14:30 1022.72
    23:14:31 1022.7
    23:14:32 1022.65
    ............ ...........
    23:24:14 1022.60
    ............ ...........

    Heres the code and the attachment I have so far. A loop may be easier.

    The macro I recorded copied the first set of values and pasted it into a new sheet, then I added 10 minutes to the initial value in the cell below. Then I copied that new value and searched for it, then copied the correct set. I basically need a loop. This method I am using is not efficient.

    Please Login or Register  to view this content.
    Barometer Readings 2.xlsm
    Last edited by reesjordan; 06-16-2014 at 08:34 PM. Reason: Added more comments to code

  2. #2
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: I have two columns of data that I need parse data from every 1 second to every 10 minu

    Put this formula in C2, drag to D2, and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    1. Include a sample workbook with an example of the result you want
    2. Use [CODE] and [FORMULA] wrappers for your VBA code or excel formulas
    3. If your question has been answered, mark the thread as SOLVED and click on the "Add Rep" star to thank whoever helped you.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: I have two columns of data that I need parse data from every 1 second to every 10 minu

    Hello reesjordan,

    The macro below has been added to the attached workbook and tested with the data.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: I have two columns of data that I need parse data from every 1 second to every 10 minu

    if you need a code that can trigger a another code based on time, try this:


    Please Login or Register  to view this content.
    that above runs in 10 seconds from whatever time it is now - it runs the YourOtherSub

    you can change the timevalue to any amount of time you need the code to automatically initiate
    thus this would run in 1 hour
    Please Login or Register  to view this content.

    so... to make it a loop running by itself automatically...


    Please Login or Register  to view this content.
    this code runs the My_other_Sub in every 10 seconds. Notice it has "Call Example" on the end of the My_other_Sub - that part makes the code repeat..


    hope this helps..
    don't worry, there's a lot of people that are far more confused than you
    but if you liked what i suggested. Click for me the "Add Reputation" - that way, we'd be both happy.

  5. #5
    Registered User
    Join Date
    07-21-2012
    Location
    London, englan
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: I have two columns of data that I need parse data from every 1 second to every 10 minu

    Thanks everyone; I really appreciate all your work. Great solutions.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: I have two columns of data that I need parse data from every 1 second to every 10 minu

    Hello reesjordan,


    Thanks for the feedback and marking your post as solved.

+ 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. Parse cell data into multiple columns
    By maldonadocj in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-05-2014, 08:16 AM
  2. How do I parse a single column of data into multiple columns?
    By stevenica in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-02-2011, 02:27 PM
  3. Parse data in column A to seperate columns
    By ianmorris1977 in forum Excel General
    Replies: 3
    Last Post: 11-30-2008, 08:42 AM
  4. Parse Data to Various Columns
    By jkareem@iupui.edu in forum Excel General
    Replies: 5
    Last Post: 07-12-2006, 03:55 PM

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