Index&Match wrong result

lu1zuk

New Member
Joined
Jul 30, 2021
Messages
33
Office Version
  1. 2019
Platform
  1. Windows
sobe e desce teste.xlsx
PQRSTU
2Cargo Horas metasPontos
3Comandante de exercitoAspirante 8693533638154117603010Aspirante869353363815411760
4Capitao tenente2Tenente 86935336381541176135202 Tenente869353363815411761
5Major1Tenente 86935336382381671440301 Tenente869353363823816714
6Capitao tenenteSoldado 9012019627652792324510Soldado901201962765279232
7Comandante de exercitoTaifero 9012019595566162125010Taifero901201959556616212
8SoldadoCabo 9012019559034061715510Cabo901201955903406171
91 TenenteCapitao 8693533638238167156010Capitao869353363823816715
10Comandante de exercitoCapitao Tenente 8693533638238167166510Capitao tenente869353363823816716
11General de DivisaoCapitao de Corveta 8693533638238167177010Capitao de Corveta869353363823816717
12TaiferoCapitao de Fragata 8693533638238167187510Capitao de fragata869353363823816718
132 TenenteCapitao de Mar e Guerra 8693533638238167198010Capitao de Mar e Guerra869353363823816719
14General de DivisaoMajor 8693533638238167208010Major869353363823816720
151 TenenteSub Tenente 9012019365550695108510Sub Tenente901201936555069510
162 TenenteTenente Coronel 8693533638238167219510Tenente Coronel869353363823816721
17Tenente BrigadeiroSub Oficial 9012019296009011209510Sub Oficial901201929600901120
18CapitaoCoronel 86935336382381672210010Coronel869353363823816722
192 TenenteGuarda Marinha 90120192631256684510010Guarda Marinha901201926312566845
20General de ExercitoGeneral de Brigada 86935336383218079713010General de Brigada869353363832180797
21MajorGen Divisao 86935336383218079915010General de Divisao869353363832180799
22MajorGen Exercito 86935336383218080120010General de Exercito869353363832180801
23AspiranteCom Exercito 86935336383218080525010Comandante de exercito869353363832180805
24General de ExercitoContra Almirante 86935336387413197150010Contra Almirante869353363874131971
25MajorTenente Brigadeiro 86935336387413197250010Tenente Brigadeiro869353363874131972
26Aspirante
27Aspirante80
Planilha1
Cell Formulas
RangeFormula
T13:T14T13=LEFT(Q13,FIND(8,Q13)-2)
U3:U25U3=RIGHT(Q3,18)
P3P3=IFERROR(@INDEX(T$3:T$25,AGGREGATE(15,6,(ROW(T$3:T$25)-ROW(T$3)+1)/ISNUMBER(SEARCH(U$3:U$25,E3)),1)),"")
P4:P27P4=IFERROR(INDEX(T$3:T$25,AGGREGATE(15,6,(ROW(T$3:T$25)-ROW(T$3)+1)/ISNUMBER(SEARCH(U$3:U$25,E4)),1)),"")
Q27Q27=INDEX(R$3:R$25,MATCH(P3,T$3:T$25))


Hi, so i'm tryind to use index and match(my language is PT_BR) but i know the names for it in the EN_US soo, dont worry.
The question is, why in the Q27, my index/match returns the wrong vallue?
The idea is, check P3 to T3:T25, and match with R3:R25, the correct anwser would be 250(R23) but it is showing 80(R13), i don't know why and how to make it does it correctly. Help

edit (the part about iferror, its a thing from the main excel sheet, don't worry, nothing wrong there)
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
You haven't specified the match type, so it's doing an approximate match.
Try
Excel Formula:
=INDEX(R$3:R$25,MATCH(P3,T$3:T$25,0))
 
Upvote 0

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

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