How to put a new column after a "sort" in a google sheets doc? -


i have following issue: create column pulling data columns of dfferent sheets ctreate single column created unique values.

i use column via transpose(sort(range)) create column headings on third sheet.

my problem how can add "total" column without knowing how many columns there going be? easy enough via "if" statement check columns there , build queries, how add last column has me stumped.

thanks

the best way me create custom function though google script , use formula. can use following script

//do not edit     function addtotal(range) {       return range+",total";     } 

and in sheet type range

=split(addtotal(sort('report lookup'!f:f)),",") 

you don't need transpose in case


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -