Pivot Table - running expense vs fixed budget

Jerfyjer169

New Member
Joined
Oct 30, 2018
Messages
7
Hi all,

I have researched on pivot table and seem not to find a solution to my question.

My task is to track the progress of a project, and the project is divided into different jobs.

The excel file consists of two tables. Table 1 shows detailed information of each invoice received and is the YTD running total of expense spent, and Table 2 is a list of jobs with allocated budget.

I would want to merge the two tables in one pivot table so I can see a simple YTD vs Total Budget. The problem I have is that every time the same job appears in Table 1, Budget adds up to a bigger number in the Pivot Table.

Thanks in advance!!
 

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.
Hi, what is the common denominator in between each table, the job number?
 
Upvote 0
example: table 1
ABC
1jobinvoiceamount
2111015
3221903
4332180
5143087
6253285
7164762
8271735
9381392

<colgroup><col style="width: 25pxpx" https:="" www.mrexcel.com="" forum="" usertag.php?do="list&action=hash&hash=DAE7F5"" target="_blank"></colgroup><colgroup><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1



Table 2:
EF
1jobbudget
2112000
3212000
4315000
5415000

<colgroup><col style="width: 25pxpx" https:="" www.mrexcel.com="" forum="" usertag.php?do="list&action=hash&hash=DAE7F5"" target="_blank"></colgroup><colgroup><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1



Pivot table:
Row LabelsSum of amountSum of budget
1886412000
2692312000
3357215000
415000
Grand Total1935954000

<tbody>
</tbody>
 
Last edited:
Upvote 0
Hi Cyrilbrd,

Yes, the common denominator is job number. Your sample pivot table is exactly what I would like to do!

Much appreciated if you could please provide a guide on how to produce above table!!

Thanks in advance
 
Upvote 0
Ok
First select any table and create a pivot table (insert PT)
Second select "Add this data to the Data Model" Located on the bottom of the popup.
Third in the Field list that will appear on the right (most likely) under the word PivotTable Fields, you will notice two words, Active and All.
Click All
The two tables should now be present...
Select table 2 (budget) Place Job in the Rows.
Place Budget in the Values
Select table 1 (invoice) Place amount in the Values
A yellow notification should have appeared by now stating the following: Relationships between tables may be needed.
Click Auto-Detect...
A popup will appear click close OR adjust the relationship if required... The second table MUST not have duplicates of job#...
And now your relationship has been created.
Would that work for you?
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,383
Members
448,956
Latest member
JPav

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