Share via

Merge Sheets using Power Query

Anonymous
2015-04-13T11:19:26+00:00

Hi,

I'm merging 2 Excel Sheets using Power Query.  Everything merges fine, but I'd like to fine-tune the output to only show rows where 2 of the columns are null.

i.e. If the sheet had the following fields, I only want to see the Rows where BOTH Date 1 and Date2 are empty.  I still want to see Rows where only 1 is empty.

ID  |  Name   |  City   |  State   |   Zip   |   Date 1   |  Date 2

Any help would be appreciated. 

Thanks for your time!

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

7 answers

Sort by: Most helpful
  1. Ashish Mathur 101.9K Reputation points Volunteer Moderator
    2015-04-14T02:32:33+00:00

    In the Power Query window, filter on the two columns individually.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2015-04-14T02:00:26+00:00

    Hi,

    In the Power Query window itself, you can filter the two columns on blanks.

    Thanks for the reply.  Can you elaborate on how to do it?  I've tried filtering within the Power Query window, but can't figure out how to filter on both columns.

    Thanks!

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2015-04-14T01:59:32+00:00

    You should be able to filter this in table in Excel if your output goes to worksheet instead of data model. You might have further filtering requirements in future, so don't lock your query into a specific mode.

    Thanks for the reply! That was my initial idea - using the SumProduct function to seek out only rows that had both columns blank, but I'm ultimately going to use the filtered list in a PivotTable, so that didn't work too well.  It also needs to be easily added to.

    Was this answer helpful?

    0 comments No comments
  4. Ashish Mathur 101.9K Reputation points Volunteer Moderator
    2015-04-13T23:43:43+00:00

    Hi,

    In the Power Query window itself, you can filter the two columns on blanks.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2015-04-13T18:52:36+00:00

    You should be able to filter this in table in Excel if your output goes to worksheet instead of data model. You might have further filtering requirements in future, so don't lock your query into a specific mode.

    Was this answer helpful?

    0 comments No comments