Extracting usable data from DOS

Chrazyman

New Member
Joined
Jul 11, 2016
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Good Morning,

I am able to export some data from a DOS program I use at work that includes names and hours on work orders completed. I want to be able to pull the total by name into a separate, sortable column. I appreciate your help in advance.

[TABLE="width: 916"]
<tbody>[TR]
[TD="colspan: 2"]What I would like[/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 7"]Exported Data[/TD]
[/TR]
[TR]
[TD]Amanda Nelms[/TD]
[TD="align: right"]19[/TD]
[TD][/TD]
[TD][/TD]
[TD]MECHANIC NAME[/TD]
[TD]DATE[/TD]
[TD]WORK ORDER[/TD]
[TD]HOURS[/TD]
[TD]AMOUNT[/TD]
[TD]TOT HRS[/TD]
[TD]TOT AMOUNT[/TD]
[/TR]
[TR]
[TD]Christian Culotta[/TD]
[TD="align: right"]11.5[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Cody Strickland[/TD]
[TD="align: right"]10.7[/TD]
[TD][/TD]
[TD][/TD]
[TD]AMANDA NELMS[/TD]
[TD="align: right"]43132[/TD]
[TD]8084[/TD]
[TD="align: right"]1.5[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1.5[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Ed Heaston[/TD]
[TD="align: right"]1.5[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD]8089[/TD]
[TD="align: right"]1.5[/TD]
[TD] [/TD]
[TD="align: right"]1.5[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Gerald Skyles[/TD]
[TD="align: right"]7[/TD]
[TD][/TD]
[TD][/TD]
[TD]AMANDA NELMS[/TD]
[TD="align: right"]43133[/TD]
[TD]8062[/TD]
[TD="align: right"]1.5[/TD]
[TD="align: right"]4.5[/TD]
[TD="align: right"]1.5[/TD]
[TD="align: right"]4.5[/TD]
[/TR]
[TR]
[TD]Jacob Blaylock[/TD]
[TD="align: right"]5[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD]8061[/TD]
[TD="align: right"]1.5[/TD]
[TD] [/TD]
[TD="align: right"]1.5[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD]8106[/TD]
[TD="align: right"]1.5[/TD]
[TD] [/TD]
[TD="align: right"]1.5[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]AMANDA NELMS[/TD]
[TD="align: right"]43134[/TD]
[TD]8108[/TD]
[TD="align: right"]1.5[/TD]
[TD="align: right"]11.5[/TD]
[TD="align: right"]1.5[/TD]
[TD="align: right"]11.5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD]8104[/TD]
[TD="align: right"]1.5[/TD]
[TD] [/TD]
[TD="align: right"]1.5[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD]8112[/TD]
[TD="align: right"]3.5[/TD]
[TD] [/TD]
[TD="align: right"]3.5[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD]8115[/TD]
[TD="align: right"]3.5[/TD]
[TD] [/TD]
[TD="align: right"]3.5[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD]8117[/TD]
[TD="align: right"]1.5[/TD]
[TD] [/TD]
[TD="align: right"]1.5[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]----------------[/TD]
[TD] [/TD]
[TD]----------------[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]19[/TD]
[TD] [/TD]
[TD="align: right"]19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]CHRISTIAN CULOTA[/TD]
[TD="align: right"]43132[/TD]
[TD]7851[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]CHRISTIAN CULOTA[/TD]
[TD="align: right"]43133[/TD]
[TD]7827A[/TD]
[TD="align: right"]0.3[/TD]
[TD="align: right"]0.3[/TD]
[TD="align: right"]0.3[/TD]
[TD="align: right"]0.3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]CHRISTIAN CULOTA[/TD]
[TD="align: right"]43134[/TD]
[TD]7797A[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]9.2[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]9.2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD]8116[/TD]
[TD="align: right"]3[/TD]
[TD] [/TD]
[TD="align: right"]3[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD]8117[/TD]
[TD="align: right"]2.2[/TD]
[TD] [/TD]
[TD="align: right"]2.2[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]----------------[/TD]
[TD] [/TD]
[TD]----------------[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]11.5[/TD]
[TD] [/TD]
[TD="align: right"]11.5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]CODY STRICKLAND[/TD]
[TD="align: right"]43132[/TD]
[TD]8089[/TD]
[TD="align: right"]4.7[/TD]
[TD="align: right"]4.7[/TD]
[TD="align: right"]4.7[/TD]
[TD="align: right"]4.7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]CODY STRICKLAND[/TD]
[TD="align: right"]43133[/TD]
[TD]8074[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]----------------[/TD]
[TD] [/TD]
[TD]----------------[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]10.7[/TD]
[TD] [/TD]
[TD="align: right"]10.7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]ED HEASTON[/TD]
[TD="align: right"]43132[/TD]
[TD]8084[/TD]
[TD="align: right"]0.5[/TD]
[TD="align: right"]0.5[/TD]
[TD="align: right"]0.5[/TD]
[TD="align: right"]0.5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]ED HEASTON[/TD]
[TD="align: right"]43133[/TD]
[TD]8091[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]----------------[/TD]
[TD] [/TD]
[TD]----------------[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]1.5[/TD]
[TD] [/TD]
[TD="align: right"]1.5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]GERALD SKYLES[/TD]
[TD="align: right"]43132[/TD]
[TD]7904[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]GERALD SKYLES[/TD]
[TD="align: right"]43133[/TD]
[TD]7982[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]----------------[/TD]
[TD] [/TD]
[TD]----------------[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]7[/TD]
[TD] [/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]JACOB BLAYLOCK[/TD]
[TD="align: right"]43132[/TD]
[TD]7904[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD]8078A[/TD]
[TD="align: right"]2[/TD]
[TD] [/TD]
[TD="align: right"]2[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]JACOB BLAYLOCK[/TD]
[TD="align: right"]43133[/TD]
[TD]8098[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]----------------[/TD]
[TD] [/TD]
[TD]----------------[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]5[/TD]
[TD] [/TD]
[TD="align: right"]5[/TD]
[/TR]
</tbody><colgroup><col><col span="3"><col><col><col><col><col><col><col></colgroup>[/TABLE]
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
How about
Code:
Sub Totalammounts()
   Dim Rng As Range
   With Sheets("[COLOR=#ff0000]Sheet2[/COLOR]").Range("C2", Sheets("[COLOR=#ff0000]Sheet2[/COLOR]").Range("C" & Rows.Count).End(xlUp))
      For Each Rng In .SpecialCells(xlBlanks).Areas
         Rng.Offset(, -2).End(xlUp).Copy Sheets("[COLOR=#ff0000]Sheet1[/COLOR]").Range("A" & Rows.Count).End(xlUp).Offset(1)
         Rng.Offset(1, 2).Resize(1).Copy Sheets("[COLOR=#ff0000]Sheet1[/COLOR]").Range("B" & Rows.Count).End(xlUp).Offset(1)
      Next Rng
   End With
End Sub
Change sheet names in red to suit. Assumes that Data starts in A1
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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