I have a column with data:
AB001
AB002
EF001
EF002
EF003
KE001
KE002
KE003
AB003
The formule which gives me the Maximum String in the Strings starting with EF (the result of my formula => EF003) is:
Converting to vba gives:
I try to replace "EF" by a variable: EF_String="EF"
I get error 2015 as result
Thanks
AB001
AB002
EF001
EF002
EF003
KE001
KE002
KE003
AB003
The formule which gives me the Maximum String in the Strings starting with EF (the result of my formula => EF003) is:
Code:
="EF"&TEXT(MAX((--(LEFT(A1:A9,2)="EF")*(RIGHT(A1:A9,3)))),"000") with [COLOR=#333333]Ctl+Shift+Enter NOT just Enter [/COLOR]
Converting to vba gives:
Code:
Range("B1").Value = [="EF"&TEXT(MAX((--(LEFT(A1:A9,2)="EF")*(RIGHT(A1:A9,3)))),"000")]
I try to replace "EF" by a variable: EF_String="EF"
Code:
[COLOR=#333333]Range("B1").Value = [=EF_String&TEXT(MAX((--(LEFT(A1:A9,2)=EF_String)*(RIGHT(A1:A9,3)))),"000")][/COLOR]
Thanks