Duplicate values

digitalc40

New Member
Joined
Mar 19, 2003
Messages
5
Hello everyone

Can anybody help me?

I have a sheet that has two columns. Column A has Employee names, Column B contains the number of hours they worked.

I need to eliminate duplicate employee entries and add all of their hours up.

Thanks to everyone, who will explain me, how to solve this!
Darko
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Upvote 0
note: I put a spelling error in too (Davit for David)...in other words, be careful! Excel is going to see spelling variations as unique values.
 
Upvote 0
Hello again.

Thanks Alexander Barnes, but I don't know, how to get such form, that I want:

WHAT I HAVE: WHAT I WANT:

NAME HOURS NAME HOURS
JOHN 12 JOHN 20
MIKE 3 MIKE 3
SAM 6 SAM 6
JOHN 7 HELEN 10
HELEN 8 CINDY 18
CINDY 9
JOHN 1
CINDY 9
HELEN 2

Any additional help? Please!
Darko[/img]
 
Upvote 0
Hello Norie.

I have never used Pivot table. Can you explain me, how to use it, to get such form. I need to get the result as a copy in new columns, so I can compare it with data from other system.

Thanks.
 
Upvote 0
What are the columns all about? Or, rather, what is the form you want?
 
Upvote 0
Upvote 0
If I understand, you want the old data in cols A-B and the new data in cols C-D.

This could probably be achieved in various ways with VBA or other tools. I would recommend however, that you just use the same formulas I first showed you, and then sort your data by name, if this is possible...you would then have all your david's together in Cols. A-B, and in Column C-D the same names identified as duplicates, plus the sum of hours shown by the first (non-duplicate) instance of the name:

JOHN 7 JOHN 20
JOHN 1 Duplicate
JOHN 12 Duplicate
MIKE 3 MIKE 3
SAM 6 SAM 6
HELEN 8 HELEN 18
HELEN 10 Duplicate
CINDY 4 CINDY 4

I guess at this point (if you need to) you could just delete the cells with "duplicate" in them in column 3...and the cell next to it in column 4. :LOL:

Otherwise, you will need to use other tools - a macro maybe, or Microsoft Access.

That is, unless I have missed some easy way to approach this...

Regards.
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,186
Members
449,071
Latest member
cdnMech

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