Removing specific characters from a string

RachelBrown

New Member
Joined
Jul 6, 2017
Messages
11
Hello,

I need to remove the first two, and the last five characters of a string, but the length of the string varies. Can someone help me get started?
The dataset has about 130,000 rows

Thanks!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
RachelBrown, Good evening.

Suppose:

A1 --> AA123456789012BBBBB

Try to use:
Code:
=LEFT(MID(A1,3,1000),LEN(MID(A1,3,1000))-5)

Is that what you want?

I hope it helps.
 
Upvote 0
jtakw, Good evening.

Very good approach!

Much better than mine. snif snif

Have a nice weekend.
 
Upvote 0
You're too modest Marcilio, mine's not necessarily better, just another way, we're all here to help, teach, and learn at the same time.
I've seen some Great postings from you.
 
Upvote 0
jtakw,

Thank you very much for the comments!

I learn a lot from all of you here.
Using logic to make these formulas in Excel is a hobby for me.

All the best for you and your family.

Greetings from Brazil !
 
Upvote 0
You're welcome, and Thank You also, Marcilio.
Excel is also a hobby for me, I've never even used Excel until I joined this forum.

Sorry Mods, not trying to make this thread into a Chat thread, but it's all good vibes.
 
Upvote 0
You're welcome, glad We were able to help.
 
Upvote 0

Forum statistics

Threads
1,224,749
Messages
6,180,725
Members
452,995
Latest member
isldboy

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