• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

Converting US formatted number into EU format with Excel formula + removing extra spaces in each cell|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Converting US formatted number into EU format with Excel formula + removing extra spaces in each cell|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Converting US formatted number into…
sp_PrintTopic sp_TopicIcon
Converting US formatted number into EU format with Excel formula + removing extra spaces in each cell
Avatar
Nesha St
Belgrade, Serbia
Member
Members
Level 0
Forum Posts: 19
Member Since:
September 13, 2020
sp_UserOfflineSmall Offline
1
September 19, 2023 - 10:06 pm
sp_Permalink sp_Print
On a web site that I have to enter with a password, there is a list (sort of a table) of articles and prices.

Prices are in US format, 12,350.05
I need them to be in EU format, 12.350,05
Also, since there is a password for this web site, I can't link it to Excel (Get Data...). Or is there a way??

So I have to copy-paste web table (not a problem, done occasionally).

Unfortunately, each price (number) also has lot's of spaces, cannot remove them with TRIM formula.
Number of spaces randomly vary from cell/number to cell/number.

So, in Excel App (not Excel for web) I need a formula (and not Power Query) to remove extra spaces and convert from US to EU format.

Any solutions please?
sp_AnswersTopicSeeAnswer See Answer
Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 1
Forum Posts: 605
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
2
September 20, 2023 - 3:56 pm
sp_Permalink sp_Print

Could you upload a file as you download it from the web site? Difficult to help otherwise.

Avatar
Hans Hallebeek
the Netherlands
Member
Members


Trusted Members
Level 0
Forum Posts: 182
Member Since:
October 17, 2018
sp_UserOfflineSmall Offline
3
September 20, 2023 - 4:12 pm
sp_Permalink sp_Print

If and when the data is read into the file you can add a macro that removes all spaces and unallowed characters and you can also change the currency symbol accordingly and if also include a currency conversion if it's not the one you want.

Suggest you also tell us which Excel/Office version you're using

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1549
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
September 20, 2023 - 4:34 pm
sp_Permalink sp_Print

Hi Nesha,

Why don't you want to use Power Query?  It would make things much easier than using formulae.

Regarding the formatting of the numbers, that's what it is (or should be), just visual formatting.  The numbers should not contain any characters like , or . because that makes them text strings.

If you used Power Query you can remove all these unwanted text characters then save to the worksheet as numbers and display them in any format you wish

Please check this Excel Custom Number Formatting Guide

Regards

Phil

Avatar
Nesha St
Belgrade, Serbia
Member
Members
Level 0
Forum Posts: 19
Member Since:
September 13, 2020
sp_UserOfflineSmall Offline
5
September 21, 2023 - 5:17 pm
sp_Permalink sp_Print

Thank you all for your comments and questions.

@Riny van Eekelen
Can't upload until Monday, some difficulties accessing this site, there are some ongoing maintenance

@Hans Hallebeek
Forgot to mention, no macros please.
Office 365

@Philip Treacy
Well, actually I'm doing this for a colleague that is not familiar with Power Query and would probably be more problematic to him. Also, no VBA.
It should be some formula. If there is such...

Visuals of "," and "." within numbers are much helpful hence are needed.

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1549
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
6
September 25, 2023 - 10:16 am
sp_Permalink sp_Print sp_EditHistory

Hi Nesha,

Surely it's in your colleague's best interest to learn skills that make their job easier?  Why persist doing something the old way just because they don't know how to do it any better?

You could set up the query such that they just have to paste the data in a workbook then update.  They don't need to know how the query code works.

"Visuals of "," and "." within numbers are much helpful hence are needed."

They certainly are but only as formatting not as actual , and . characters which would make the number a text string.  Again, this is an area power Query is very good at - converting numbers from one locale to another.

Phil

Avatar
Nesha St
Belgrade, Serbia
Member
Members
Level 0
Forum Posts: 19
Member Since:
September 13, 2020
sp_UserOfflineSmall Offline
7
September 25, 2023 - 5:25 pm
sp_Permalink sp_Print

@Philip Treacy

Yes, I know what you mean and agree 100%. But, not always is possible to implement such training, knowledge and how-to. In this situation that me and my colleague are, it would take more time than some practical formula. Also, there are some company policies, restrictions...that I cannot go on here and will not help in solving me a problem. We are the same team where I was asked to help (based on my skills) but with different policies, different access rights...

If this 'problem' was happening solely to me, I know how would solve ti and of course use PQ. But...

Anyway, if in some reasonable future I stumble on some simple Excel formula solution, I will head to the next step and see (with IT...) if something could be done in here proposed solutions.

Nesha

Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 1
Forum Posts: 605
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
8
September 25, 2023 - 10:13 pm
sp_Permalink sp_Print sp_EditHistory

Let's say the US style number is in A1 as a text "____12,350.05____" where the underscores indicate leading and trailing spaces. Would the formula below work for you?

=VALUE(TRIM(SUBSTITUTE(SUBSTITUTE(A1,",",""),".",",")))

sp_AnswersTopicAnswer
Answers Post
Avatar
Nesha St
Belgrade, Serbia
Member
Members
Level 0
Forum Posts: 19
Member Since:
September 13, 2020
sp_UserOfflineSmall Offline
9
September 26, 2023 - 7:50 pm
sp_Permalink sp_Print

@Riny van Eekelen

 

Yes, it works!

Thanks!
[Image Can Not Be Found]

(I wanted to attach PrintScreen but didn't find a way to do it....also couldn't do copy-paste of it here)

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Susan VanRiper, Sue Hammond, Lee Mapes, Tracy English, Joaquim Amorim, Mohamed Touahria
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
David von Kleek
Ronald White
Ginette Guevremont
Taryn Ambrosi
Mark Davenport
Christy Nichols
Harald Endres
Ashley Hughes
Herbie Key
Trevor Pindling
Forum Stats:
Groups: 3
Forums: 24
Topics: 6528
Posts: 28594

 

Member Stats:
Guest Posters: 49
Members: 32817
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.