Excel IF Statement Query -



Excel IF Statement Query -

trying head around if statement (which speaking i'm normaly ok at!)

the illustration sheet name 201401_abc123_xyz

i bascically want if text after first _ reads abc123 homecoming value 123 else homecoming 456.

any help appreciated

thanks jim

consider cell a1 has text i.e. "201401_abc123_xyz"

=if(mid(a1,find("_",a1)+1,6)="abc123","123","456")

here 6 length of string want search i.e. "abc123" "abc123" - string want search , 123 , 456 string want homecoming per question.

hope help.

excel if-statement

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -