how to separate text with multiple underscores and varying length of values
问题 a1=ac_tree_birch_NewYork_ext a2=bc_animal_dog_Washington_des How do I separate the text in the cells by the "_", since there is varying length of the cell values. I would like to use a formula, and not text to columns. Thanks 回答1: Use the SUBSTITUTE function to change all underscores (e.g. CHAR(95) ) to a large number of spaces (typically the entire length of the original string) and peel out the padded pieces with the MID function. Finish off with TRIM and an IFERROR 'wrapper'. In B1 as,