# Mid Formula Question

#### hbgray

##### Board Regular
Is there a way to display the word in the middle of this example using the mid formula?

1234-word-123
12-wordtwo-12

The word length and number length may vary. This is what I have so far...
=mid(A1,find("-",A1)+1,XXX)
I do not know what to put in place of "XXX"
Any ideas?

### Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

#### Richard Schollar

##### MrExcel MVP
Hi

An alternative might be:

Excel Workbook
AB
112-wordtwo-12wordtwo
Sheet2

#### hbgray

##### Board Regular
How about if you want to pick the numbers at the end of the cell after the dash?

#### Richard Schollar

##### MrExcel MVP
Following the same logic you could use:
Excel Workbook
AB
212-wordtwo-1313
Sheet3

Replies
4
Views
685
Replies
3
Views
560
Replies
9
Views
303
Replies
3
Views
901
Replies
5
Views
640

1,181,102
Messages
5,928,063
Members
436,586
Latest member
latintxn

### 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.

### Which adblocker are you using?

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

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