Hidden Spaces/Tabs in Cell

GeeWhiz7

Board Regular
Joined
Nov 22, 2021
Messages
214
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi folks,
I have a cell in a table that seems to be giving me trouble when I try to import into Power BI from an excel sheet.
Here is the issue:

Cell E2 (blue A) : Has three entries that appear to be on individual lines, but in the same cell. When I try to take this to Power BI, it only recognizes the first line "WOPI".
Cell E1 (next to red B) : Using TRIM or SUBSTITUTE looks like it gets rid of the issue as now all three are on the same line which is what I want.
But, the formula bar seems to show things are still separate and when I try to import to PBI, I get the same issue that it only recognizes the first line.

Any ideas how I can make the three values concretely put together in excel so PBI will see it as one single header item?

Thanks!

1645894983865.png


The mini sheet is here...for some reason the formulas are not showing up at the bottom despite being checked in Xl2bb, so the formulas I've tried in cell E1 are =SUBSTITUTE(E2,CHAR(9),"-") and =TRIM(E2).

TestRSMLoad.xlsb
ABCDEF
1WOPI SM3/DAY MRB-2HC
2RunDateYEARS YEARS WOPI SM3/DAY MRB-1HCWOPI SM3/DAY MRB-2HCWOPI SM3/DAY MRB-3HC
3SUMMARY OF RUN BTC_IAB_REVCLOSEDF_WD_P1P2I0_OPTIMIZED01-JAN-20240000
4SUMMARY OF RUN BTC_IAB_REVCLOSEDF_WD_P1P2I0_OPTIMIZED01-JAN-20240.000274000
5SUMMARY OF RUN BTC_IAB_REVCLOSEDF_WD_P1P2I0_OPTIMIZED01-JAN-20240.000548000
6SUMMARY OF RUN BTC_IAB_REVCLOSEDF_WD_P1P2I0_OPTIMIZED01-JAN-20240.000865000
7SUMMARY OF RUN BTC_IAB_REVCLOSEDF_WD_P1P2I0_OPTIMIZED01-JAN-20240.001361000
8SUMMARY OF RUN BTC_IAB_REVCLOSEDF_WD_P1P2I0_OPTIMIZED01-JAN-20240.00203000
9SUMMARY OF RUN BTC_IAB_REVCLOSEDF_WD_P1P2I0_OPTIMIZED02-JAN-20240.003074000
10SUMMARY OF RUN BTC_IAB_REVCLOSEDF_WD_P1P2I0_OPTIMIZED02-JAN-20240.004706000
11SUMMARY OF RUN BTC_IAB_REVCLOSEDF_WD_P1P2I0_OPTIMIZED03-JAN-20240.007256000
GeeWiz
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
try

Excel Formula:
=SUBSTITUTE(E2,CHAR(10),"")
 
Upvote 0
Solution
try

Excel Formula:
=SUBSTITUTE(E2,CHAR(10),"")
Kind of a duh moment when I saw your suggestion of CHAR(10) as it makes sense its a line return that is the culprit.
Thank you JGordon11, that works and it also highlighted other issues with my input file so a couple steps forwards.
 
Upvote 0

Forum statistics

Threads
1,223,719
Messages
6,174,089
Members
452,542
Latest member
Bricklin

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