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

161
Visualizações
¿Hay alguna manera de hacer un bucle For a una variable de cadena y luego agregarle 6 letras en cada bucle con el valor inicial 'A1: A', primer bucle 'G1: G' -javascript?

Me gustaría hacer un bucle for con " CantAMS = 10 " siendo la cantidad de bucles que necesito y cada vez que hago un bucle para agregar 6 letras a mis variables ColumnasAm, AMName, Ammail y Check. Lo tengo escrito ahora como una matriz de 10 X 1 y luego lo recorro, pero me gustaría crear una función o un bucle si es posible donde agrego 6 letras a mi variable cada vez que recorre.

 const CantAMS = 10 const ColumnasAm = ['A1:A', 'G1:G', 'M1:M','S1:S','Y1:Y','AE1:AE','AK1:AK','AQ1:AQ','AW1:AW','BC1:BC']; const AMName = [ ws.getRange('A2').getValue(), ws.getRange('G2').getValue(), ws.getRange('M2').getValue(),ws.getRange('S2').getValue(),ws.getRange('Y2').getValue(),ws.getRange('AE2').getValue(),ws.getRange('AK2').getValue(),ws.getRange('AQ2').getValue(),ws.getRange('AW2').getValue(),ws.getRange('BC2').getValue()]; const Ammail = [ ws.getRange('B2').getValue(), ws.getRange('H2').getValue(), ws.getRange('N2').getValue(),ws.getRange('T2').getValue(),ws.getRange('Z2').getValue(), ws.getRange('AF2').getValue(),ws.getRange('AL2').getValue(),ws.getRange('AR2').getValue(),ws.getRange('AX2').getValue(),ws.getRange('BD2').getValue()]; const Check = [ ws.getRange('A5').getValue(), ws.getRange('G5').getValue(), ws.getRange('M5').getValue(),ws.getRange('S5').getValue(),ws.getRange('Y5').getValue(),ws.getRange('AE5').getValue(),ws.getRange('AK5').getValue(),ws.getRange('AQ5').getValue(),ws.getRange('AW5').getValue(),ws.getRange('BC5').getValue()]; const Columni = [1,7,13,19,25,31,37,43,49,55];
about 4 years ago · Juan Pablo Isaza
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