Deleting duplicate row

G

Guest

Hi, everybody.
I have the following table

A B
2001.01.01 00:00:02 aaa
2001.01.01 00:00:03 ddddd
2001.01.01 00:00:03 dfgd
2001.01.01 00:00:49 ffghfh
2001.01.01 00:01:05 fgdfgfg
2001.01.01 00:01:13 fggf
2001.01.01 00:01:55 vkljdk.

I want to delete duplicate in collumn A rows. In other words I want to see:

A B
2001.01.01 00:00:02 aaa
2001.01.01 00:01:05 fgdfgfg

Please, help me.
 
G

Guest

Is column A sorted?
did you want to delete this row 2001.01.01 00:00:49? Your output skipped
this row!
 
G

Guest

I assume you want the first incident in each minute

Is this is a date /time format or is this a text file,
equaitons will be different
 
G

Guest

Assuming you have a single header row and you data begins on Row2;
Create a Helper column (Say Col 3) call it FindDups
in Cell C3 enter:

=IF(MID(A3,15,2)=MID(A2,15,2),TRUE,FALSE)

Copy down as far as it needed.

Type into cell C2 False

Do an Auto-filter on Column C - selecting True
Delete all resulting rows,
then Unfilter

HTH
 
G

Guest

I didn't explain correct what i want. I need to deleting all rows with
duplicate minute (secundes could not be taken into account).

"JMay" пишет:
 
G

Guest

My recommendation does what you said you wanted to do.
After dong what I said your data should look as follows:

Header1 Header2 Research
2001.01.01 00:00:02 aaa FALSE
2001.01.01 00:01:05 fgdfgfg FALSE
 
G

Guest

Thanks, JMay!
I try Your formula, but it didn't work correctly, and I try my own formula:

=IF(TIME(0;MINUTE(A3);0)=TIME(0;MINUTE(A2);0);FALSE;TRUE)

It works as I want.
Thank You for tenderness
 
D

David Biddulph

I guess that JMay was assuming that your data were text strings, whereas
your formula is looking at a number formatted as date and time in that
particular format.

In either case the formula can presumably be simplified, as you don't need
an IF to give a TRUE/FALSE boolean result.
Try changing
=IF(TIME(0;MINUTE(A3);0)=TIME(0;MINUTE(A2);0);FALSE;TRUE) to
=TIME(0;MINUTE(A3);0)=TIME(0;MINUTE(A2);0)

or in his text formula, changing
=IF(MID(A3,15,2)=MID(A2,15,2),TRUE,FALSE) to
=MID(A3,15,2)=MID(A2,15,2)

In each case you seem to have decided merely to look at the minutes, and
you'd flag a duplicate even if you had different hours or different days?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top