how to delete Rows in excel (row times: from~to)

alimadhi

New Member
Joined
Sep 14, 2014
Messages
8
hi , i want delete multi rows i have a lots of excels sheets recording time in Ms i want delete between Ms and keep them just every mint recorder

for example:- see blow recorder time in red mark

Timedwatt2L33TUC_FLTl33tucDFl20fa1xhftout
30/08/2014 15:4529.107860049.174840-5
30/08/2014 15:4527.94340049.195160-5
30/08/2014 15:4628.254090049.211630-5
30/08/2014 15:4628.333180049.22810-5
30/08/2014 15:4627.606960049.237310-5
30/08/2014 15:4627.644340049.25720-5
30/08/2014 15:4627.965130049.277590-5
30/08/2014 15:4627.612310049.297510-5
30/08/2014 15:4626.077970049.338370-5
30/08/2014 15:4626.069440049.366130-5
30/08/2014 15:4625.043750049.400770-5
30/08/2014 15:4623.889650049.419320-5
30/08/2014 15:4624.332560049.441310-5
30/08/2014 15:4622.607480049.457940-5
30/08/2014 15:4723.062620049.478490-5
30/08/2014 15:4723.365860049.489270-5
30/08/2014 15:4722.284310049.494170-5
30/08/2014 15:4722.88750049.508380-5
30/08/2014 15:4723.013990049.516710-5
30/08/2014 15:4721.878970049.545170-5
30/08/2014 15:4721.911440049.563340-5
30/08/2014 15:4721.886280049.573170-5
30/08/2014 15:4722.123720049.587920-5
30/08/2014 15:4722.227390049.598740-5
30/08/2014 15:4722.054950049.60810-5
30/08/2014 15:4822.242020049.619420-5
30/08/2014 15:4822.254430049.628770-5
30/08/2014 15:4822.320670049.638630-5
30/08/2014 15:4822.318770049.647990-5
30/08/2014 15:4824.259010049.650950-5
30/08/2014 15:4823.554930049.647990-5
30/08/2014 15:4823.613750049.649480-5
30/08/2014 15:4824.747180049.658350-5
30/08/2014 15:4824.829370049.667720-5
30/08/2014 15:4824.816990049.671670-5
30/08/2014 15:4826.043480049.671670-5
30/08/2014 15:4826.088070049.678080-5

<tbody>
</tbody>

to :-

Timedwatt2L33TUC_FLTl33tucDFl20fa1xhftout
30/08/2014 15:4529.107860049.174840-5
30/08/2014 15:4628.254090049.211630-5
30/08/2014 15:4723.062620049.478490-5
30/08/2014 15:4822.242020049.619420-5

<tbody>
</tbody>
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Can't you just use Remove Duplicates on the Ribbon's Data tab? Here it is in VBA:

Code:
Sub Test()
    ActiveSheet.Range("A1").CurrentRegion.RemoveDuplicates Columns:=1, Header:=xlYes
End Sub
 
Upvote 0

alimadhi

New Member
Joined
Sep 14, 2014
Messages
8
No Duplicates because the seconds is different :(

06/09/2014 11:04:13 AM
06/09/2014 11:04:18 AM
06/09/2014 11:04:23 AM
06/09/2014 11:04:28 AM
ETC...
 
Upvote 0

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Please post your data with the seconds showing. It would have been helpful if you had done that at the outset.
 
Upvote 0

alimadhi

New Member
Joined
Sep 14, 2014
Messages
8
Timedwatt2
L33TUC_FLTl33tuc
DF
l20fa1xhftout
11:04:13 AM83.259090150.619581100
11:04:18 AM82.96030150.615481100
11:04:23 AM83.013310150.625731100
11:04:28 AM83.513870150.631370100
11:04:33 AM83.924190150.623680100
11:04:39 AM83.750020150.619580100
11:04:44 AM84.426150150.618560100
11:04:49 AM84.071560150.619580100
11:04:54 AM84.231870150.619070100
11:04:59 AM84.150890150.611380100
11:05:04 AM83.752030150.609340100
11:05:09 AM84.046330150.612410100
11:05:14 AM84.101260150.60780100
11:05:20 AM84.131520150.606260100
11:05:25 AM84.137070150.606260100
11:05:30 AM84.081210150.600630100
11:05:35 AM83.977310150.600120100
11:05:40 AM83.953410150.593970100
11:05:45 AM83.634660150.587310100
11:05:50 AM83.523060150.580150100
11:05:55 AM83.175490150.572990100
11:06:00 AM83.249860150.567360100

<colgroup><col><col span="6"></colgroup><tbody>
</tbody>

etc... to row 116236
 
Upvote 0

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
38,150
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Give this macro a try...
Code:
Sub KeepFirstMinutesOnly()
  Dim LastRow As Long
  LastRow = Cells(Rows.Count, "A").End(xlUp).Row
  Range("A3:A" & LastRow) = Evaluate("IF(TEXT(A3:A" & LastRow & _
                            ",""mm/dd/yyyy hh:mm"")=TEXT(A2:A" & LastRow - 1 & _
                            ",""mm/dd/yyyy hh:mm""),"""",A3:A" & LastRow & ")")
  Range("A3:A" & LastRow).SpecialCells(xlBlanks).EntireRow.Select
End Sub
 
Upvote 0

alimadhi

New Member
Joined
Sep 14, 2014
Messages
8
whoohoo i got this

Timedwatt2L33TUC_FLTl33tucDFl20fa1xhftout
04:13.083.259090150.619581100
82.96030150.615481100
83.013310150.625731100
83.513870150.631370100
83.924190150.623680100
83.750020150.619580100
84.426150150.618560100
84.071560150.619580100
84.231870150.619070100
84.150890150.611380100
05:04.283.752030150.609340100
84.046330150.612410100
84.101260150.60780100
84.131520150.606260100
84.137070150.606260100
84.081210150.600630100
83.977310150.600120100
83.953410150.593970100
83.634660150.587310100
83.523060150.580150100
83.175490150.572990100
06:00.583.249860150.567360100
83.379430150.562760100
83.776750150.558161100
84.046480150.5511100
83.776170150.547431100
84.111280150.545890100
84.247830150.542320100
83.890670150.539250100
82.859010150.536190100
81.906460150.5270100
81.534560150.524440100
81.403820150.520360100
07:01.981.606030150.523420100

<colgroup><col><col span="6"></colgroup><tbody>
</tbody>

its good but i want delete rows not empty rows
 
Upvote 0

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
38,150
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
So you went from having a date with hours minutes to telling us your times had seconds to what now looks like time only (no date) with decimal minutes. I'm going to sleep now, so I don't have time to test or modify my macro (although I think it should be close)... I check back when I get up and see if your question is still open or not.
 
Upvote 0

alimadhi

New Member
Joined
Sep 14, 2014
Messages
8
thank you sir

now i have this below data:-

6/9/2014 11:04 AM83.259090150.619581100
6/9/2014 11:05 AM83.752030150.609340100
6/9/2014 11:06 AM83.249860150.567360100
6/9/2014 11:07 AM81.606030150.523420100
6/9/2014 11:08 AM80.892550150.500970100
6/9/2014 11:09 AM82.850080150.456630100
6/9/2014 11:10 AM83.657030150.386970100
6/9/2014 11:11 AM83.411960150.403730100
6/9/2014 11:12 AM81.491820150.408311100
6/9/2014 11:13 AM82.606770150.392050100
6/9/2014 11:14 AM82.191040150.561741100
6/9/2014 11:15 AM81.554260150.557650100
6/9/2014 11:16 AM83.802220150.56431100
6/9/2014 11:17 AM81.377140150.577590100
6/9/2014 11:18 AM82.508620150.557650100
6/9/2014 11:19 AM81.11020150.529040100
6/9/2014 11:20 AM83.649430150.537720100
6/9/2014 11:21 AM83.550890150.52240100
6/9/2014 11:22 AM82.443080150.515250100
6/9/2014 11:23 AM80.981230150.512190100
6/9/2014 11:24 AM82.012050150.494340100
6/9/2014 11:25 AM81.751570150.485670100
6/9/2014 11:26 AM82.402680150.445940100
6/9/2014 11:27 AM81.549650150.424060100
6/9/2014 11:28 AM81.644930150.396110100
6/9/2014 11:29 AM80.736340150.329150100
6/9/2014 11:30 AM79.997910150.301810100

<colgroup><col><col span="6"></colgroup><tbody>
</tbody>

I want to delete rows every 10 m to be like below :-

<colgroup><col><col span="6"></colgroup><tbody>
</tbody>

Timedwatt2L33TUC_FLTl33tucDFl20fa1xhftout
6/9/2014 11:10 AM83.657030150.386970100
6/9/2014 11:20 AM83.649430150.537720100
6/9/2014 11:30 AM79.997910150.301810100

<colgroup><col><col span="6"></colgroup><tbody>
</tbody>
 
Upvote 0

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
38,150
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
I want to delete rows every 10 m to be like below :-

<tbody>
</tbody>

Timedwatt2L33TUC_FLTl33tucDFl20fa1xhftout
6/9/2014 11:10 AM83.657030150.386970100
6/9/2014 11:20 AM83.649430150.537720100
6/9/2014

<tbody>
</tbody>
(I couldn't sleep) give this macro a try...
Code:
 Sub KeepEveryTenMinutes()
  Dim LastRow As Long, UnusedColumn As Long
  LastRow = Cells(Rows.Count, "A").End(xlUp).Row
  UnusedColumn = Cells.Find("*", , xlFormulas, , xlByColumns, xlPrevious).Column + 1
  With Cells(2, UnusedColumn).Resize(LastRow - 1)
    .Formula = "=IF(MROUND(A2,TIME(0,10,0))=A2,A2,"""")"
    .Value = .Value
    .SpecialCells(xlBlanks).EntireRow.Delete
    .Clear
  End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,190,916
Messages
5,983,572
Members
439,850
Latest member
suhailrocks786

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
Top