Removing Duplicates - But Retain Results

CDNWolf

Board Regular
Joined
Nov 14, 2010
Messages
71
Office Version
  1. 365
Platform
  1. Windows
Hi guys, I've looked for a simple solution but come up with nothing;
This list can be long and manual manipulation is not ideal...

I have a list of names and tasks completed as per attached image
I want to remove the duplicate names but retain the task count beside the names transposed accross each column;

For example;
Mike 5 8 8
David 8 7
Josh 7 2...


Thanks in advance for your assistance
 

Attachments

  • Capture.JPG
    Capture.JPG
    20.3 KB · Views: 10

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi CDNWolf,

How you want it : formula (maybe impossible), VBA, Power Query ?
 
Upvote 0
Hi CDNWolf,

How you want it : formula (maybe impossible), VBA, Power Query ?
Brian,

Thanks for your reply

I have no preference but my VBA knowledge is pretty basic.
What are your thoughts?
 
Upvote 0
Hi
Waht about
VBA Code:
Sub test()
Dim a, m
Dim i&
a = Cells(2, 1).Resize(Cells(Rows.Count, 1).End(xlUp).Row - 1).Resize(, 2)
With CreateObject("scripting.dictionary")
        For i = 1 To UBound(a)
        If Not .exists(a(i, 1)) Then
        .Add a(i, 1), a(i, 2)
        Else
        .Item(a(i, 1)) = .Item(a(i, 1)) & "|" & a(i, 2)
        End If
      Next
      Cells(2, 5).Resize(.Count, 2) = Application.Transpose(Application.Index(Array(.keys, .items), 0, 0))
      Cells(2, 6).Resize(.Count).TextToColumns Cells(2, 6), 1, , , , , , , True, "|"
          End With
End Sub
 
Upvote 0
@CDNWolf
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also helps to give sample data in a form that helpers can easily copy for testing:
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
.. what Excel version(s) & platform(s) you are using ..
So, if you have the latest functions, this might be one possibility.

23 03 04.xlsm
ABCDEFGHIJK
1
2B1B1216
3A8A8
4F6F63241
5F3D85
6F2E63
7F4 
8D8 
9F1 
10D5
11E6
12B2
13E3
14B1
15B6
CDNWolf
Cell Formulas
RangeFormula
E2:E6E2=UNIQUE(B2:B15)
F2:I2,F5:G6,F4:J4,F3,F7:F9F2=TRANSPOSE(FILTER(C$2:C$15,B$2:B$15=E2,""))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,443
Members
448,898
Latest member
drewmorgan128

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