+ Reply to Thread
Results 1 to 2 of 2

How to remove null values from several columns with Power Query?

  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    Uddevalla, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    34

    How to remove null values from several columns with Power Query?

    I have a consolidated table with five columns with amounts for the years 2013, 2014, 2015, 2016 and 2017. (Column name = 2013, 2014 i.e.).
    I would like to remove all rows in my table where ALL cells for this five columns are empty/null. How to???

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How to remove null values from several columns with Power Query?

    Create a new column using "if" and "and" like this....

    = if [2013]=null and [2014]=null and [2015]=null and [2016]=null and [2017]=null then "Delete Me" else "Keep Me"

    Use this new column and filter out the "Delete Me" rows.

    Note the "if", "then", and "else" need to be in lower case letters.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Remove Unique rows in Power Query
    By danielmorrison in forum Excel General
    Replies: 2
    Last Post: 03-11-2016, 09:06 AM
  2. Replies: 2
    Last Post: 06-19-2013, 04:58 PM
  3. Looping through columns on the same row, changing cell values to NULL
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2011, 11:49 PM
  4. How to remove null values in a data table below a graph
    By Exceluser123456 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-26-2011, 10:55 AM
  5. Problems Populating Null Table-Field Values With an Update or Append Query
    By NSTurk725 in forum Access Tables & Databases
    Replies: 3
    Last Post: 06-11-2009, 02:47 AM
  6. [SOLVED] Multipying columns that contail null values
    By ChuckW in forum Excel General
    Replies: 1
    Last Post: 09-06-2005, 09:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1