I understand Excel has a TEXTJOIN
function which allows one to display multiple values as a tuple.
I also understand Libre Office does - for whatever reason - not have them.
How do I write an auxiliary macro vec
that produces the desired tuple representation for me?
E.g. =vec(A1)
should produce ="("&A1&")"
,
=vec(A1:A3)
should produce ="("&A1&","&A2&","&A3&")"
,
=vec(A1,X5:X99,Z3)
should result in ="("&A1&","&"X5"&","&X6&...&x99&","&Z3&")"
etc, etc.
Easy enough a macro to implement in, say, bash, but I would like to just define it once then use it in calc, not constantly copy from console to spreadsheet.
How do I implement this in calc?