Make an excel table sort diffrently

KSADolphin

New Member
Joined
Nov 30, 2016
Messages
1
here is my original spreadsheet
01/07/2016Maier, Sabine
winter appeal100.00
01/08/2016Richter, Judywinter appeal100.00
01/08/2016Salem, Margo
winter appeal25.00
01/08/2016Andrew, Samuelwinter appeal500.00
04/05/2016Maier, Sabinespring appeal75.00
04/05/2016Richter, Judyspring appeal50.00
04/05/2016Salem, Margo
spring appeal50.00
04/05/2016Andrew, Samuel
spring appeal100.00
07/01/2016Maier, Sabinegala75.00
01/07/2016
Richter, Judygala50.00
01/07/2016
Salem, Margo
gala50.00
01/07/2016
Andrew, Samuelgala100.00

<colgroup><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

I would like it to be like this
winter appeal spring appeal gala
Maier, Sabine 100.00 75.00 75.00
Richter, Judy 100.00 50.00 50.00
Salem, Margo 25.00 50.00 25.00
Andrew, Samuel 500.00 100.00 100.00

any chance? THANKSSSSSSSSSSSS

<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.
you'll probably need VBA to do this
Try this on a copy of your worksheet

Code:
Sub MM1()
Dim lr As Long, r As Long
lr = Cells(Rows.Count, "A").End(xlUp).Row
    Sheets("Sheet1").Sort.SortFields.Add Key:=Range("B2"), SortOn:=xlSortOnValues
    With Sheets("Sheet1").Sort
        .SetRange Range("A1:D" & lr)
        .Header = xlNo
        .Orientation = xlTopToBottom
        .SortMethod = xlPinYin
        .Apply
    End With
For r = lr To 2 Step -1
    If Range("B" & r).Value = Range("B" & r - 1).Value Then
        Range("D" & r - 1).Value = Range("D" & r - 1).Value & " " & Range("D" & r).Value
    Rows(r).Delete
    End If
Next r
End Sub
 
Upvote 0
The simplest way that would get very close to what you are showing would be to create a Pivot Table.
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,600
Members
449,038
Latest member
Arbind kumar

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