MID Formula Not Delivering Required Results

gmooney

Active Member
Joined
Oct 21, 2004
Messages
252
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a value in cell D2:

Retail A South Pacific TA

My formula is: =UPPER(MID(D2,10,(LEN(D2)-3)))

The result is
SOUTH PACIFIC TA

I only want SOUTH PACIFIC

I have 100's of rows with varying length of characters. This is simply one example.

Any thoughts?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Assuming you are always going to start 10 characters in and drop the last 3 - try:
Book1
D
1
2Retail A South Pacific TA
3
4SOUTH PACIFIC
Sheet1
Cell Formulas
RangeFormula
D4D4=UPPER(MID(LEFT(D2,LEN(D2)-3),10,LEN(D2)))
 
Upvote 0
Solution
Assuming you are always going to start 10 characters in and drop the last 3 - try:
Book1
D
1
2Retail A South Pacific TA
3
4SOUTH PACIFIC
Sheet1
Cell Formulas
RangeFormula
D4D4=UPPER(MID(LEFT(D2,LEN(D2)-3),10,LEN(D2)))
Thank you! That works!
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,614
Members
449,091
Latest member
gaurav_7829

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