Remove Blank Cells in spreadsheet and shift cells left

Highlighted
Six Stars

Remove Blank Cells in spreadsheet and shift cells left

Hello. I have set of data where multiple values of same information is spread accros columns. I would need to use something like in Excel when you mark all blank cells in the area, hit delete and shift cells left. I have too large set of data which just cannot be processed by Excel, so Im wondering if this could be somehow achieved using DI. See the sample picture attached if it is unclear. Many thanks for help
Highlighted
Moderator

Re: Remove Blank Cells in spreadsheet and shift cells left

Hi,
Have you tried to check out "Trim" option to trim the leading and trailing white space in advanced settings of tfileinputexcel component?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Six Stars

Re: Remove Blank Cells in spreadsheet and shift cells left

Hi Sabrina. Thanks, but I think the Trim option only allows me to remove leading and trailing whitespaces within cells, correct? What I need is to remove entire cell which is empty and shift left all cells which are now right. Does it make sense from the picture? Many thanks for help 
Highlighted
One Star

Re: Remove Blank Cells in spreadsheet and shift cells left

Hi,
Push the record from Excel to a field where values are separated by ";" then use a regex to replace multiple ";" (let say ";;;") by a single ";" and finally push the result back to an Excel file.
Regards,
TRF

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog