For some reason, i am not able to remove leading space from excel cells. I tried Find & Replace (Ctrl+H) and TRIM formula. Also tried changing different format. See attached file
For some reason, i am not able to remove leading space from excel cells. I tried Find & Replace (Ctrl+H) and TRIM formula. Also tried changing different format. See attached file
Please try
=SUBSTITUTE(A2,CHAR(160),)
This substitute formula provided by Bo_RY worked. Thank You so much
Last edited by vani2004; 05-20-2020 at 02:12 PM.
Employing Power Query, I brought your table into the PQ Editor. Applied the Trim function in the PQ Editor and then closed and loaded back to Excel.
Here is the Mcode for that
Power Query is also called Get & Transform. It is located on the data tab of the ribbon.![]()
let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content], #"Trimmed Text" = Table.TransformColumns(Source,{{" WearerFirstName", Text.Trim, type text}, {" WearerLastName", Text.Trim, type text}}) in #"Trimmed Text"
Review PQ
In the attached file
Click on any cell in the new table
On the Data Tab, click on Queries & Connections
In the right window, double click to open Query
Review PQ steps
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
For some reason it wont' let me open the attached file. however, BO-RY was able to help with substitute formula. Thank you very much for your help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks