J'essaie de comprendre comment créer une formule pour transformer les liens d'une cellule en hyperliens dans une autre De la cellule A1, A2, etc. J'essaie d'obtenir la cellule B1, B2, etc. en utilisant les formules de fractionnement et de concaténation. Mais il n'est pas possible de traiter chaque lien pour créer un "wrapper" puis de le réintégrer dans une cellule
A1
https://link.com/xxxxxx1, https://link.com/xxxxxx2, https://link.com/xxxxxx3
A2
https://link.com/xxxxxx1, https://link.com/xxxxxx2, https://link.com/xxxxxx3, https://link.com/xxxxxx4, https://link.com/xxxxxx5
B1
<a href="https://link.com/xxxxxx1">Button 1</a>, <a href="https://link.com/xxxxxx2">Button 2</a>, <a href="https://link.com/xxxxxx3">Button 3</a>
B2
<a href="https://link.com/xxxxxx1">Button 1</a>, <a href="https://link.com/xxxxxx2">Button 2</a>, <a href="https://link.com/xxxxxx3">Button 3</a>, <a href="https://link.com/xxxxxx3">Button 4</a>, <a href="https://link.com/xxxxxx3">Button 5</a>
https://docs.google.com/spreadsheets/d/1v8dYt6CIgwnlcc5HKJLNvuAcLZI0IKRTInsprs56hsU/edit?usp=sharing
Solution du problème
essayer:
=INDEX(TEXTJOIN(", ", 1, "<a href="""&SPLIT(A1, ", ")&""">"&
"Name "&SEQUENCE(1, 3)&"</a>"))
formule matricielle :
=INDEX(REGEXREPLACE(TRIM(FLATTEN(QUERY(TRANSPOSE(IF(A1:A="",,
IF(IFERROR(SPLIT(A1:A, ", "))="",,"<a href="""&SPLIT(A1:A, ", ")&""">"&
"Button "&SEQUENCE(1, 5)&"</a>,"))),,9^8))), ",$", ))
Aucun commentaire:
Enregistrer un commentaire