LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default looping thru rows of variable length

I used vba to import a tab delimited text file.
I need to automatically do calcs on the data.
My A column has data in variable lengths in the following format
(beginning with Cell A22):

[Step 1]
time
12:00
12:02
12:04
12:06

[Step 2]
time
13:00
13:02
13:04
13:06
13:08

[Step X] Variable amount of steps and data
time
13:00
13:02
13:04
13:06


I want to put in a column the elapsed time for the data in each step,
restarting the time elapsed at 0 for each step.
So the first value would have 0. So in K24 I would have 0, in K25 I
would have A25-$A$24.
I am not sure how to loop and test to see if I need to start over
again with the next [Step]
I assume I need to anchor the first time reading after the word "time"
then use that to subtract from each other value untile a blank row is
found. Then start over.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
hide rows variable row length anduare2 Excel Programming 2 April 15th 08 03:20 PM
Reading Rows of Variable Length DCondie Excel Programming 2 November 13th 04 03:54 PM
Counting Variable Length of Rows in a Named Range jandre[_2_] Excel Programming 0 October 28th 04 06:26 PM
Counting Variable Length of Rows in a Named Range jandre[_3_] Excel Programming 0 October 28th 04 06:24 PM
Counting Variable Length of Rows in a Named Range jandre Excel Programming 1 October 28th 04 05:27 PM


All times are GMT +1. The time now is 06:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"