I have numbers in Col C & D that are imported
The numbers have spaces in between for eg 459 221,225 985 etc the should look like 459,221 , 225,985 after running the macro
![]()
Please Login or Register to view this content.
I have numbers in Col C & D that are imported
The numbers have spaces in between for eg 459 221,225 985 etc the should look like 459,221 , 225,985 after running the macro
![]()
Please Login or Register to view this content.
Try:
![]()
Please Login or Register to view this content.
You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
Practice makes perfect. I'm very far from perfect so I'm still practising.
Hi Mumps
Thanks for the help. The space in the numbers are not being removed. see Attached Sample as well as sheet "Correct Data" showing what the data should look like after running the macro
Last edited by Howardc1001; 06-10-2021 at 09:55 AM.
So are you wanting a comma between numbers?should look like 459,221 , 225,985
Good Luck...
I don't presume to know what I am doing, however, just like you, I too started somewhere...
One-day, One-problem at a time!!!
If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
Also....Add a comment if you like!!!!
And remember...Mark Thread as Solved...
Excel Forum Rocks!!!
This is what I get after running the macro:
Revenue 259,213 226,171
Cost of sales (157,486) (810,673)
This works...
![]()
Please Login or Register to view this content.
hi Mumps
When I run the macro, The spaces are not removed and formatted with Thousand seperator
Not sure why it is working on your PC
Did you try @sintek's solution?
Hi Sintek
For some unknown reason, I cannot get this to work on my PC
See attached sample data with your code
Try:
![]()
Please Login or Register to view this content.
Works for me...see attached result...
Hi Sintek & Mumps
I found the problem. I was to do with memory. I closed down Excel , reopened and then ran the macro and it worked
Many thanks for all your help
As always...a pleasure Howard...happy coding...thanks for rep +![]()
Glad it worked out.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks