Sort by date/time, copy, & paste special (transpose)

resinguy

New Member
Joined
Aug 30, 2017
Messages
2
Hi All,

I'm new to the forum and to the macro world. Here is what I'm trying to do:

  1. I have a datastream that consists of 23 datapoints/tag ID's that are logged on one minute intervals (see "Source Data")
  2. I would like to write a macro that select this data, sort it by date/time in ascending order, store numerical values as integers, copy the data, and transpose the data into a new workbook (see "Desired Format")
  3. I would like to be able to extract the source data into the new workbook without having to open the source data

Here are a few of the subtleties that are really throwing me for a loop:

  1. The range varies depending on when I download the source data
  2. Depending on when the source data is downloaded, the data tags/time stamps are not always the same
  3. I'm brand new to this
    Source Data

    <tbody>
    [TD="align: center"]Var Name
    [/TD]
    [TD="align: center"]Time String
    [/TD]
    [TD="align: center"]Var Value
    [/TD]

    [TD="align: center"]16
    [/TD]
    [TD="align: center"]8/17/2017 16:48
    [/TD]
    [TD="align: center"]11.68718
    [/TD]

    [TD="align: center"]17
    [/TD]
    [TD="align: center"]8/17/2017 16:48
    [/TD]
    [TD="align: center"][/TD]

    [TD="align: center"]18
    [/TD]
    [TD="align: center"]8/17/2017 16:48
    [/TD]
    [TD="align: center"]5.160007
    [/TD]

    [TD="align: center"]19
    [/TD]
    [TD="align: center"]8/17/2017 16:48
    [/TD]
    [TD="align: center"]35.0317
    [/TD]

    [TD="align: center"]20
    [/TD]
    [TD="align: center"]8/17/2017 16:48
    [/TD]
    [TD="align: center"]64.51823
    [/TD]

    [TD="align: center"]21
    [/TD]
    [TD="align: center"]8/17/2017 16:48
    [/TD]
    [TD="align: center"]8.507451
    [/TD]

    [TD="align: center"]22
    [/TD]
    [TD="align: center"]8/17/2017 16:48
    [/TD]
    [TD="align: center"]237.8111
    [/TD]

    [TD="align: center"]23
    [/TD]
    [TD="align: center"]8/17/2017 16:48
    [/TD]
    [TD="align: center"]11.01189
    [/TD]

    [TD="align: center"]1
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]63.87153
    [/TD]

    [TD="align: center"]2
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]224.6817
    [/TD]

    [TD="align: center"]3
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]26.2641
    [/TD]

    [TD="align: center"]4
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]21.99421
    [/TD]

    [TD="align: center"]5
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]2.101758
    [/TD]

    [TD="align: center"]6
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]450.557
    [/TD]

    [TD="align: center"]7
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]63.24147
    [/TD]

    [TD="align: center"]8
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]26.43088
    [/TD]

    [TD="align: center"]9
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]14.90093
    [/TD]

    [TD="align: center"]10
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]20.85473
    [/TD]

    [TD="align: center"]11
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]27.56299
    [/TD]

    [TD="align: center"]12
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]16.36641
    [/TD]

    [TD="align: center"]13
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]67.8
    [/TD]

    [TD="align: center"]14
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]256.2681
    [/TD]

    [TD="align: center"]15
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]964.3976
    [/TD]

    [TD="align: center"]16
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]11.794
    [/TD]

    [TD="align: center"]17
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"][/TD]

    [TD="align: center"]18
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]5.131602
    [/TD]

    [TD="align: center"]19
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]34.98778
    [/TD]

    [TD="align: center"]20
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]64.67014
    [/TD]

    [TD="align: center"]21
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]8.528718
    [/TD]

    [TD="align: center"]22
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]239.2578
    [/TD]

    [TD="align: center"]23
    [/TD]
    [TD="align: center"]8/17/2017 16:49
    [/TD]
    [TD="align: center"]11.62359
    [/TD]

    [TD="align: center"]1
    [/TD]
    [TD="align: center"]8/17/2017 16:50
    [/TD]
    [TD="align: center"]64.09722
    [/TD]

    [TD="align: center"]2
    [/TD]
    [TD="align: center"]8/17/2017 16:50
    [/TD]
    [TD="align: center"]226.7506
    [/TD]

    [TD="align: center"]3
    [/TD]
    [TD="align: center"]8/17/2017 16:50
    [/TD]
    [TD="align: center"]26.2424
    [/TD]

    [TD="align: center"]4
    [/TD]
    [TD="align: center"]8/17/2017 16:50
    [/TD]
    [TD="align: center"]21.98591
    [/TD]

    [TD="align: center"]5
    [/TD]
    [TD="align: center"]8/17/2017 16:50
    [/TD]
    [TD="align: center"]2.081016
    [/TD]

    [TD="align: center"]6
    [/TD]
    [TD="align: center"]8/17/2017 16:50
    [/TD]
    [TD="align: center"]451.0634
    [/TD]

    [TD="align: center"]7
    [/TD]
    [TD="align: center"]8/17/2017 16:50
    [/TD]
    [TD="align: center"]63.22338
    [/TD]

    [TD="align: center"]8
    [/TD]
    [TD="align: center"]8/17/2017 16:50
    [/TD]
    [TD="align: center"]26.42253
    [/TD]

    [TD="align: center"]9
    [/TD]
    [TD="align: center"]8/17/2017 16:50
    [/TD]
    [TD="align: center"]14.89425
    [/TD]

    [TD="align: center"]10
    [/TD]
    [TD="align: center"]8/17/2017 16:50
    [/TD]
    [TD="align: center"]20.86643
    [/TD]

    </tbody>

    Desired Format[TABLE="class: MsoNormalTable, width: 472"]
    <tbody>[TR]
    [TD="width: 105, bgcolor: transparent"]Date/Time<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    1<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    2<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    3<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    4<o:p></o:p>
    [/TD]
    [TD="width: 15, bgcolor: transparent"]
    5<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    6<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    7<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    8<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    9<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    10<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    11<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    12<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    13<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    14<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    15<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    16<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    17<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    18<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    19<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    20<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    21<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    22<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    23<o:p></o:p>
    [/TD]
    [/TR]
    [TR]
    [TD="width: 105, bgcolor: transparent"]
    8/17/2017 16:48<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 15, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"] <o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    12<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    0<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    5<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    35<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    65<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    9<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    238<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    11<o:p></o:p>
    [/TD]
    [/TR]
    [TR]
    [TD="width: 105, bgcolor: transparent"]
    8/17/2017 16:49<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    64<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    225<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    26<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    22<o:p></o:p>
    [/TD]
    [TD="width: 15, bgcolor: transparent"]
    2<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    451<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    63<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    26<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    15<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    21<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    28<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    16<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    68<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    256<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    964<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    12<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    0<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    5<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    35<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    65<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    9<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    239<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    12<o:p></o:p>
    [/TD]
    [/TR]
    [TR]
    [TD="width: 105, bgcolor: transparent"]
    8/17/2017 16:50<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    64<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    227<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    26<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    22<o:p></o:p>
    [/TD]
    [TD="width: 15, bgcolor: transparent"]
    2<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    451<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    63<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    26<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    15<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    21<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    28<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    16<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    68<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    255<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    966<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    12<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    0<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    5<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    35<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    65<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    9<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    239<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    11<o:p></o:p>
    [/TD]
    [/TR]
    </tbody>[/TABLE]

I have tried muddling around on Youtube and the internet, but I have to admit that this is not my sweet spot (geologist by education). Is what I'd like to do possible with a macro? Any guidance would be greatly appreciated.

Cheers,

Keith
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi All,

I'm new to the forum and to the macro world. Here is what I'm trying to do:

  1. I have a datastream that consists of 23 datapoints/tag ID's that are logged on one minute intervals (see "Source Data")
  2. I would like to write a macro that select this data, sort it by date/time in ascending order, store numerical values as integers, copy the data, and transpose the data into a new workbook (see "Desired Format")
  3. I would like to be able to extract the source data into the new workbook without having to open the source data

Here are a few of the subtleties that are really throwing me for a loop:

  1. The range varies depending on when I download the source data
  2. Depending on when the source data is downloaded, the data tags/time stamps are not always the same
  3. I'm brand new to this
    Source Data

    <tbody>
    [TD="align: center"]Var Name[/TD]
    [TD="align: center"]Time String[/TD]
    [TD="align: center"]Var Value[/TD]

    [TD="align: center"]16[/TD]
    [TD="align: center"]8/17/2017 16:48[/TD]
    [TD="align: center"]11.68718[/TD]

    [TD="align: center"]17[/TD]
    [TD="align: center"]8/17/2017 16:48[/TD]
    [TD="align: center"][/TD]

    [TD="align: center"]18[/TD]
    [TD="align: center"]8/17/2017 16:48[/TD]
    [TD="align: center"]5.160007[/TD]

    [TD="align: center"]19[/TD]
    [TD="align: center"]8/17/2017 16:48[/TD]
    [TD="align: center"]35.0317[/TD]

    [TD="align: center"]20[/TD]
    [TD="align: center"]8/17/2017 16:48[/TD]
    [TD="align: center"]64.51823[/TD]

    [TD="align: center"]21[/TD]
    [TD="align: center"]8/17/2017 16:48[/TD]
    [TD="align: center"]8.507451[/TD]

    [TD="align: center"]22[/TD]
    [TD="align: center"]8/17/2017 16:48[/TD]
    [TD="align: center"]237.8111[/TD]

    [TD="align: center"]23[/TD]
    [TD="align: center"]8/17/2017 16:48[/TD]
    [TD="align: center"]11.01189[/TD]

    [TD="align: center"]1[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]63.87153[/TD]

    [TD="align: center"]2[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]224.6817[/TD]

    [TD="align: center"]3[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]26.2641[/TD]

    [TD="align: center"]4[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]21.99421[/TD]

    [TD="align: center"]5[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]2.101758[/TD]

    [TD="align: center"]6[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]450.557[/TD]

    [TD="align: center"]7[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]63.24147[/TD]

    [TD="align: center"]8[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]26.43088[/TD]

    [TD="align: center"]9[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]14.90093[/TD]

    [TD="align: center"]10[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]20.85473[/TD]

    [TD="align: center"]11[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]27.56299[/TD]

    [TD="align: center"]12[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]16.36641[/TD]

    [TD="align: center"]13[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]67.8[/TD]

    [TD="align: center"]14[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]256.2681[/TD]

    [TD="align: center"]15[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]964.3976[/TD]

    [TD="align: center"]16[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]11.794[/TD]

    [TD="align: center"]17[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"][/TD]

    [TD="align: center"]18[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]5.131602[/TD]

    [TD="align: center"]19[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]34.98778[/TD]

    [TD="align: center"]20[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]64.67014[/TD]

    [TD="align: center"]21[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]8.528718[/TD]

    [TD="align: center"]22[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]239.2578[/TD]

    [TD="align: center"]23[/TD]
    [TD="align: center"]8/17/2017 16:49[/TD]
    [TD="align: center"]11.62359[/TD]

    [TD="align: center"]1[/TD]
    [TD="align: center"]8/17/2017 16:50[/TD]
    [TD="align: center"]64.09722[/TD]

    [TD="align: center"]2[/TD]
    [TD="align: center"]8/17/2017 16:50[/TD]
    [TD="align: center"]226.7506[/TD]

    [TD="align: center"]3[/TD]
    [TD="align: center"]8/17/2017 16:50[/TD]
    [TD="align: center"]26.2424[/TD]

    [TD="align: center"]4[/TD]
    [TD="align: center"]8/17/2017 16:50[/TD]
    [TD="align: center"]21.98591[/TD]

    [TD="align: center"]5[/TD]
    [TD="align: center"]8/17/2017 16:50[/TD]
    [TD="align: center"]2.081016[/TD]

    [TD="align: center"]6[/TD]
    [TD="align: center"]8/17/2017 16:50[/TD]
    [TD="align: center"]451.0634[/TD]

    [TD="align: center"]7[/TD]
    [TD="align: center"]8/17/2017 16:50[/TD]
    [TD="align: center"]63.22338[/TD]

    [TD="align: center"]8[/TD]
    [TD="align: center"]8/17/2017 16:50[/TD]
    [TD="align: center"]26.42253[/TD]

    [TD="align: center"]9[/TD]
    [TD="align: center"]8/17/2017 16:50[/TD]
    [TD="align: center"]14.89425[/TD]

    [TD="align: center"]10[/TD]
    [TD="align: center"]8/17/2017 16:50[/TD]
    [TD="align: center"]20.86643[/TD]

    </tbody>

    Desired Format[TABLE="class: MsoNormalTable, width: 472"]
    <tbody>[TR]
    [TD="width: 105, bgcolor: transparent"]Date/Time<o:p></o:p>[/TD]
    [TD="width: 21, bgcolor: transparent"]
    1<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    2<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    3<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    4<o:p></o:p>
    [/TD]
    [TD="width: 15, bgcolor: transparent"]
    5<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    6<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    7<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    8<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    9<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    10<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    11<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    12<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    13<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    14<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    15<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    16<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    17<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    18<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    19<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    20<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    21<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    22<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    23<o:p></o:p>
    [/TD]
    [/TR]
    [TR]
    [TD="width: 105, bgcolor: transparent"]
    8/17/2017 16:48<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 29, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 15, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 29, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 21, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 29, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 29, bgcolor: transparent"] <o:p></o:p>[/TD]
    [TD="width: 21, bgcolor: transparent"]
    12<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    0<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    5<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    35<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    65<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    9<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    238<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    11<o:p></o:p>
    [/TD]
    [/TR]
    [TR]
    [TD="width: 105, bgcolor: transparent"]
    8/17/2017 16:49<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    64<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    225<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    26<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    22<o:p></o:p>
    [/TD]
    [TD="width: 15, bgcolor: transparent"]
    2<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    451<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    63<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    26<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    15<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    21<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    28<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    16<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    68<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    256<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    964<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    12<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    0<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    5<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    35<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    65<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    9<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    239<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    12<o:p></o:p>
    [/TD]
    [/TR]
    [TR]
    [TD="width: 105, bgcolor: transparent"]
    8/17/2017 16:50<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    64<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    227<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    26<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    22<o:p></o:p>
    [/TD]
    [TD="width: 15, bgcolor: transparent"]
    2<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    451<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    63<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    26<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    15<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    21<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    28<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    16<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    68<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    255<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    966<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    12<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    0<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    5<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    35<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    65<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    9<o:p></o:p>
    [/TD]
    [TD="width: 29, bgcolor: transparent"]
    239<o:p></o:p>
    [/TD]
    [TD="width: 21, bgcolor: transparent"]
    11<o:p></o:p>
    [/TD]
    [/TR]
    </tbody>[/TABLE]

I have tried muddling around on Youtube and the internet, but I have to admit that this is not my sweet spot (geologist by education). Is what I'd like to do possible with a macro? Any guidance would be greatly appreciated.

Cheers,

Keith

not good with macros but I think you can do this with the use of a pivot table:

where:
Rows - Time String
Columns - Var Name
Values - Var Value, format to Number without decimal points
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top