Hi everyone, I'm working with informations about customers along 136 months.  What I'm working on is an specific information about those customers that express a situation that can from a month to another. With this data in hands I'm building a report to specify the duration (in months) of each situation.     For example, concatenating all these situation for an hypothetic customer we would have:     customer_historic='00000666668888888888880000000000000000777777777777777777770000000006666666'     At first I could say that on the first five months the situation was 0 and lasted for 5 months.  And since the 6th month the situation began to be 6, and it lasted for 5 months as well.  And then, from the 11th month it started to be 8, and it lasted for 8 months  .....        But, using formulas, I just can identify the beginning of this sequence, which could be done using:     FIRST_NUMB_SEQUENCE = INDEX(customer_historic,'0');  Which the result would be FIRST_NUMB_SEQUENCE = '1'.     Does anyone know a way to identify when, along the sequence, the digit starts to be different from 6 ? Is possible to do that using INDEX function ?     Or an alternative way.     Thanks in advance.       
						
					
					... View more