{"text_format":"1","workbook":"xlsx","n_sheets":3,"sheets":["Basic SUBSTITUTE","SUBSTITUTE for numbers","Advanced SUBSTITUTE"],"not_rendered":{"charts":0,"images":0,"macros":1,"external_links":0,"defined_names":5,"comments":0,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"Basic SUBSTITUTE","index":0,"n_rows":7,"n_cols":6,"rows_kept":7,"cut":false,"hidden":false,"merged":[]}
[]
[null,"Input value","Replace…","With…","Instances","Result"]
[null,"Abracadabra","a",1,"All",{"$f":"IFERROR(SUBSTITUTE(Table1[[#This Row],[Input value]],Table1[[#This Row],[Replace…]],Table1[[#This Row],[With…]],Table1[[#This Row],[Instances]]),SUBSTITUTE(Table1[[#This Row],[Input value]],Table1[[#This Row],[Replace…]],Table1[[#This Row],[With…]]))","v":"Abr1c1d1br1"}]
[null,"Abracadabra","A",1,"All",{"$f":"IFERROR(SUBSTITUTE(Table1[[#This Row],[Input value]],Table1[[#This Row],[Replace…]],Table1[[#This Row],[With…]],Table1[[#This Row],[Instances]]),SUBSTITUTE(Table1[[#This Row],[Input value]],Table1[[#This Row],[Replace…]],Table1[[#This Row],[With…]]))","v":"1bracadabra"}]
[null,"Abracadabra","a",1,1,{"$f":"IFERROR(SUBSTITUTE(Table1[[#This Row],[Input value]],Table1[[#This Row],[Replace…]],Table1[[#This Row],[With…]],Table1[[#This Row],[Instances]]),SUBSTITUTE(Table1[[#This Row],[Input value]],Table1[[#This Row],[Replace…]],Table1[[#This Row],[With…]]))","v":"Abr1cadabra"}]
[null,"Abracadabra","a",1,2,{"$f":"IFERROR(SUBSTITUTE(Table1[[#This Row],[Input value]],Table1[[#This Row],[Replace…]],Table1[[#This Row],[With…]],Table1[[#This Row],[Instances]]),SUBSTITUTE(Table1[[#This Row],[Input value]],Table1[[#This Row],[Replace…]],Table1[[#This Row],[With…]]))","v":"Abrac1dabra"}]
[null,"Abracadabra","a",null,"All",{"$f":"IFERROR(SUBSTITUTE(Table1[[#This Row],[Input value]],Table1[[#This Row],[Replace…]],Table1[[#This Row],[With…]],Table1[[#This Row],[Instances]]),SUBSTITUTE(Table1[[#This Row],[Input value]],Table1[[#This Row],[Replace…]],Table1[[#This Row],[With…]]))","v":"Abrcdbr"}]

{"sheet":"SUBSTITUTE for numbers","index":1,"n_rows":3,"n_cols":4,"rows_kept":3,"cut":false,"hidden":false,"merged":[]}
[]
[null,"Input","Cleaned version","With formatting"]
[null,"$$1250",{"$f":"SUBSTITUTE(B3,\"$\",\"\")*1","v":1250},{"$f":"C3","v":1250}]

{"sheet":"Advanced SUBSTITUTE","index":2,"n_rows":29,"n_cols":5,"rows_kept":29,"cut":false,"hidden":false,"merged":[]}
[]
[null,"Word count"]
[]
[null,"How many words are there in this cell?"]
[null,null,{"$f":"LEN(B4)-LEN(SUBSTITUTE(B4,\" \",\"\"))+1","v":8}]
[]
[null,"Two substitutions"]
[]
[null,"Abracadabra",{"$f":"SUBSTITUTE(SUBSTITUTE(B9,\"A\",1),\"a\",1)","v":"1br1c1d1br1"}]
[]
[null,"Swapping strings"]
[]
[null,"Text","Swap…","With…","Result"]
[null,"Abby kissed Mike","Abby","Mike",{"$f":"SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B14,C14,\"`\"),D14,C14),\"`\",D14)","v":"Mike kissed Abby"}]
[]
[null,"Multiple substitutions"]
[]
[null,"Replacements table:"]
[null,null,"Replace","With"]
[null,null,"a",1]
[null,null,"A",1]
[null,null,"b",2]
[null,null,"c",3]
[]
[null,"Word:","Abracadabra"]
[]
[null,"VBA example:",{"$f":"VBASUBALL(C25,Table2[Replace],Table2[With])","v":"12r131d12r1"}]
[]
[null,"LAMBDA example:",{"$f":"SUBALL(C25,Table2[Replace],Table2[With],1)","v":"12r131d12r1"}]