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.
#51660
Boa tarde,

Estou com uma fórmula que busca a referência em uma planilha externa com várias abas para retornar um resultado.

A fórmula funciona perfeitamente mas ao abrir e fechar a planilha da referência, mesmo que nada seja alterado, a referência da fórmula muda para erro REF!

Segue a fórmula abaixo:

=SEERRO(PROCV(A170;'\\IP DA REDE\publico\Rodrigo\[Preventivas 2020.xlsx]SP'!$A$2:$G$1345;7;FALSO);SEERRO(PROCV(A170;'\\192.168.25.25\publico\Rodrigo\[Preventivas 2020.xlsx]ES'!$A$2:$G$56;7;FALSO);SEERRO(PROCV(A170;'\\192.168.25.25\publico\Rodrigo\[Preventivas 2020.xlsx]MG'!$A$2:$G$436;7;FALSO);SEERRO(PROCV(A170;'\\192.168.25.25\publico\Rodrigo\[Preventivas 2020.xlsx]RJ'!$A$2:$G$470;7;FALSO);""))))

O erro fica da seguinte forma (destacado em negrito):

=SEERRO(PROCV(A170;'\\IP DA REDE\publico\Rodrigo\[Preventivas 2020.xlsx]SP'!$A$2:$G$1345;7;FALSO);SEERRO(PROCV(A170;'\\192.168.25.25\publico\Rodrigo\[Preventivas 2020.xlsx]#REF'!$A$2:$G$56;7;FALSO);SEERRO(PROCV(A170;'\\192.168.25.25\publico\Rodrigo\[Preventivas 2020.xlsx]#REF'!$A$2:$G$436;7;FALSO);SEERRO(PROCV(A170;'\\192.168.25.25\publico\Rodrigo\[Preventivas 2020.xlsx]#REF'!$A$2:$G$470;7;FALSO);""))))

Se alguém souber o motivo de dar o erro ao abrir a planilha de referência, eu agradeceria de compartilhar a solução comigo.

Obrigado.
#51762
Tente isso
Código: Selecionar todos
=SEERRO(PROCV(A170;indireto("'\\IP DA REDE\publico\Rodrigo\[Preventivas 2020.xlsx]SP'!$A$2:$G$1345");7;FALSO);SEERRO(PROCV(A170;indireto("'\\192.168.25.25\publico\Rodrigo\[Preventivas 2020.xlsx]ES'!$A$2:$G$56");7;FALSO);SEERRO(PROCV(A170;indireto("'\\192.168.25.25\publico\Rodrigo\[Preventivas 2020.xlsx]MG'!$A$2:$G$436");7;FALSO);SEERRO(PROCV(A170;indireto("'\\192.168.25.25\publico\Rodrigo\[Preventivas 2020.xlsx]RJ'!$A$2:$G$470");7;FALSO);""))))
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