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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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:
Upvote 0
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))
 
Upvote 0

Forum statistics

Threads
1,215,373
Messages
6,124,562
Members
449,171
Latest member
jominadeo

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