CONCATENATE part of cell

  • Thread starter Thread starter Legacy 185509
  • Start date Start date
L

Legacy 185509

Guest
Hi
I have this text in cell B2
A0_13_FDF812_FDMW Number 812 can change for cells below it

I only want to get text 812 this three digit text from this cell.
please help

below is formula I am trying, it is not working
Code:
=CONCATENATE("'",RIGHT(B2,FIND("_FDF",B2,1)-1),"")
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
I have this text in cell B2
A0_13_FDF812_FDMW Number 812 can change for cells below it

I only want to get text 812 this three digit text from this cell.
please help[/CODE]
You did not tell us anything about the "shape" of your text. Is there always the same number of characters before the number you want (that is, the A0_13_FDF part is 9 characters long... are there alway 9 characters in front of the 3-digit number)? If so, try this formula...

=MID(B2,10,3)

If not, are there always 5 digits after the 3-digit number? If so, then try this formula...

=MID(B2,LEN(B2)-5,3)

If neither of the above, then what part of the text is "fixed"... always 2 underlines followed by letters in front of the number you want? or perhaps always an underline character immediately after the number? something else?
 
Upvote 0
.
zit1343 take note....

@Rick

Shouldn't your second formula be -
Code:
=MID(B2,LEN(B2)-7,3)
He-he.... yep, it sure should be. It looks like I counted backwards to the first digit from the back instead of the last digit from the back. Thanks for catching that.
 
Upvote 0

Forum statistics

Threads
1,224,537
Messages
6,179,408
Members
452,912
Latest member
alicemil

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