Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Dúvidas sobre cálculos, funções simples e aninhadas, fórmulas matriciais, etc.
  • Avatar do usuário
Por marciomorel
#43892
Se alguem puder me ajudar agradeco muito.
É o seguinte:

tenho uma tabela onde tenho 2 colunas : a e b

A B
1 xyz
1 uio
1 hkl
2 xxx
2 opo
2 yyy
2 zzz

tenho outra panilha onde em uma celula (z1) quero uma lista de validacao onde apareçam apenas os dados de a=1 ou a=2 dependendo do valor de outra celula(y2) 1 ou 2.

Como executar isso?

Obrigado.
Avatar do usuário
Por Estevaoba
Avatar
#43898
Criei uma coluna auxiliar AB para listar os itens referentes ao valor em Y2 com esta fórmula matricial:
Código: Selecionar todos
AB1=SEERRO(ÍNDICE($B$1:$B$100;MENOR(SE($A$1:$A$100=$Y$2;LIN($A$1:$A$100));LIN(A1)));0)
Ao editar esta fórmula matricial, confirme com Ctrl+Shift+Enter.
E copie para preencher a coluna.

Depois criei um intervalo dinâmico nomeado Lista com esta fórmula:
Código: Selecionar todos
=DESLOC(Planilha1!$AB$1;;;CONT.VALORES(Planilha1!$AB$1:$AB$100)-CONT.SE(Planilha1!$AB$1:$AB$100;0);1)
E na validação de dados em Z1, no campo Fonte:
=Lista

Confira no anexo e veja se atende.
Ajuste os intervalos conforme sua necessidade.

Good luck!
Você não está autorizado a ver ou baixar esse anexo.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord