Combine information from one table to another? (Power query or formulas?)

danhendo888

Board Regular
Joined
Jul 15, 2019
Messages
162
Office Version
  1. 365
Platform
  1. Windows
So I am wanting to add the information from the below table (Table1):

InvoicePaid
Tesla1Yes
Tesla2Yes


to the table below (Table2):

InvoiceInvoice DateDue DateAmountPaid
Tesla101-Jan-2430-Jan-241000
Tesla301-Jan-2430-Jan-24500Yes


to arrive at the below output (TableOutput):
InvoiceInvoice DateDue DateAmountPaid
Tesla101-Jan-2430-Jan-241000Yes
Tesla301-Jan-2430-Jan-24500Yes
Tesla2Yes


The orange formatting is just to provide a visual of the information from Table1 that is being added to Table2.
The order of the invoices as they appear in TableOutput is not important.
Table1 shows that invoice number Tesla1 is paid. Since Tesla1 can be found on Table2, we just need to update the Paid column with "Yes".
Table1 shows an invoice number Tesla2 as being paid. But Tesla2 is not found in Table2. And so we want to add the invoice number Telsa2 into Table2 and also update the Paid column with "Yes"

I tried to merge them in PQ but the two tables just horizontally stack next to each other and I can't get the invoice numbers/Paid columns to appear in their respective columns.

Also, I'm not sure if this is best done by PQ or formulas? Feels like it is harder than it looks. Would appreciate your recommendations.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Sorry, I figured it out. I just did Grouped by for the invoice column and for the other columns, chose Max.
 
Upvote 0
Solution

Forum statistics

Threads
1,216,818
Messages
6,132,877
Members
449,765
Latest member
Coffebreak

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