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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Try:

ABC
ThompsonTaxiThompson
MaryJoCookiesMaryJo
Frank'sAutoFrank's

<tbody>
[TD="align: center"]1[/TD]

[TD="align: right"][/TD]

[TD="align: center"]2[/TD]

[TD="align: right"][/TD]

[TD="align: center"]3[/TD]

[TD="align: right"][/TD]

</tbody>
Sheet4

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Array Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C1[/TH]
[TD="align: left"]{=LEFT(A1,AGGREGATE(14,6,FIND(CHAR(ROW(INDIRECT("65:90"))),A1,TRANSPOSE(ROW(INDIRECT("1:"&LEN(A1))))),1)-1)}[/TD]
[/TR]
</tbody>[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself[/TD]
[/TR]
</tbody>[/TABLE]
 
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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