How can I make a cell truly blank when doing a Power Query import from CSV?

Don202020

New Member
Joined
Dec 8, 2017
Messages
2
[FONT=&quot]I am importing data from a CSV file into Excel 2016 using Power Query. Cells that should be blank are not truly blank.[/FONT]
[FONT=&quot]The columns I am having trouble with are formatted as "Data Type: Text". These columns contain a variety of information and some of the cells are blank. However , when I finalize the import and load the data, these cells are not truly blank.[/FONT]
[FONT=&quot]For example cell H2 should be blank. If I put a function in I2 "=isblank(H2)" the result is "false". If I click on H2 an press the "DELETE" key, the result turns to "true". Also, If I just double click on H2, the result turns to "true".[/FONT]
[FONT=&quot]I have a column formatted as "Data Type: Date", which also contains some blank cells. These cells show in the Query Editor preview as "null", and import correctly.[/FONT]
[FONT=&quot]The blank cells in the source CSV are empty. Meaning it is one comma followed by another comma (,,). There is no space in between, no quotes, and no other characters. This is consistent across the entire CSV.[/FONT]
[FONT=&quot]I'm sure the solution is simple, I just can't figure it out. Thanks.[/FONT]
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
[FONT=&quot]I figured it out.

[/FONT]

[FONT=&quot]In Power Query, I selected all columns, clicked "Replace Values", [/FONT]
[FONT=&quot]Value to find: (left the cell empty)[/FONT]
[FONT=&quot]Replace With: null (lower case, no quotes)[/FONT]
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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