Eric has given you one suggestion for that, with some restrictions and also mentioned the CONCAT function.Is there a way to edit this via normal excel formula without the use of VBA?
I need a formula to get the first three capital letters before the slash ...
Excel Workbook | ||||
---|---|---|---|---|
A | B | |||
1 | AbST/1234342 | AST | ||
2 | Y_sRR/666 | YRR | ||
3 | B.RE/1234 | BRE | ||
4 | AB45CDEn/123R | ABC | ||
5 | ABCDe/55 | ABC | ||
6 | SDtr/3e | SD | ||
7 | rrrr/234 | |||
8 | Dr/3DD | D | ||
3 capitals |
@Eric
Also note that your use of -78 and <14 causes the [ character to be returned as a capital letter.
Hi Eric/hulaspiroHere's your formula adapted for unlimited characters before the slash:
=LEFT(CONCAT(IF(ABS(77.5-CODE(MID(A1,ROW(INDIRECT("1:"&FIND("/",A1&"/")-1)),1)))<13,MID(A1,ROW(INDIRECT("1:"&FIND("/",A1&"/")-1)),1),"")),3)
requiring Control+Shift+Enter.