I am going to spend a very long time, largely in trial and error mode, trying to do something using excel functions which I am sure is better tackled with a bit of vba code. I am unfamiliar with vba, and would welcome some help to at least get me started.
I need to look for and populate a cell with a sub-string of the form “Jxxx” where J is J and x is an alpha. the to-be-searched string is a long string made up of a succession of groups of 4, mostly of the form “xnnx” where x is alpha and n is numeric. Both the leading and trailing alphas could be the letter J, and such a group could immediately precede or follow my target group. Thus the test needs to spot each “J” in the target string, test it and then continue looking for another. I think there will be one, and only one per target string matching my pattern. I may well want to return the next 4 characters following my search pattern as well as the actual four. That is test for four, and return 8.
Thanks in anticipation,
Mike C