Buscando e Separados conjunto de numeros.

lu1zuk

New Member
Joined
Jul 30, 2021
Messages
33
Office Version
  1. 2019
Platform
  1. Windows
Ola, tenho uma planilha com relação a contagem de horas e checagem sobre as horas totais em relação a determinados cargos:
Exemplo.
exemplo1.png

Porem ali em cargos sao diversos "pares" de 18 numeros sequenciados, chamados de ID. Cada 18 numeros corresponde a um suposto id.
Por exemplo:
Os numeros sao o Id so cargo a esquerda, enquanto a direita é a meta de determinado cargo.

metaex.png

Eis o problema/Dor de cabeça. Na primeira imagem na Coluna "cargos" se encontra toda essa informação abaixo.
E cada pessoa possui diversos cargos. Nem sempre a quantidade é a mesma, podendo ter mais ou menos cargos, normalmente os 2 primeiros cargos e o ultimo cargo sao iguais para todos.
"869353363609899039, 869353363609899040, 869353363609899044, 869353363677020214, 869353363769290771, 869353363807010852, 869353363815411754, 869353363815411756, 869353363815411760, 870079612863012956, 870330472213921883, 869353363609899038"

O objetivo: Eu quero poder localizar especificamente o par de 18 numeros correspondente aos cargos das metas.

Excel Formula:
=EXT.TEXTO(d3;1;LOCALIZAR("869353363815411760";d3))
Eu tentei por meio do comando ext.texto e o localizar mas falhou.

Sou bem novo com excel, so tenho o conhecimento basico e um pouco a mais sobre as "funçoes" do mesmo.
E pelo o que entendi o Extrair ira extrair o conteudo de determinada célula a partir da contagem de "espaços" que for definido em "ext.texto(d3;1)
Quanto o localizar ele vai buscar pelos 18 numeros correspondentes que eu desejo. Como da pra imaginar falhou catastróficamente primeiro porque acredito que essa é a maneira errada.

Entao venho aqui pedi ajuda sobre o que posso fazer para:
Localizar uma entre as sequencias de 18numeros, especificos 18numeros que eu quero, assim eliminando os outros, porem preciso fazer isso com que ele procure 1 por 1.

Fato: A pessoa que possui um cargo de meta (exemplo- aspirante) ele nao possuira nenhum outro cargo alem daquele de meta.
Entao a ideia é buscar no meio de todos aqueles numero com virgula, o par de 18 que combina com os de metas que eu procuro, eles sao 15 cargos de metas.
Entao ele vai buscar no meio de todos os pares um id que corresponda com algum id dos 15 que serão fixos. Tais tipo como um "se", porem o se nao tem essa função de busca, eu acho.
 
Use esta fórmula em O3
=SE(ÉNÚM(LOCALIZAR(DIREITA(P3;18);E3));ESQUERDA(P3;LOCALIZAR(" ";P3)-1);"")

ela retorna
Aspirante
porque 869353363815411760 está presente em E3

É isto que vc quer?

M.
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
hmm...
Acho que, na verdade, vc quer algo assim na coluna O
Observe que criei mais duas colunas separando o Cargo da ID (número com 18 dígitos) nas colunas R e S (área cinza)

30072021 Testes.xlsx
OPQRS
1
2CargoCargo IDHoras MetasCargoID
3AspiranteAspirante 86935336381541176030Aspirante869353363815411760
4Capitao de Mar e Guerra2Tenente 869353363815411761352Tenente869353363815411761
5Capitao de Fragata1Tenente 869353363823816714401Tenente869353363823816714
6Tenente CoronelCapitao 86935336382381671545Capitao869353363823816715
7Tenente CoronelCapitao Tenente 86935336382381671650Capitao Tenente869353363823816716
8Gen ExercitoCapitao de Corveta 86935336382381671755Capitao de Corveta869353363823816717
9Capitao de CorvetaCapitao de Fragata 86935336382381671860Capitao de Fragata869353363823816718
10Com ExercitoCapitao de Mar e Guerra 86935336382381671960Capitao de Mar e Guerra869353363823816719
11AspiranteMajor 86935336382381672065Major869353363823816720
12Capitao de CorvetaTenente Coronel 86935336382381672175Tenente Coronel869353363823816721
13Gen ExercitoCoronel 86935336382381672280Coronel869353363823816722
14Gen DivisaoGen Brigada 869353363832180797125Gen Brigada869353363832180797
15MajorGen Divisao 869353363832180799150Gen Divisao869353363832180799
16 Gen Exercito 869353363832180801200Gen Exercito869353363832180801
172TenenteCom Exercito 869353363832180805250Com Exercito869353363832180805
Plan5
Cell Formulas
RangeFormula
R3:R17R3=LEFT(P3,SEARCH(8,P3)-2)
S3:S17S3=RIGHT(P3,18)
O3:O17O3=IFERROR(INDEX(R$3:R$17,AGGREGATE(15,6,(ROW(R$3:R$17)-ROW(R$3)+1)/ISNUMBER(SEARCH(S$3:S$17,E3)),1)),"")


A formula verifica se alguma ID existente na coluna E corresponde a alguma da coluna S, Caso sim, retorna o cargo na coluna R.

Espero que seja isto que vc está buscando. Diz aí se estou certo.

M
 
Upvote 0
Solution
Acho que tem um erro na coluna P

30072021 Testes.xlsx
P
2Metas
3Aspirante 869353363815411760
42Tenente 869353363815411760
Plan4


Aspirante e 2Tenente têm o mesmo número.

Acho que deve ser
30072021 Testes.xlsx
P
1
2Metas
3Aspirante 869353363815411760
42Tenente 869353363815411761
Plan4


Certo?

M.
Sim sim, isso eu corrigi, eu percebi depois so esqueci de avisar aqui, perdao. Mas sim. Enfim, ainda nao entendo como fazer o q eu procuro, conseguiu compreender com o exemplo que eu dei na minha ultima resposta ?
 
Upvote 0
Veja se a fórmula que eu usei no post #12 faz o que vc precisa.
Retorna os cargos que existem na célula da coluna E na linha correspondente.

Por exemplo,
em O3 retorna Aspirante porque a ID 869353363815411760 existe em E3
em O4 retorna Capitao de Mar e Guerra porque a ID 869353363823816719 existe em E4
e assim por diante

M.
 
Upvote 0
Sim! Funcionou perfeitamente!
Apenas não aprendi muito infelizmente mas resolveu o problema sim, o objetivo era aprender, mas nao estou reclamando, estou mais que contente com a sua ajuda! Muito obrigado manin

Eu passei ela pra portugues, as formulas traduzidas sao bem "literal" com exceção do search kk
 
Upvote 0
Melhor eu fazer outro post para essa pergunta? \/ ou tudo bem continuar aqui? Envolve a mesma planilha.
E uma pergunta rapida. Eu vou agora fazer um "se" para todos os cargos no local do "sobe e desce(N)" é so eu fazer um "se" grande
por exemplo:
=SE(O3="aspirante";SE(L3>=T3;"Sobe";SE(O3="2Tenente";SE(L3>=T3;"sobe"))))< se corresponde ao aspirante ok, se nao continuar checando pelo proximo na lista ate achar o verdadeiro e preencher com a condição certa. Eis o problema. (Claro so fiz ate o 2 tenente porque estava testando)

Tempo staff teste.xlsx
ABCDEFGHIJKLMNOPQRST
2UsuárioIdTempoAçõesCargosTempo Mov FAbrir.MovHorasTotal InteiroChecagemSobe ou Desce?CargoMetasHoras Metas
3?ᵛᵘˡᵍᵒ ʀᴀʏ?73258744857126504773258744857126504745 Horas 13 Minutos 43 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363677020214, 869353363769290771, 869353363807010852, 869353363815411754, 869353363815411756, 869353363815411760, 870079612863012956, 870330472213921883, 869353363609899038aaaa451247,729RebaixarFALSOAspiranteAspirante 86935336381541176030Aspirante86935336381541176030
4ˡᵉᵛⁱ ღ75045367091062389575045367091062389541 Horas 32 Minutos 24 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363668598801, 869353363807010852, 869353363815411754, 869353363823816719, 869353764727947324, 869353363609899038aaaa414141ManterFALSOCapitao de Mar e Guerra2Tenente 869353363815411761352Tenente86935336381541176135
5??????49563064139684250849563064139684250838 Horas 31 Minutos 43 Segundos869353363609899039, 869353363668598801, 869353363677020210, 869353363677020212, 869353363677020215, 869353363752517681, 869353363769290771, 869353363781853249, 869353363781853251, 869353363781853252, 869353363794444395, 869353363807010852, 869353363807010854, 869353363815411757, 869353363823816718, 870486899452706816, 869353363609899038aaaa383838ManterFALSOCapitao de Fragata1Tenente 869353363823816714401Tenente86935336382381671440
6୨?ᵇᵈᶜ Zøe S2 ᵐᵃᵍⁱᶜ54864651940685434054864651940685434037 Horas 42 Minutos 24 Segundos869353363609899039, 869353363609899040, 869353363635073073, 869353363668598804, 869353363677020212, 869353363677020214, 869353363677020217, 869353363752517681, 869353363769290764, 869353363769290765, 869353363769290769, 869353363769290770, 869353363781853247, 869353363781853249, 869353363781853251, 869353363781853252, 869353363794444390, 869353363794444395, 869353363794444396, 869353363794444397, 869353363807010852, 869353363815411754, 869353363823816721, 869353764727947324, 870079612863012956, 870309889619152906, 870486899452706816, 869353363609899038aaaa373737ManterFALSOTenente CoronelCapitao 86935336382381671545Capitao86935336382381671545
7?ℎ?? ?? ???? s272617688712622905372617688712622905336 Horas 32 Minutos 50 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073067, 869353363635073068, 869353363677020214, 869353363697983495, 869353363769290763, 869353363769290764, 869353363769290770, 869353363769290771, 869353363781853247, 869353363781853249, 869353363781853250, 869353363794444390, 869353363807010852, 869353363815411757, 869353363823816721, 870309889619152906, 870486899452706816, 869353363609899038aaaa363636ManterFALSOTenente CoronelCapitao Tenente 86935336382381671650Capitao Tenente86935336382381671650
8! astrx Dark痛 s269277872449978371269277872449978371236 Horas 24 Minutos 1 Segundos869353363609899039, 869353363609899040, 869353363609899042, 869353363635073066, 869353363635073073, 869353363668598799, 869353363677020210, 869353363677020212, 869353363677020214, 869353363677020215, 869353363731533895, 869353363769290770, 869353363781853249, 869353363781853250, 869353363781853251, 869353363781853252, 869353363794444389, 869353363794444390, 869353363794444395, 869353363794444396, 869353363794444397, 869353363807010852, 869353363807010853, 869353363815411754, 869353363832180801, 869353363844780126, 869353764727947324, 869957469038870638, 870030413609975880, 870079612863012956, 870309889619152906, 869353363609899038aaaa363636ManterFALSOGen ExercitoCapitao de Corveta 86935336382381671755Capitao de Corveta86935336382381671755
9? Frostzin ?☪☁61593306425366939961593306425366939936 Horas 19 Minutos 26 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363769290762, 869353363769290771, 869353363781853250, 869353363807010852, 869353363815411755, 869353363815411757, 869353363823816717, 869353363844780131, 869353764727947324, 869928452046864495, 870320793165385728, 870326462220234783, 870330472213921883, 870486899452706816, 869353363609899038aaaa363636ManterFALSOCapitao de CorvetaCapitao de Fragata 86935336382381671860Capitao de Fragata86935336382381671860
10MarceloXD270932246240855772365032246240855772365036 Horas 17 Minutos 27 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073067, 869353363635073068, 869353363656020029, 869353363668598799, 869353363668598801, 869353363677020210, 869353363677020214, 869353363697983495, 869353363697983496, 869353363752517679, 869353363769290770, 869353363769290771, 869353363781853247, 869353363781853249, 869353363781853250, 869353363781853251, 869353363794444389, 869353363794444390, 869353363794444395, 869353363794444396, 869353363794444397, 869353363807010852, 869353363815411758, 869353363832180805, 869353363844780128, 869353363861536791, 869353764727947324, 870030413609975880, 870309889619152906, 870330472213921883, 870718681196413018, 869353363609899038aaaa363636ManterFALSOCom ExercitoCapitao de Mar e Guerra 86935336382381671960Capitao de Mar e Guerra86935336382381671960
11☹S U M I D A☹81631493487381712581631493487381712535 Horas 41 Minutos 30 Segundos869353363609899039, 869353363609899040, 869353363635073067, 869353363647651883, 869353363647651889, 869353363668598798, 869353363668598804, 869353363677020212, 869353363677020214, 869353363677020217, 869353363807010852, 869353363815411754, 869353363815411760, 870079612863012956, 869353363609899038aaaa353535ManterFALSOAspiranteMajor 86935336382381672065Major86935336382381672065
12?????ᵇᶻʸ76675532922342609976675532922342609933 Horas 51 Minutos 38 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363677020214, 869353363781853252, 869353363794444390, 869353363807010852, 869353363815411754, 869353363823816717, 869353363609899038aaaa333333ManterFALSOCapitao de CorvetaTenente Coronel 86935336382381672175Tenente Coronel86935336382381672175
13krixi45148225210338509945148225210338509933 Horas 34 Minutos 41 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363668598801, 869353363677020210, 869353363677020214, 869353363677020217, 869353363697983495, 869353363794444393, 869353363807010852, 869353363807010853, 869353363815411754, 869353363815411759, 869353363832180801, 869353764727947324, 870320793165385728, 869353363609899038aaaa333333ManterFALSOGen ExercitoCoronel 86935336382381672280Coronel86935336382381672280
14! Sebastian☁67593194899190580467593194899190580433 Horas 24 Minutos 26 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363677020210, 869353363677020214, 869353363731533899, 869353363731533900, 869353363781853252, 869353363807010852, 869353363807010853, 869353363815411754, 869353363832180799, 869353363844780126, 869353363861536791, 869353764727947324, 869353363609899038aaaa333333ManterFALSOGen DivisaoGen Brigada 869353363832180797125Gen Brigada869353363832180797125
15! Srta.Sasori 痛☪77264599372804918477264599372804918433 Horas 9 Minutos 4 Segundos869353363609899039, 869353363609899040, 869353363668598799, 869353363668598801, 869353363677020210, 869353363677020212, 869353363677020217, 869353363807010852, 869353363815411754, 869353363823816720, 869353363609899038aaaa333333ManterFALSOMajorGen Divisao 869353363832180799150Gen Divisao869353363832180799150
16! Doutoraa s2 ⋆。ʚଓ ?54087127171032679454087127171032679432 Horas 34 Minutos 57 Segundos869353363609899039, 869353363609899040, 869353363609899042, 869353363609899044, 869353363635073066, 869353363635073067, 869353363635073068, 869353363635073072, 869353363647651886, 869353363668598798, 869353363668598799, 869353363668598801, 869353363677020210, 869353363677020212, 869353363677020214, 869353363677020217, 869353363731533894, 869353363752517675, 869353363781853251, 869353363794444389, 869353363794444390, 869353363794444393, 869353363794444395, 869353363794444396, 869353363794444397, 869353363807010852, 869353363807010853, 869353363815411754, 869353363815411759, 869353363874131971, 869353363609899038aaaa323232ManterFALSO Gen Exercito 869353363832180801200Gen Exercito869353363832180801200
17???66512464192418613366512464192418613331 Horas 50 Minutos 15 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363769290770, 869353363769290771, 869353363807010852, 869353363815411754, 869353363815411761, 869957469038870638, 870079612863012956, 870309889619152906, 870320793165385728, 870486899452706816, 869353363609899038aaaa313131ManterFALSO2TenenteCom Exercito 869353363832180805250Com Exercito869353363832180805250
18Marcão Macarrão52247448439803086852247448439803086831 Horas 35 Minutos 24 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363807010852, 869353363815411757, 869353363815411760, 869887176073175050, 869353363609899038aaaa313131ManterSobeAspirante
19! ?HinataQTKiller愛☪☁78673162462402970778673162462402970731 Horas 17 Minutos 19 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073067, 869353363635073068, 869353363668598801, 869353363677020212, 869353363677020214, 869353363769290771, 869353363794444395, 869353363794444397, 869353363807010852, 869353363807010853, 869353363815411757, 869353363815411761, 870079612863012956, 869353363609899038aaaa313131ManterFALSO2Tenente
20! ⛩Kawai40902998360496538640902998360496538630 Horas 41 Minutos 29 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363807010852, 869353363815411754, 869353363823816716, 869353363609899038aaaa303030ManterFALSOCapitao Tenente
21! EXA Tobirama S279838415363597935479838415363597935430 Horas 30 Minutos 6 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073067, 869353363635073068, 869353363752517672, 869353363752517679, 869353363769290763, 869353363769290764, 869353363769290770, 869353363769290771, 869353363781853250, 869353363781853251, 869353363781853252, 869353363794444390, 869353363794444395, 869353363807010852, 869353363807010853, 869353363815411757, 869353363823816720, 869353363832180806, 869957469038870638, 870079612863012956, 870309889619152906, 870320793165385728, 870330472213921883, 870486899452706816, 869353363609899038aaaa303030ManterFALSOMajor
22! ʟᴜᴄɪғᴇʀ ᴀɪɴᴅᴀ s249782404249812993049782404249812993030 Horas 26 Minutos 10 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363668598801, 869353363677020210, 869353363677020214, 869353363794444389, 869353363807010852, 869353363815411754, 869353363832180799, 869353764727947324, 870079612863012956, 870486899452706816, 869353363609899038aaaa303030ManterFALSOGen Divisao
23kizzyᵇᶻʸ49609053651258573849609053651258573830 Horas 19 Minutos 9 Segundos869353363609899039, 869353363609899040, 869353363609899042, 869353363609899044, 869353363635073066, 869353363769290770, 869353363781853249, 869353363781853250, 869353363781853252, 869353363807010852, 869353363815411754, 869353363823816717, 869353764727947324, 870079612863012956, 870309889619152906, 870320793165385728, 870486899452706816, 869353363609899038aaaa303030ManterFALSOCapitao de Corveta
24Mobzera36120529255976140936120529255976140929 Horas 59 Minutos 52 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073067, 869353363635073068, 869353363781853250, 869353363807010852, 869353363815411757, 869353363815411760, 870718681196413018, 869353363609899038aaaa292929RebaixarSobeAspirante
25[£Hyouka]46284793379710567146284793379710567129 Horas 4 Minutos 39 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363677020214, 869353363769290771, 869353363794444390, 869353363807010852, 869353363815411754, 869353363815411761, 869353363832180800, 869353363609899038aaaa292929RebaixarFALSO2Tenente
26Alves66702445299053365266702445299053365228 Horas 41 Minutos 21 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073066, 869353363635073067, 869353363677020212, 869353363781853250, 869353363807010852, 869353363815411757, 869353363815411761, 870309889619152906, 869353363609899038aaaa282828RebaixarFALSO2Tenente
27! Tsu፝֟፟no望?79731851235583594479731851235583594428 Horas 9 Minutos 8 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073066, 869353363635073067, 869353363635073068, 869353363647651880, 869353363668598799, 869353363668598801, 869353363677020210, 869353363677020212, 869353363677020214, 869353363677020216, 869353363697983495, 869353363697983496, 869353363752517675, 869353363794444390, 869353363794444396, 869353363794444397, 869353363807010852, 869353363815411758, 869353363844780128, 869353363874131973, 869353363886710784, 869353363609899038aaaa282828RebaixarFALSO 
28é ? ????$ ?57414442012403302457414442012403302428 Horas 7 Minutos 17 Segundos869353363609899039, 869353363609899040, 869353363677020212, 869353363807010852, 869353363815411753, 869353363823816716, 869353363832180800, 869353764727947324, 869887176073175050, 870486899452706816, 869353363609899038aaaa282828RebaixarFALSOCapitao Tenente
Sheet1
Cell Formulas
RangeFormula
K3K3=G3+I3*2+J3/3
M3:M28M3=IF(L3>=30,"Manter","Rebaixar")
N3:N28N3=IF(O3="aspirante",IF(L3>=T3,"Sobe",IF(O3="2Tenente",IF(L3>=T3,"sobe"))))
O3:O28O3=IFERROR(INDEX(R$3:R$17,AGGREGATE(15,6,(ROW(R$3:R$17)-ROW(R$3)+1)/ISNUMBER(SEARCH(S$3:S$17,E3)),1)),"")
R3:R17R3=LEFT(P3,SEARCH(8,P3)-2)
S3:S17S3=RIGHT(P3,18)
T3:T17T3=INT(Q3)
K4:K28K4=(G4)+(I4*2)+(J4/3)
L4:L28L4=INT(K4)
B3:B28B3=RIGHT(A3,18)
G3:G28G3=LEFT(C3,3)


Porem como pode ver existem alguns aspirantes dando falso quando sao verdadeiros, estou completamente bugado.
 
Upvote 0
Para você entender a fórmula
Em Português
O3 copiada para baixo
=SEERRO(ÍNDICE(R$3:R$17;AGREGAR(15;6;(LIN(R$3:R$17)-LIN(R$3)+1)/ÉNÚM(LOCALIZAR(S$3:S$17;E3));1));"")

A parte mais complicada é a função AGREGAR
Dá uma olhada no Help sobre esta função, ela é muito útil
Tem vários parâmetros, lá vai:
15 --> pegue o menor valor
6 ---> ignore valores de erro

Esta parte (LIN(R$3:R$17)-LIN(R$3)+1) gera um array vertical (conjunto de valores) correspondentes às 15 linhas existentes em R3:R17 , ou seja
{1; 2; 3; ....;14;15}

Este array é dividido por um outro array de mesmo tamanho produzido pela condição
ÉNÚM(LOCALIZAR(S$3:S$17;E3))
que produz um monte de VERDADEIROS ou FALSOS (Verdadeiro quando o valor em R3:R17 é encontrado na célula E3; Falso, em caso contrário)

A divisão dos 2 arrays produz um número de linha (quando a condição acima é Verdadeira) ou um erro #DIV/0! (quando a condição é Falsa)

O último parâmetro de AGREGAR é 1 para que a função retorne o menor (smallest) de todos os valores, ignorando erros (note o 6 = ignore erros)

Finalmente, a função ÍNDICE usa este valor produzido pelo AGREGAR para pegar o Cargo da linha correspondente.

Espero ter sido claro. A fórmula é meio enroladinha, mas dá pra entender :)

Para ver, passo a passo, o que a fórmula faz, selecione O3 e vá para
Fórmulas > Avaliar Fórmula

Boa sorte!

M.
 
Last edited:
Upvote 0
Melhor eu fazer outro post para essa pergunta? \/ ou tudo bem continuar aqui? Envolve a mesma planilha.
E uma pergunta rapida. Eu vou agora fazer um "se" para todos os cargos no local do "sobe e desce(N)" é so eu fazer um "se" grande
por exemplo:
=SE(O3="aspirante";SE(L3>=T3;"Sobe";SE(O3="2Tenente";SE(L3>=T3;"sobe"))))< se corresponde ao aspirante ok, se nao continuar checando pelo proximo na lista ate achar o verdadeiro e preencher com a condição certa. Eis o problema. (Claro so fiz ate o 2 tenente porque estava testando)

Tempo staff teste.xlsx
ABCDEFGHIJKLMNOPQRST
2UsuárioIdTempoAçõesCargosTempo Mov FAbrir.MovHorasTotal InteiroChecagemSobe ou Desce?CargoMetasHoras Metas
3?ᵛᵘˡᵍᵒ ʀᴀʏ?73258744857126504773258744857126504745 Horas 13 Minutos 43 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363677020214, 869353363769290771, 869353363807010852, 869353363815411754, 869353363815411756, 869353363815411760, 870079612863012956, 870330472213921883, 869353363609899038aaaa451247,729RebaixarFALSOAspiranteAspirante 86935336381541176030Aspirante86935336381541176030
4ˡᵉᵛⁱ ღ75045367091062389575045367091062389541 Horas 32 Minutos 24 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363668598801, 869353363807010852, 869353363815411754, 869353363823816719, 869353764727947324, 869353363609899038aaaa414141ManterFALSOCapitao de Mar e Guerra2Tenente 869353363815411761352Tenente86935336381541176135
5??????49563064139684250849563064139684250838 Horas 31 Minutos 43 Segundos869353363609899039, 869353363668598801, 869353363677020210, 869353363677020212, 869353363677020215, 869353363752517681, 869353363769290771, 869353363781853249, 869353363781853251, 869353363781853252, 869353363794444395, 869353363807010852, 869353363807010854, 869353363815411757, 869353363823816718, 870486899452706816, 869353363609899038aaaa383838ManterFALSOCapitao de Fragata1Tenente 869353363823816714401Tenente86935336382381671440
6୨?ᵇᵈᶜ Zøe S2 ᵐᵃᵍⁱᶜ54864651940685434054864651940685434037 Horas 42 Minutos 24 Segundos869353363609899039, 869353363609899040, 869353363635073073, 869353363668598804, 869353363677020212, 869353363677020214, 869353363677020217, 869353363752517681, 869353363769290764, 869353363769290765, 869353363769290769, 869353363769290770, 869353363781853247, 869353363781853249, 869353363781853251, 869353363781853252, 869353363794444390, 869353363794444395, 869353363794444396, 869353363794444397, 869353363807010852, 869353363815411754, 869353363823816721, 869353764727947324, 870079612863012956, 870309889619152906, 870486899452706816, 869353363609899038aaaa373737ManterFALSOTenente CoronelCapitao 86935336382381671545Capitao86935336382381671545
7?ℎ?? ?? ???? s272617688712622905372617688712622905336 Horas 32 Minutos 50 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073067, 869353363635073068, 869353363677020214, 869353363697983495, 869353363769290763, 869353363769290764, 869353363769290770, 869353363769290771, 869353363781853247, 869353363781853249, 869353363781853250, 869353363794444390, 869353363807010852, 869353363815411757, 869353363823816721, 870309889619152906, 870486899452706816, 869353363609899038aaaa363636ManterFALSOTenente CoronelCapitao Tenente 86935336382381671650Capitao Tenente86935336382381671650
8! astrx Dark痛 s269277872449978371269277872449978371236 Horas 24 Minutos 1 Segundos869353363609899039, 869353363609899040, 869353363609899042, 869353363635073066, 869353363635073073, 869353363668598799, 869353363677020210, 869353363677020212, 869353363677020214, 869353363677020215, 869353363731533895, 869353363769290770, 869353363781853249, 869353363781853250, 869353363781853251, 869353363781853252, 869353363794444389, 869353363794444390, 869353363794444395, 869353363794444396, 869353363794444397, 869353363807010852, 869353363807010853, 869353363815411754, 869353363832180801, 869353363844780126, 869353764727947324, 869957469038870638, 870030413609975880, 870079612863012956, 870309889619152906, 869353363609899038aaaa363636ManterFALSOGen ExercitoCapitao de Corveta 86935336382381671755Capitao de Corveta86935336382381671755
9? Frostzin ?☪☁61593306425366939961593306425366939936 Horas 19 Minutos 26 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363769290762, 869353363769290771, 869353363781853250, 869353363807010852, 869353363815411755, 869353363815411757, 869353363823816717, 869353363844780131, 869353764727947324, 869928452046864495, 870320793165385728, 870326462220234783, 870330472213921883, 870486899452706816, 869353363609899038aaaa363636ManterFALSOCapitao de CorvetaCapitao de Fragata 86935336382381671860Capitao de Fragata86935336382381671860
10MarceloXD270932246240855772365032246240855772365036 Horas 17 Minutos 27 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073067, 869353363635073068, 869353363656020029, 869353363668598799, 869353363668598801, 869353363677020210, 869353363677020214, 869353363697983495, 869353363697983496, 869353363752517679, 869353363769290770, 869353363769290771, 869353363781853247, 869353363781853249, 869353363781853250, 869353363781853251, 869353363794444389, 869353363794444390, 869353363794444395, 869353363794444396, 869353363794444397, 869353363807010852, 869353363815411758, 869353363832180805, 869353363844780128, 869353363861536791, 869353764727947324, 870030413609975880, 870309889619152906, 870330472213921883, 870718681196413018, 869353363609899038aaaa363636ManterFALSOCom ExercitoCapitao de Mar e Guerra 86935336382381671960Capitao de Mar e Guerra86935336382381671960
11☹S U M I D A☹81631493487381712581631493487381712535 Horas 41 Minutos 30 Segundos869353363609899039, 869353363609899040, 869353363635073067, 869353363647651883, 869353363647651889, 869353363668598798, 869353363668598804, 869353363677020212, 869353363677020214, 869353363677020217, 869353363807010852, 869353363815411754, 869353363815411760, 870079612863012956, 869353363609899038aaaa353535ManterFALSOAspiranteMajor 86935336382381672065Major86935336382381672065
12?????ᵇᶻʸ76675532922342609976675532922342609933 Horas 51 Minutos 38 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363677020214, 869353363781853252, 869353363794444390, 869353363807010852, 869353363815411754, 869353363823816717, 869353363609899038aaaa333333ManterFALSOCapitao de CorvetaTenente Coronel 86935336382381672175Tenente Coronel86935336382381672175
13krixi45148225210338509945148225210338509933 Horas 34 Minutos 41 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363668598801, 869353363677020210, 869353363677020214, 869353363677020217, 869353363697983495, 869353363794444393, 869353363807010852, 869353363807010853, 869353363815411754, 869353363815411759, 869353363832180801, 869353764727947324, 870320793165385728, 869353363609899038aaaa333333ManterFALSOGen ExercitoCoronel 86935336382381672280Coronel86935336382381672280
14! Sebastian☁67593194899190580467593194899190580433 Horas 24 Minutos 26 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363677020210, 869353363677020214, 869353363731533899, 869353363731533900, 869353363781853252, 869353363807010852, 869353363807010853, 869353363815411754, 869353363832180799, 869353363844780126, 869353363861536791, 869353764727947324, 869353363609899038aaaa333333ManterFALSOGen DivisaoGen Brigada 869353363832180797125Gen Brigada869353363832180797125
15! Srta.Sasori 痛☪77264599372804918477264599372804918433 Horas 9 Minutos 4 Segundos869353363609899039, 869353363609899040, 869353363668598799, 869353363668598801, 869353363677020210, 869353363677020212, 869353363677020217, 869353363807010852, 869353363815411754, 869353363823816720, 869353363609899038aaaa333333ManterFALSOMajorGen Divisao 869353363832180799150Gen Divisao869353363832180799150
16! Doutoraa s2 ⋆。ʚଓ ?54087127171032679454087127171032679432 Horas 34 Minutos 57 Segundos869353363609899039, 869353363609899040, 869353363609899042, 869353363609899044, 869353363635073066, 869353363635073067, 869353363635073068, 869353363635073072, 869353363647651886, 869353363668598798, 869353363668598799, 869353363668598801, 869353363677020210, 869353363677020212, 869353363677020214, 869353363677020217, 869353363731533894, 869353363752517675, 869353363781853251, 869353363794444389, 869353363794444390, 869353363794444393, 869353363794444395, 869353363794444396, 869353363794444397, 869353363807010852, 869353363807010853, 869353363815411754, 869353363815411759, 869353363874131971, 869353363609899038aaaa323232ManterFALSO Gen Exercito 869353363832180801200Gen Exercito869353363832180801200
17???66512464192418613366512464192418613331 Horas 50 Minutos 15 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363769290770, 869353363769290771, 869353363807010852, 869353363815411754, 869353363815411761, 869957469038870638, 870079612863012956, 870309889619152906, 870320793165385728, 870486899452706816, 869353363609899038aaaa313131ManterFALSO2TenenteCom Exercito 869353363832180805250Com Exercito869353363832180805250
18Marcão Macarrão52247448439803086852247448439803086831 Horas 35 Minutos 24 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363807010852, 869353363815411757, 869353363815411760, 869887176073175050, 869353363609899038aaaa313131ManterSobeAspirante
19! ?HinataQTKiller愛☪☁78673162462402970778673162462402970731 Horas 17 Minutos 19 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073067, 869353363635073068, 869353363668598801, 869353363677020212, 869353363677020214, 869353363769290771, 869353363794444395, 869353363794444397, 869353363807010852, 869353363807010853, 869353363815411757, 869353363815411761, 870079612863012956, 869353363609899038aaaa313131ManterFALSO2Tenente
20! ⛩Kawai40902998360496538640902998360496538630 Horas 41 Minutos 29 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363807010852, 869353363815411754, 869353363823816716, 869353363609899038aaaa303030ManterFALSOCapitao Tenente
21! EXA Tobirama S279838415363597935479838415363597935430 Horas 30 Minutos 6 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073067, 869353363635073068, 869353363752517672, 869353363752517679, 869353363769290763, 869353363769290764, 869353363769290770, 869353363769290771, 869353363781853250, 869353363781853251, 869353363781853252, 869353363794444390, 869353363794444395, 869353363807010852, 869353363807010853, 869353363815411757, 869353363823816720, 869353363832180806, 869957469038870638, 870079612863012956, 870309889619152906, 870320793165385728, 870330472213921883, 870486899452706816, 869353363609899038aaaa303030ManterFALSOMajor
22! ʟᴜᴄɪғᴇʀ ᴀɪɴᴅᴀ s249782404249812993049782404249812993030 Horas 26 Minutos 10 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363668598801, 869353363677020210, 869353363677020214, 869353363794444389, 869353363807010852, 869353363815411754, 869353363832180799, 869353764727947324, 870079612863012956, 870486899452706816, 869353363609899038aaaa303030ManterFALSOGen Divisao
23kizzyᵇᶻʸ49609053651258573849609053651258573830 Horas 19 Minutos 9 Segundos869353363609899039, 869353363609899040, 869353363609899042, 869353363609899044, 869353363635073066, 869353363769290770, 869353363781853249, 869353363781853250, 869353363781853252, 869353363807010852, 869353363815411754, 869353363823816717, 869353764727947324, 870079612863012956, 870309889619152906, 870320793165385728, 870486899452706816, 869353363609899038aaaa303030ManterFALSOCapitao de Corveta
24Mobzera36120529255976140936120529255976140929 Horas 59 Minutos 52 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073067, 869353363635073068, 869353363781853250, 869353363807010852, 869353363815411757, 869353363815411760, 870718681196413018, 869353363609899038aaaa292929RebaixarSobeAspirante
25[£Hyouka]46284793379710567146284793379710567129 Horas 4 Minutos 39 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363677020214, 869353363769290771, 869353363794444390, 869353363807010852, 869353363815411754, 869353363815411761, 869353363832180800, 869353363609899038aaaa292929RebaixarFALSO2Tenente
26Alves66702445299053365266702445299053365228 Horas 41 Minutos 21 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073066, 869353363635073067, 869353363677020212, 869353363781853250, 869353363807010852, 869353363815411757, 869353363815411761, 870309889619152906, 869353363609899038aaaa282828RebaixarFALSO2Tenente
27! Tsu፝֟፟no望?79731851235583594479731851235583594428 Horas 9 Minutos 8 Segundos869353363609899039, 869353363609899040, 869353363609899044, 869353363635073066, 869353363635073067, 869353363635073068, 869353363647651880, 869353363668598799, 869353363668598801, 869353363677020210, 869353363677020212, 869353363677020214, 869353363677020216, 869353363697983495, 869353363697983496, 869353363752517675, 869353363794444390, 869353363794444396, 869353363794444397, 869353363807010852, 869353363815411758, 869353363844780128, 869353363874131973, 869353363886710784, 869353363609899038aaaa282828RebaixarFALSO 
28é ? ????$ ?57414442012403302457414442012403302428 Horas 7 Minutos 17 Segundos869353363609899039, 869353363609899040, 869353363677020212, 869353363807010852, 869353363815411753, 869353363823816716, 869353363832180800, 869353764727947324, 869887176073175050, 870486899452706816, 869353363609899038aaaa282828RebaixarFALSOCapitao Tenente
Sheet1
Cell Formulas
RangeFormula
K3K3=G3+I3*2+J3/3
M3:M28M3=IF(L3>=30,"Manter","Rebaixar")
N3:N28N3=IF(O3="aspirante",IF(L3>=T3,"Sobe",IF(O3="2Tenente",IF(L3>=T3,"sobe"))))
O3:O28O3=IFERROR(INDEX(R$3:R$17,AGGREGATE(15,6,(ROW(R$3:R$17)-ROW(R$3)+1)/ISNUMBER(SEARCH(S$3:S$17,E3)),1)),"")
R3:R17R3=LEFT(P3,SEARCH(8,P3)-2)
S3:S17S3=RIGHT(P3,18)
T3:T17T3=INT(Q3)
K4:K28K4=(G4)+(I4*2)+(J4/3)
L4:L28L4=INT(K4)
B3:B28B3=RIGHT(A3,18)
G3:G28G3=LEFT(C3,3)


Porem como pode ver existem alguns aspirantes dando falso quando sao verdadeiros, estou completamente bugado.
Eu achei o primeiro erro é que quando ele passa para a proxima ele esta trocando os valores de comparação entao tentei fixa-los
usando dessa forma:
=SE(O3="Aspirante";SE(L3>=T$3:T$17;"Sobe";SE(O3="2Tenente";SE(L3>=T$3:T$17;"sobe")))) porem ainda possuo alguns erros
Tempo staff teste.xlsx
LMNOPQRST
2Total InteiroChecagemSobe ou Desce?CargoMetasHoras Metas
330ManterSobeAspiranteAspirante 86935336381541176030Aspirante86935336381541176030
441ManterFALSOCapitao de Mar e Guerra2Tenente 869353363815411761352Tenente86935336381541176135
538ManterFALSOCapitao de Fragata1Tenente 869353363823816714401Tenente86935336382381671440
637ManterFALSOTenente CoronelCapitao 86935336382381671545Capitao86935336382381671545
736ManterFALSOTenente CoronelCapitao Tenente 86935336382381671650Capitao Tenente86935336382381671650
836ManterFALSOGen ExercitoCapitao de Corveta 86935336382381671755Capitao de Corveta86935336382381671755
936ManterFALSOCapitao de CorvetaCapitao de Fragata 86935336382381671860Capitao de Fragata86935336382381671860
1036ManterFALSOCom ExercitoCapitao de Mar e Guerra 86935336382381671960Capitao de Mar e Guerra86935336382381671960
1130ManterFALSOAspiranteMajor 86935336382381672065Major86935336382381672065
1233ManterFALSOCapitao de CorvetaTenente Coronel 86935336382381672175Tenente Coronel86935336382381672175
1333ManterFALSOGen ExercitoCoronel 86935336382381672280Coronel86935336382381672280
1433ManterFALSOGen DivisaoGen Brigada 869353363832180797125Gen Brigada869353363832180797125
1533ManterFALSOMajorGen Divisao 869353363832180799150Gen Divisao869353363832180799150
1632ManterFALSO Gen Exercito 869353363832180801200Gen Exercito869353363832180801200
1735ManterFALSO2TenenteCom Exercito 869353363832180805250Com Exercito869353363832180805250
1831Manter#VALOR!Aspirante
1931ManterFALSO2Tenente
2030ManterFALSOCapitao Tenente
2130ManterFALSOMajor
2230ManterFALSOGen Divisao
2330ManterFALSOCapitao de Corveta
2429Rebaixar#VALOR!Aspirante
2529RebaixarFALSO2Tenente
2628RebaixarFALSO2Tenente
2728RebaixarFALSO 
2828RebaixarFALSOCapitao Tenente
2928RebaixarFALSOGen Brigada
3028RebaixarFALSOGen Divisao
3127RebaixarFALSOCapitao de Mar e Guerra
3227RebaixarFALSO2Tenente
3327RebaixarFALSOCapitao de Corveta
3427RebaixarFALSOCapitao
3527RebaixarFALSOCapitao de Corveta
3627RebaixarFALSOGen Exercito
3727RebaixarFALSOCapitao
3826RebaixarFALSOGen Exercito
3925Rebaixar#VALOR!Aspirante
Sheet1
Cell Formulas
RangeFormula
M3:M39M3=IF(L3>=30,"Manter","Rebaixar")
N3:N39N3=IF(O3="Aspirante",IF(L3>=T$3:T$17,"Sobe",IF(O3="2Tenente",IF(L3>=T$3:T$17,"sobe"))))
O3:O39O3=IFERROR(INDEX(R$3:R$17,AGGREGATE(15,6,(ROW(R$3:R$17)-ROW(R$3)+1)/ISNUMBER(SEARCH(S$3:S$17,E3)),1)),"")
R3:R17R3=LEFT(P3,SEARCH(8,P3)-2)
S3:S17S3=RIGHT(P3,18)
T3:T17T3=INT(Q3)
L18:L39,L12:L16,L4:L10L4=INT(K4)
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,205
Members
452,618
Latest member
Tam84

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top