How to Delete All Spaces Within a Sequence, Even With Different Character #s

rebel123

Active Member
Joined
Apr 18, 2017
Messages
351
Office Version
  1. 365
Platform
  1. MacOS
Correct answers in Green. Just looking for an equal sign, drag-down equation, please.

Thanks!

Here is the file-
 

Attachments

  • Screen Shot 2022-08-16 at 3.43.36 PM.jpg
    Screen Shot 2022-08-16 at 3.43.36 PM.jpg
    107.2 KB · Views: 6

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
You can use the TRIM function for that.
 
Upvote 0
Hmm.. I tried

=TRIM(Then I selected the cell)

and it did not delete any spaces...
 
Upvote 0
Oops, I wasn't thinking it's not trim but susbstitute & sub the spaces for ""
 
Upvote 0
No idea how to write that....??

I tried

=SUBSTITUTE(Selected Cell)" "
 
Upvote 0
OK yes quite confusing but it's

=SUBSTITUTE(B2," ","")


B2 represents the selected cell

Thanks Fluff!
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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