Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
MAS42
Frequent Visitor

Excel Query, Some Number Cannot Convert to Number

Dear Community.

 

I've seen a few posts similar to this (https://answers.microsoft.com/en-us/msoffice/forum/all/excel-query-some-number-cannot-convert-to-num...) but so far none that solves the problem.

 

I've been using Power Query/PBI for around 10 years and have never experienced this issue.  I'm scraping the 1st table of data from a webpage (https://www.ne.ch/autorites/DFS/SCCO/impot-pp/Pages/Baremes.aspx - note the same issue arises if I simply copy/paste values directly to Excel),  However, while I'm able to convert some of the % values to number, there are always a few that give an error,  even after removing the % sign, cleaning, trimming, etc.

 

If anyone has encountered something similar and fixed this I'd be interested in how they did this.

 

Regards

 

Martin Short

 

MAS42_2-1737987605707.png

 

MAS42_0-1737987570483.png

 

MAS42_1-1737987587778.png

 

1 REPLY 1
Anonymous
Not applicable

Hi @MAS42 ,

Based on your description, it appears that you encountered an error when attempting to change the data type of the column [Taux de chaque categorie] to Number. Despite applying the replace value, clean, and trim transformation steps, the error persists. Please try the following methods to resolve the issue:

  • Paste Special: Select the problematic cell values, then press Ctrl + X. Right-click on the destination cell and choose "Paste Special" -> "Values" to paste the cleaned data as values only.

  • Manual InspectionManually inspect the problematic cells to identify any visible or non-visible discrepancies compared to the cells that successfully convert to numbers.
  • Re-type ValuesRe-type one of the problematic cell values and check if its data type can be successfully changed to Number.

If none of the above methods resolve the issue, could you please click "Error" in the screenshot below and share the error details with us? This will help us diagnose the problem and provide a solution. Thank you.

vyiruanmsft_0-1738031019732.png

Best Regards

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.