Advice for summarising data

LisaUK

New Member
Joined
Jun 4, 2011
Messages
37
Hi everyone,

I am hoping someone can give me guide on a possible solution to what I am trying to. I currently have about 40 spreadsheets which all contain sales data from various areas in the world.
And for each area I am using the data to create a pivot table.
I have already managed to use some manual processes and from the help of some very helpful people on here got things done a little quicker.
I need a quicker process of even a software package if excel is not quick enough to consolidate the data and create reports from.
So to give you an idea the most time consuming one is normalising the data and cleaning it.

I have the following example for a region


Customer Item Sales Month
ABC 123 40000 Jan-11
ABC 444 20000 Jan-11
XXX 333 2000 Feb-11
DEF 333 43000 Jan-11



There are lots of other fields which I do not really require.
My end result is to get:


Month
Customer Jan Feb Mar Apr
Total Sales per Customer



The problem is these various spreadsheet contain sales data which has customers who are the same but spelt differently


For example a customer ABC will be ABC Corp on one file and then in another file it maybe ABC Corporation. I am trying to find a solution other than manually going and cleaning this up to have a quicker automated way of cleaning this data so I do not any repeats on the final pivot table. So ABC Corp And ABC Corporation are down as ABC.

I hope this makes sense, any help on this is appreciated

Thanks
Lisa
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
I am giving a hybrid solution
your data is like this. I have added one more row.

Excel Workbook
ABCD
1CustomerItemSalesMonth
2ABC1234000011-Jan
3ABC corp4442000011-Jan
4XXX333200011-Feb
5DEF3334300011-Jan
6DEF corporation4445000012-Feb
Sheet1


now run this macro


Code:
Sub test()
Dim ra As Range, ca As Range, cust As Range, rfull As Range
Dim j As Integer, x As String
j = 1
With Worksheets("sheet1")
Set ra = Range(.Range("A2"), .Range("A2").End(xlDown))
Set cust = .Range("A1").End(xlDown).Offset(5, 0)
Set rfull = .Range("A1").CurrentRegion
For Each ca In ra
cust.Cells(j + 1, 1) = Left(ca, 3)
j = j + 1
Next ca
cust = "customer"
Range(cust, cust.End(xlDown)).AdvancedFilter xlFilterCopy, , cust.End(xlDown).Offset(5, 0), True
j = 1
Do
.Cells(Rows.Count, "A").End(xlUp).End(xlUp).Offset(0, j) = j
j = j + 1
If j = 13 Then Exit Do
Loop
End With
End Sub

goto the last table (in this case starting from row no. 21
the column A in this table and row 21 must have been already filled by the macro. You have to enter the formula in B22 which is to be copied down and right (formla easier to write in spreadsheet than in macro)
it will be like this
Excel Workbook
ABCDEFGHIJKLM
21customer123456789101112
22ABC600000
23XXX02000
24DEF4300050000
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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