LEN formula - if string less than 3 cut off last letter

Ace71425

Board Regular
Joined
Apr 20, 2015
Messages
130
I'm looking for a formula that takes the string in A1 and if the text is 4 or greater characters I want it to display the first 3...if the text is 3 letters long I want it to display the first 2...if the text is 2 letters long I want it to display only the first character....let me know what that formula would be I'm assuming using left and len. Thanks!
 
That is odd because that is not what happens on my samples. I even tested Rick's formulas from #5 and it does the same as mine.

Excel 2010
ABCDEF
1SAMPLEMINERICKRICKRICKRICK
2JohnJohJohJohJohJoh
3JonJoJoJoJoJo
4BrianBriBriBriBriBri
5JoJJJJJ
6BriannaBriBriBriBriBri
7KimberlyKimKimKimKimKim
8JamesJamJamJamJamJam
9BillyBilBilBilBilBil
10WilliamWilWilWilWilWil
11BoBBBBB
12JoJJJJJ
13TamTaTaTaTaTa
14annananananan
15BobBoBoBoBoBo
16TammyTamTamTamTamTam
17JoanJoaJoaJoaJoaJoa
18RoyRoRoRoRoRo
19WayneWayWayWayWayWay

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,215,045
Messages
6,122,840
Members
449,096
Latest member
Erald

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