remove space in excel formula

kevinkhan

New Member
Joined
Feb 24, 2010
Messages
17
ok i have this text in J3
Atomic Kitten - Whole World

I want to extract the characters after the - sysmbol (not including the first space)

I have this formula so far
="#"&RIGHT(J3,LEN(J3)-FIND("-",J3))

but its producing a result like this
# Whole World

what formula do i use to exclude the space before the first letter which in this case its W

<colgroup><col width="100"></colgroup><tbody>
</tbody>

<colgroup><col width="303"></colgroup><tbody>
</tbody>
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,142
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Add a TRIM function

Like =TRIM(RIGHT(J3,LEN(J3)-FIND("-",J3)))

or

="#"&TRIM(RIGHT(J3,LEN(J3)-FIND("-",J3)))

Depending on what you want to achieve
 
Last edited:

vds1

Well-known Member
Joined
Oct 5, 2011
Messages
1,200
One more way,

="#"&REPLACE(J3,1,FIND("-",J3,1)+1,"")
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
37,866
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
And one more way...

If there is always a space after the dash
---------------------------------------------------------
="#"&MID(J3,FIND("-",J3)+2,99)

If the space after the dash might be missing
---------------------------------------------------------
="#"&TRIM(MID(J3,FIND("-",J3)+1,99))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,487
Messages
5,831,981
Members
430,100
Latest member
namhnz

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
Top