I need help writing a formula that will search a string and return the first instance of two characters only, between two underscores. Probably not explaining that well but my examples are:
abcd_ef_gh_ijkl this should return ef
abc_efgh_ijk_lm_nop this should return lm
My current formula: =MID(A2,FIND("_",A2,1)+1,FIND("_",A2,FIND("_",A2,1)+1)-FIND("_",A2,1)-1)
is only returning the characters between the first two underscores. Is there a formula that will do what I am asking?
abcd_ef_gh_ijkl this should return ef
abc_efgh_ijk_lm_nop this should return lm
My current formula: =MID(A2,FIND("_",A2,1)+1,FIND("_",A2,FIND("_",A2,1)+1)-FIND("_",A2,1)-1)
is only returning the characters between the first two underscores. Is there a formula that will do what I am asking?