PC Review


Reply
Thread Tools Rate Thread

Delete Row If--> Data aggregation issue

 
 
totalnatal
Guest
Posts: n/a
 
      3rd Jul 2009
Hi,

I have this data:

column A B C D

timestamp bs bp as ap
00:07.0
00:07.0 30 2402 9 2403
00:07.0
00:07.0 29 2402
00:07.0
00:07.0 8 2403
00:07.0
00:07.0 19 2402
00:07.0
00:07.0 17 2403 30 2404

What I want to do is have a macro that can combine the data so that it
moves all the values so that I have an order book that looks liek this

timestamp bs bp as ap
00:07.0 30 2402 9 2403
00:07.0 29 2402 8 2403
00:07.0 19 2402 30 2404
00:07.0 17 2403

I do not know VBA but I want to learn, so if you are kind enough to
post the code I will make the effort to dissect it to understand how
it works.

I have given a name to the columns
A is TIME
B is BS
C is BP
D is AS
E is AP

Thank you
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      3rd Jul 2009

Are the time stamps "exactly" the same time? I'm asking the question because
I'm not sure if the timestamp column is a text string or or a microsoft
serial time. You can check by selecting one of the cells and then go to
format menu to see the format of the cells.

I assume you only want to combine rows where the timestamps are the same.
If two line are different by 0.1 seconds do you want them combined? The
formating may be trucating least significant digits in the time that you are
not seeing on the worksheet. I want to make sure I'm usaing the correct
algorithmn before I write the macro.

"totalnatal" wrote:

> Hi,
>
> I have this data:
>
> column A B C D
>
> timestamp bs bp as ap
> 00:07.0
> 00:07.0 30 2402 9 2403
> 00:07.0
> 00:07.0 29 2402
> 00:07.0
> 00:07.0 8 2403
> 00:07.0
> 00:07.0 19 2402
> 00:07.0
> 00:07.0 17 2403 30 2404
>
> What I want to do is have a macro that can combine the data so that it
> moves all the values so that I have an order book that looks liek this
>
> timestamp bs bp as ap
> 00:07.0 30 2402 9 2403
> 00:07.0 29 2402 8 2403
> 00:07.0 19 2402 30 2404
> 00:07.0 17 2403
>
> I do not know VBA but I want to learn, so if you are kind enough to
> post the code I will make the effort to dissect it to understand how
> it works.
>
> I have given a name to the columns
> A is TIME
> B is BS
> C is BP
> D is AS
> E is AP
>
> Thank you
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data aggregation with multiple workbooks Kadco Microsoft Excel Programming 1 12th May 2010 08:56 AM
Data aggregation with multiple workbooks Kadco Microsoft Excel Misc 1 10th May 2010 10:19 PM
Data aggregation with multiple workbooks Kadco Microsoft Excel Setup 0 3rd May 2010 09:54 PM
Data Aggregation Question... Trevor Williams Microsoft Excel Programming 1 26th Aug 2008 01:14 PM
Data Aggregation - Row Comparison or Merge strategy to support record versioning BrendanC Microsoft ADO .NET 0 7th Jun 2007 09:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:07 PM.