Finding First 3 characters after a comma, hyphen..

questforexcel

Board Regular
Joined
Jan 18, 2019
Messages
128
Office Version
  1. 2013
Platform
  1. Windows
Hi All,

Looking for some help on how to extract the first 3 characters from an alpha numeric data in a cell.

For eg.
"1234 - MUM Records Inc"
"4567 - SYD Books Inc"

I need a formula to extract the first 3 characters after the "-" above, so in the first case it should be "MUM" and in second "SYD"

May be there is a very simple formula but not able to get it.

Also there are spaces between numbers at the start, the "-" and the words after "-"
I tried using TRIM function but that did not remove the spaces, is there another these could be removed.

Would appreciate all your help.

Thank you,
 
Last edited:

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
questforexcel, Good morning.

Your data at A1.

Try to use: B1 -->
Excel Formula:
=MID(A1;FIND("- ";A1)+2;3)

Please, tell us if it worked for you.

I hope it helps.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
questforexcel, Good morning.

Your data at A1.

Try to use: B1 -->
Excel Formula:
=MID(A1;FIND("- ";A1)+2;3)

Please, tell us if it worked for you.

I hope it helps.
Thank you for your message and trying to help. It worked with the formula given on the first reply :) Thank you
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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