First instance of consecutive upper case letters in a string

Healthydogs

New Member
Joined
May 5, 2024
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
I need to be able to identify the position within a 65 character string of the first instance of consecutive upper case letters.

The first instance can occur anywhere in the string and are 2-4 random characters. There is always a space before each occurrence.

I intend to remove all text to its right to include the blank space just before it.

I want to make use of built-in Excel functions/formulas.

I’ve tried various combinations of find/search, upper(), trim, and all I get are errors.

Any suggestions, please?. I’ve very little hair left to pull out…
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Can you post some examples and expected outcome?
 
Upvote 0
Welcome to the MrExcel forum!

See if this works for you:

Book1
ABCDE
1abc123 JK xyz 778
2cd BDAC 33445 alskdfjalsdkjfalskdjf CDFA asdf4
Sheet5
Cell Formulas
RangeFormula
E1:E2E1=AGGREGATE(15,6,FIND({"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}&{"A";"B";"C";"D";"E";"F";"G";"H";"I";"J";"K";"L";"M";"N";"O";"P";"Q";"R";"S";"T";"U";"V";"W";"X";"Y";"Z"},A1),1)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,879
Messages
6,175,148
Members
452,615
Latest member
bogeys2birdies

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