How to exclude all text up to and including a capital letter from the right

Folander

New Member
Joined
Feb 16, 2016
Messages
15
Hi all,

Could realy do with some help. The below formula extracts the text up until the 2nd capital letter, like ThompsonTaxi and it will return Thompson, great. But it is not picking up names with an apostrophe or double barrelled names. I need a formula that starts from the right and will exclude everything up to and including the first capital letter, so removing Taxi from the above.

{=TRIM(LEFT(N6,SMALL(FIND(CHAR(ROW(INDIRECT("65:90"))),"x"&MID(N6,2,999)&"ABCDEFGHIJLMNOPQRSUVWXYZ"),1)-1))}

Cheers,

Fo
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
10,797
Try:

ABC
1ThompsonTaxiThompson
2MaryJoCookiesMaryJo
3Frank'sAutoFrank's

<tbody>
</tbody>
Sheet4

Array Formulas
CellFormula
C1{=LEFT(A1,AGGREGATE(14,6,FIND(CHAR(ROW(INDIRECT("65:90"))),A1,TRANSPOSE(ROW(INDIRECT("1:"&LEN(A1))))),1)-1)}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,910
Office Version
  1. 365
Platform
  1. Windows
Cross-posted here: https://www.excelforum.com/excel-ge...apital-letter-from-the-right.html#post4983957

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 

Folander

New Member
Joined
Feb 16, 2016
Messages
15
Hi Joe4,

That s worked a treat, thanks very much I am very impressed!

Admin- Apologies for the double post, I wasn't aware the websites were connected. Lesson learned
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,910
Office Version
  1. 365
Platform
  1. Windows
Admin- Apologies for the double post, I wasn't aware the websites were connected. Lesson learned
They are NOT connected. That isn't the issue. The issue is people unaware that the question has been posted (and maybe already solved) elsewhere, hence they would be wasting their time working on a problem that already has a solution.

Read this to get a full understanding of the concerns with Cross-Posting: https://www.excelguru.ca/content.php?184
 

Watch MrExcel Video

Forum statistics

Threads
1,129,317
Messages
5,635,527
Members
416,862
Latest member
MGDlite

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
Top