Combine data in excel

gig_wana_be

New Member
Joined
Aug 21, 2012
Messages
2
Hi
I have question about sorting data in a report. I will start and explain in detail what I have and what i want.

I made an excel invoice workbook: sheet1 is the template, and sheet2 is the transactions.
In sheet1 I made a regular invoice template, Then I created a macro that should print and record the customer name, date and the total amount from this invoice into sheet2. Now Sheet2 has numerous transactions. Let's say I have 50 customers but I have about 500 invoice transactions, meaning I have a few invoices per customer. Ex. I have three $5 transactions for a certain costumer from 8/19/12. Then I have another five transactions of $3 from 8/19/12 for a different customer. Then I have another four transactions of $6 from 8/20/12 for the same as 8/19/12 (click on the link http://dl.dropbox.com/u/99610859/Excel/example.xlsx to see the attached example file "sheet1").

What I want is.. To get all the transactions
Combined. Least transactions possible meaning if one customer has 3 invoices from 8/19 1. $5 2. $8 3. $4 and 1 invoice from 8/20 of $6 should say on sheet3:
John smith 8/19 $17
John smith 8/20 $6. (click on the link http://dl.dropbox.com/u/99610859/Excel/example.xlsx to see the attached example file "sheet2")
As I understand this should be done with a macro but I couldn't figure out how to make it.
Lets see who could help me
Thanks in advance !
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Try a Pivot Table like (Excel 2010)

[TABLE="width: 195"]
<colgroup><col style="width: 94pt; mso-width-source: userset; mso-width-alt: 4571;" width="125"> <col style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;" width="75"> <col style="width: 45pt; mso-width-source: userset; mso-width-alt: 2194;" width="60"> <tbody>[TR]
[TD="class: xl63, width: 125"]Name[/TD]
[TD="class: xl63, width: 75"]Date[/TD]
[TD="class: xl63, width: 60"]Amount [/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]Jay Grey[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]09/08/2012[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]131[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]Jay Grey[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]11/08/2012[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]206[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]Jay Grey[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]12/08/2012[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]105[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]John Smith[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]09/08/2012[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]151[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]John Smith[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]11/08/2012[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]90[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]John Smith[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]12/08/2012[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]31[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]Sam White[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]09/08/2012[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]178[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]Sam White[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]11/08/2012[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]108[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]Sam White[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]12/08/2012[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]97[/TD]
[/TR]
[TR]
[TD="class: xl63"]Grand Total[/TD]
[TD="class: xl63"] [/TD]
[TD="class: xl63, align: right"]1097[/TD]
[/TR]
</tbody>[/TABLE]


Name and Date --> Row Labels
Amount ---> Values

M.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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