Costing a Credit Card Bill

Brack

New Member
Joined
Mar 13, 2013
Messages
15
I have an issue that I need some help with... We try to assign all of our expenses on our American Express cards either to overhead items or we try to job cost them...

We download each statement in Excel, and I transfer the bill to a recap sheet as follows:

Transaction DescriptionTransaction DateAmountCost CenterClassJob
Home Depot8/1/201745.171140MasonryTexas Middle School
The UPS Store8/25/201717.85747000
Wal-Mart Supercenter8/14/2017121.322104DrywallJohn Doe Elementary
Home Depot8/10/2017238.151140MasonryTexas Middle School

<tbody>
</tbody>

The blue is the information that gets transferred, the red gets entered by our receptionist. There will be many transactions on each statement, but I need a way to subtotal this information, by cost center, and also by class and job, if the information gets job costed. So in the above example, I would output the work the receptionist puts in to a page that we print out that summarizes the costs for the owner - so would see that 1140 - Masonry - Texas Middle School was $283.32, 747000 was $17.85, and 2104 - Drywall - John Doe Elementary was $121.32.

The complicated factor is that any six digit code won't have a class or job, and any 4 digit code will have one of 4 different classes, and it will have a job name, but the job name could be one of about 60 different jobs.

I don't want to list all possible combinations, but is there a way to summarize the information?

The cost codes, classes, and jobs don't necessarily have any relationship. (code 1140 could apply to any job, any class, and same for 2104).

Any help that you could give me would be greatly appreciated!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I'd suggest using a Pivot Table.

First, add a column to your table called "Key":

ABCDEFG
1Transaction DescriptionTransaction DateAmountCost CenterClassJobKey
2Home Depot8/1/201745.171140MasonryTexas Middle School1140, Masonry, Texas Middle School
3The UPS Store8/25/201717.85747000747000
4Wal-Mart Supercenter8/14/2017121.322104DrywallJohn Doe Elementary2104, Drywall, John Doe Elementary
5Home Depot8/10/2017238.151140MasonryTexas Middle School1140, Masonry, Texas Middle School
6

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
G2=IF(LEN(D2)=6,D2,D2&", "&E2&", "&F2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Use the formula in G2, and drag down. Now just select columns A:G, go to the Insert tab, and select Pivot Table. Click OK on the dialog box. It will open a new sheet. On the right side is another dialog box. Drag "key" to the Rows box, and Amount to the Values box. Now click on the Count of Amount, select Value Field Settings, and select Sum. You should end up with something like this:

AB
1
2
3Row LabelsSum of Amount
474700017.85
51140, Masonry, Texas Middle School283.32
62104, Drywall, John Doe Elementary121.32
7(blank)
8Grand Total422.49
9

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet6



Let us know if this works for you.
 
Upvote 0
Key?
Use either Report Layout, "Tabular" or "Outline".
Not really need, just bring down the fields that give your desired detail level, in the order you want the grouping to occur. You can have subtotal at each row level, no row levels or any level you want.
IF you want the entire text list on each line, just use the "Repeat All Row Labels Option"
 
Upvote 0
Glad we could help!
@SpillerBD ,
I'm not an expert on Pivot Tables, I just knew they were a better option than the formulas I started with. I tried your suggestions, and definitely learned a few things to try next time. Nevertheless, I still think my original suggestion has its own merits too.
 
Upvote 0
Glad we could help!
@SpillerBD ,
I'm not an expert on Pivot Tables, I just knew they were a better option than the formulas I started with. I tried your suggestions, and definitely learned a few things to try next time. Nevertheless, I still think my original suggestion has its own merits too.

Actually, yes yours does have merits. Sometimes it is nice to regain the full detail of each and every transaction. The sample data presented does not list a unique transaction ID, which your Key can simulate, but doesn't guarantee that per-item unique reference. Could have added a ROW() or something similar to get any unique value.
Pivot Tables:cool:
PowerPivot :cool::cool:
 
Upvote 0

Forum statistics

Threads
1,215,940
Messages
6,127,780
Members
449,406
Latest member
Pavesib

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