Pivot tables - Consildating payments into one

24parmar2

New Member
Joined
Feb 15, 2019
Messages
5
Hi everyone,

I'm new to this forum. I need some help with pivot tables:

I'm trying to consolidate payments Ids together, specifically payments which have the same ID but different payments need to be combines and totalled into one. I done a head-start with pivot tables.

I comparing and combining payments from two different tables. If i do a pivot table from each table (C1 and C2) separately it works but i need to match the ID together and calculate the difference as some payment id will be in both tables, this i don;t know how to do quickly or efficiently. This is small example so ID's in C1 don't appear in C2.

The alternative I tried, was using the data range of both tables but the payments ID from C2 would be appeared to be in different format. It has the - icon by it allowing you to expand or collapse that ID, why is it doing for some payments and not all. I am so confused in getting this to work.

Could some one please help me out.

Payment ID (C1)Amount (C1)Payment ID (C2)Amount (C2)
604101275934.360496218539.165
6041012764146.3604962185239.9925
6041012764146.360496218644.76
6041012777253.15604962186261.81
6041012777253.1560496306694.5425
6041012778253.15604963066241.7175
6041012808252.960496306794.5425
6041012809258.74604963067196.3575
6041012876152.8960496306839.165
6041012877263.56604963068116.3825
6041012877328.35604963068145.45
6041012878258.7460496307042.51
6041012879142.96604963070127.53
6041012880252.93604963070141.7
6041012881146.3604963683184.21
6041012881146.360496368414.17
604101288273.1560496368469.76

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


Thank You
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
is that what you want?
I added some rows from C1 to C2 with different values

Payment ID (C1)Amount (C1)Payment ID (C2)Amount (C2)Payment ID (C1)Payment ID (C2)Subtraction
6041012759​
34.30​
604962185​
39.17​
60410127596041012759
-142.7​
6041012764​
146.30​
604962185​
239.99​
60410127646041012764
-8457.4​
6041012764​
146.30​
604962186​
44.76​
60410127776041012777
-1765.7​
6041012777​
253.15​
604962186​
261.81​
60410128796041012879
-47.04​
6041012777​
253.15​
604963066​
94.54​
60410128806041012880
-3587.07​
6041012778​
253.15​
604963066​
241.72​
60410128816041012881
-2450.4​
6041012808​
252.90​
604963067​
94.54​
6041012809​
258.74​
604963067​
196.36​
6041012876​
152.89​
604963068​
39.17​
6041012877​
263.56​
604963068​
116.38​
6041012877​
328.35​
604963068​
145.45​
6041012878​
258.74​
604963070​
42.51​
6041012879​
142.96​
604963070​
127.53​
6041012880​
252.93​
604963070​
141.70​
6041012881​
146.30​
604963683​
184.21​
6041012881​
146.30​
604963684​
14.17​
6041012882​
73.15​
604963684​
69.76​
6041012879​
190.00​
6041012880​
3840.00​
6041012881​
2743.00​
6041012759​
177.00​
6041012764​
3807.00​
6041012764​
4943.00​
6041012777​
2272.00​
result is with matched IDs only
 
Upvote 0
Hello,
Yes this is great. How did you match the two IDs together. As shown in the green table please. Thats the main part i'm stuck on with the pivot table.
Unless i'm missing something very simple.
 
Upvote 0
What is your Excel version?
If 2010/2013 - have you installed PowerQuery add-in?
 
Upvote 0
Office 16, what is power query does it do what you done for that green table. As i have an example with over 11k records. Some Id's match both tables. Ones which do, I need to do a comparison for different in amounts between those two.
 
Upvote 0
or if you want PivotTable

Alt+D+P

Sum of ValueColumn
RowAmount (C1)Amount (C2)
604962185​
279.1575​
604962186​
306.57​
604963066​
336.26​
604963067​
290.9​
604963068​
300.9975​
604963070​
311.74​
604963683​
184.21​
604963684​
83.93​
6041012759​
34.3​
177​
6041012764​
292.6​
8750​
6041012777​
506.3​
2272​
6041012778​
253.15​
6041012808​
252.9​
6041012809​
258.74​
6041012876​
152.89​
6041012877​
591.91​
6041012878​
258.74​
6041012879​
142.96​
190​
6041012880​
252.93​
3840​
6041012881​
292.6​
2743​
6041012882​
73.15​
 
Upvote 0
So i've consolidated the replicated payments ID;s in two seperate table for table 1 and table 2. I need to match ID's which consist in both tables that i have no idea.
 
Upvote 0
did you read anything from links I gave you?

load both tables into PowerQuery via ribbon: Data - From Table
 
Upvote 0
Yes the but the two links don't give an explanation of how you got there. I've been playing around with Get and Transform and have gotten no luck. How did you achieve those results.
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,558
Latest member
aivin

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