Extract text from right Excel


SUBMITTED BY: haivp3010

DATE: April 29, 2016, 6:37 a.m.

FORMAT: Text only

SIZE: 545 Bytes

HITS: 1936

  1. Step1 :
  2. Find number of occurrences (this is the most important step in all this)
  3. = LEN(A1)-LEN(SUBSTITUTE(A1,”,”,””)) (What a great way to get the number of occurrences – very thoughtful!)
  4. Step2:
  5. Substitute the last occurrence only!
  6. = SUBSTITUTE(A1,”,”,”|”, … ) (… follows from the function above which gives the instance to be substituted)
  7. Step3:
  8. Extract using the first formula above
  9. RIGHT(A1, LEN(A1) – FIND(“|”,…,1))
  10. Putting them all together –
  11. =RIGHT(A1,LEN(A1)-FIND(“|”,SUBSTITUTE(A1,”,”,”|”,LEN(A1)-LEN(SUBSTITUTE(A1,”,”,””)))))

comments powered by Disqus