Hi,
I have two PowerPivot table that I want to combine and copy information to a third table, however the search criteria is empty as the two PowerPivot tables' amount of data changes from month to month.
1) I want the formula in column K for table 3 to be able to copy values from column B (VAT no) IF the Customer no (column A) starts with K
2) After the formula has copied all values from table 1 in column VAT no, I want it to start looking for values in column G, however if it's a duplicate of a value in column B (VAT no) then it should be skipped.
If I only had one table my formula in column K would be =IF(LEFT(A3;1)="K";B3;"").
Please note that a formula is what I'm looking for and not a VBA code and only for VAT no in table 3, the ones for Sum Goods and Sum Services are all figured out.
Many thanks in advance for the support!
The result for table 3 should be something like this
I have two PowerPivot table that I want to combine and copy information to a third table, however the search criteria is empty as the two PowerPivot tables' amount of data changes from month to month.
1) I want the formula in column K for table 3 to be able to copy values from column B (VAT no) IF the Customer no (column A) starts with K
2) After the formula has copied all values from table 1 in column VAT no, I want it to start looking for values in column G, however if it's a duplicate of a value in column B (VAT no) then it should be skipped.
If I only had one table my formula in column K would be =IF(LEFT(A3;1)="K";B3;"").
Please note that a formula is what I'm looking for and not a VBA code and only for VAT no in table 3, the ones for Sum Goods and Sum Services are all figured out.
Many thanks in advance for the support!
Table 1 goods | ||
Customer no | VAT no | SUM |
K00452 | DK20286547 | -7 404,00 |
K01720 | DK39087502 | -4 000,00 |
K02683 | NL08114211B01 | -90 000,00 |
Total sum | -7 404,00 |
Table 2 services | ||
Customer no | VAT no | SUM |
K01720 | DK39087502 | -86 240,00 |
K08790 | SE55681985101 | -89 200,00 |
Total sum | -7 404,00 |
The result for table 3 should be something like this
Table 3 RESULT | ||
VAT no | Sum Goods | Sum Services |
DK20286547 | 7 404,00 | |
DK39087502 | 4 000,00 | 86 240,00 |
NL08114211B01 | 90 000,00 | |
SE55681985101 | 89 200,00 |