May 18th, 2006, 11:49 am
bit of a late answer - bit "brute force" but you can do the following...if you have the string in cell B2, in A3 have the following: =IF((LEN(B$2)-LEN(B$2)+A2)<LEN(B$2),(LEN(B$2)-LEN(B$2)+A2+1),"")...drag down the formula....in cell B3 have the following formula: =MID(B$2,A3,1)...drag down again....what you should get is a table that shows the character number and the corresponding string in the cell to the right....i.e. if i have 15687 in B2, in cells A3 to A7 i get 1,2,3,4,5 (number of characters), then in B3 to B7 i get 1,5,6,8,7. the solution is a bit ugly because you then get a blank cell in A8 followed by #VALUE! in the cells going down and also #VALUE1 in B8 downwards - about the best i can do though! EDIT...change the first formula to =IF(ISERROR(IF((LEN(B$2)-LEN(B$2)+A2)<LEN(B$2),(LEN(B$2)-LEN(B$2)+A2+1),"")),"",IF((LEN(B$2)-LEN(B$2)+A2)<LEN(B$2),(LEN(B$2)-LEN(B$2)+A2+1),""))...change the second one to =IF(ISERROR(MID(B$2,A3,1)),"",(MID(B$2,A3,1)))...i have now removed the unsightly errors AND created the most ugly/cumbersome formula ever...
Last edited by
darthtrader on May 17th, 2006, 10:00 pm, edited 1 time in total.