Excel Power Query-Merge two columns with distinct value

aaleem

New Member
Joined
Sep 26, 2014
Messages
25
HI,

i have two columns coming from different tables. both are for Invoice Date, i want to merge these two columns to a new column with distinct date, Example
Column1 Column 2 Custom Column (new)
Invoice_Date Invoice Date New Date
19/04/2021 19/04/2021 19/04/2021
27/01/2021 null 27/01/2021
17/11/2020 17/11/2020 17/11/2020

thanks
aleem
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Alex Blakenburg

Well-known Member
Joined
Feb 23, 2021
Messages
839
Office Version
  1. 365
Platform
  1. Windows
Unless I have misunderstood the requirement then a conditional column will do it.
Add Column > Conditional Column

I have done if not column is "not null" use that column otherwise use the other column.
You could of course reverse that with is "is null" use "other" column else use this column.

1623485202702.png
 
Solution

aaleem

New Member
Joined
Sep 26, 2014
Messages
25
Thanks, Alex, this is exactly what I was looking for. Thanks for your help
 

Watch MrExcel Video

Forum statistics

Threads
1,133,536
Messages
5,659,376
Members
418,500
Latest member
Guru Prasad S

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
Top