Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. | John Smith 34, Manager |
  2. | Jane Doe 25, Assistant |
  3. | Lucio 32, Web Developer |
  4.  
  5. | Lucio |
  6. | John Smith |
  7. | Jane Doe |
  8. | Samuel L Jackson |
  9.  
  10. =COUNT(FIND(NameList,A1))
  11.  
  12. | John Smith 34, Manager | John Smith |
  13. | Jane Doe 25, Assistant | Jane Doe |
  14. | Lucio 32, Web Developer | Lucio |
  15.  
  16. = LEN(haystack) - LEN( SUBSTITUTE(haystack, needle, "") ) > 0
  17.  
  18. // Analysis of a matching example
  19.  
  20. - LEN("John Smith 34, Manager") = 22
  21. - SUBSTITUTE("John Smith 34, Manager", "John Smith", "") = " 34, Manager"
  22. - LEN(" 34, Manager") = 10
  23. - (22 - 10) > 0 = TRUE
  24.  
  25. // Analysis of a non-matching example
  26.  
  27. - LEN("John Smith 34, Manager") = 22
  28. - SUBSTITUTE("John Smith 34, Manager", "Lucio", "") = "John Smith 34, Manager"
  29. - LEN("John Smith 34, Manager") = 22
  30. - (22 - 22) > 0 = FALSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement