Display text from right side of character when there us two the same.

daza34

Board Regular
Joined
Feb 14, 2017
Messages
70
Hi,

I have a cell full of text but also numbers and under scores.

645_OCC Collaborate_3

I have written the below but it displays the text after the first _ and i need it to show the text/number after the last _

=MID(K2:K38272,FIND("_",K2:K38272),200)

I hope this is possible and any help would be appreciated :)
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Sorry also there is also a different word on another cell but same requirements needed

_OCC VOICE_3
 
Upvote 0
Try this:

Excel Formula:
=TRIM(RIGHT(SUBSTITUTE(K2:K38272,"_",REPT(" ",200),200)))
 
Upvote 0
Thank you but i have numerical that go above 9 (IE 10 etc)

Sorry it must have been the way i described it.
 
Upvote 0
Try this:
VBA Code:
=MID(K2;FIND("_";K2;FIND("_";K2)+1)+1;500)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Is that 365, 2021 or some other version?
 
Upvote 0
Thanks, please remember to update your profile. It save people having to ask. ;)

How about
Excel Formula:
=textafter(K2,"_",-1)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,885
Messages
6,175,181
Members
452,615
Latest member
bogeys2birdies

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