Eric has given you one suggestion for that, with some restrictions and also mentioned the CONCAT function.
My suggestion uses the CONCAT function and also has a restriction. That is that you have a maximum of 9 characters before the slash, though my formula can be adjusted for considerably longer strings before the slash if required.
However, I am also interpreting the following as meaning that there could be more (or less) than 3 capital letters before the slash since you used the words "first three".
Also, although none of your sample data contain capitals after the slash, my formula would exclude those whereas Eric's 'may' include them
I was aware! There were a few other implicit assumptions in the formula as well, based on the sample data. I figured I'd wait until I got some feedback from the OP as to whether they had CONCAT available before I spent time working on the wrong version.
Here's your formula adapted for unlimited characters before the slash:
- Although a little longer, this version is non-volatile
- I haven't bothered with the -1 after FIND("/"..) since the slash will never be counted as a capital anyway
- I have not included the &"/" in these parts FIND("/",A1&"/") as I would prefer to return an error (or use IFERROR to return something else) rather than "ABC" for an example like "ABCd2" as "ABC" does not meet (to me anyway) the requirement of "the first three capital letters before the slash"
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.