Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

278
Visualizações
Add filter view hyperlinks and rearrange the column values

I have Sheet1 with existing filter view hyperlinks. I want to find any names that dont have filterviews, then create filterviews with hyperlinks to these names and add them in alphabetical order to the list that already has hyperlinks.

Example: In Sheet 1, Col C,E,G, new names: Tracy Jack,Maria Jose , Samuel Philips,Karan Tucker, Vincent Lee, Wes Lee do not have a filter view and hyperlink, I want to add filter view and hyperlink to these names and then add them alphabetically to the list of names with hyperlinks in the rows above

Before adding hyperlinks

After adding hyper link to

Tracy Jack (Col C),

Maria Jose , Samuel Philips (Col E),

Karan Tucker, Vincent Lee, Wes Lee(Col G),

I want to add insert these names with links in alphabetical order in the rows above. Please see pic below for final output

After adding and rearranging list

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Here is the simply script that adds the custom menu 'Scripts' and add two commands: 'Sort column' and 'Sort columns C, E, G':

function onOpen() {
  SpreadsheetApp.getUi().createMenu('Scripts')
  .addItem('Sort current column', 'sort_active_col')
  .addItem('Sort columns C, E, G', 'sort_cols_CEG')
  .addToUi();
}

function sort_active_col() {
  var letter = SpreadsheetApp.getActiveRange().getA1Notation().replace(/^([A-Z]+).+/,'$1');
  sort_col(letter);
}

function sort_cols_CEG() {
  ['C', 'E', 'G'].forEach(letter => sort_col(letter));
}

function sort_col(letter) {
  var range = SpreadsheetApp.getActiveSheet().getRange(`${letter}5:${letter}`);
  range.sort(range.getColumn());
}

They sort a current column of columns 'C', 'E', 'G' respectively (start from row 5).

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda