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

Folander

New Member
Joined
Feb 16, 2016
Messages
18
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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
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>
 
Upvote 0
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.
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,559
Messages
6,114,302
Members
448,564
Latest member
ED38

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