Index match funcion ignoring blank cells

valmir

Active Member
Joined
Feb 10, 2021
Messages
267
Office Version
  1. 365
Platform
  1. Windows
Hi everyone!
I am using these formulas to rank names and the problem I am having is that they are returning blank cells:
=COUNTIF($BZ1:$BZ608;"<="&$BZ1:$BZ608)

=IFERROR(INDEX($BY$1:$CA$608;MATCH(BX1;$CJ$1:$CJ$608;0);1);"")
=IFERROR(INDEX($BZ$1:$BZ$608;MATCH(BX1;$CJ$1:$CJ$608;0);2);"")
=IFERROR(INDEX($BY$1:$BY$608;MATCH(BX1;$CJ$1:$CJ$608;0);3);"")

I have gone through all similar threads and I could not get anything to work
Please help!

Stats 2016.xlsx
CK
38
STATS2
 
Edited post:-

This should do it, The references to CG1 should be changed to the top left cell with the working SORT formula for the original question.

Excel Formula:
=INDEX(CG1#;SEQUENCE(ROWS(CG1#));{1;3;2})
 
Last edited:
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
=INDEX(CG1#;SEQUENCE(ROWS(CG1#));{1;3;2})
Columns CL to CN should look like this:
Stats 2016.xlsx
BXBYBZCACBCCCDCECFCGCHCICJCKCLCMCNCO
114ABBorra  33 PETAbdulAntónio Nzayinawo61PLSAbel LukangoAbel130
224ABCadiata  21  MAIAbegáManuel Pedro Pacavira77DESAbelardo Gomes SocolaBelito Socola130
334ABCamposAntónio Campos Calei124 73PLSAbelAbel Lukango80DESAbengea Mambani AliAli39
444ABChara ?  21 INTAbianda 1Yann Junior Abianda 198DESAdão Francisco Congo ZalataDadão Bile130
554ABDany RibeiroDaniel Mendes Ribeiro62618KABAbianda 2Yann Junior Abianda 2123PRIAdão Joaquim Bango CabaçaTony Cabaça109
664ABDário AmorimDário Félix Amorim  3 LIBAdilson KivãoAdilson Ernesto Kivão126CAAAdelino Wima Calunhi AntónioManinho114
774ABDudú JackDomingos Monteiro Jack18474CAAAdilson ManuelAdilson Joaquim Manuel157SAGAdérito Yandelela Chissoca 1Lelas 1128
884ABEdgardEdgard Arnaud Afane 18  ACAAdó PenaAntónio Joaquim Barros Pena160MAIAdérito Yandelela Chissoca 2Lelas 2139
994ABEdi  1  BENAdy PauloAgostinho Domingos Paulo161INTAdilson Cipriano da CruzNeblú130
10104ABGeúdaGelson L. da S. Teles 87 PLSAgoyaAugusto Makanja216LIBAdilson Ernesto KivãoAdilson Kivão193
11114ABGuiManuel Porfírio Pompílio de Matos 6  ACAAiresLudgero Aires Cachicote da Rocha224CAAAdilson Joaquim ManuelAdilson Manuel335
12124ABHippiDomingos Paulo João José115175MAIAlexAlexandre G. Mário Miguel231SAGAdolfo da Silva Catemba 1Denilson 1130
13134ABIvanilson   5 PORAlexandreAlexandre Domingos Cristóvão M'Futila238PORAdolfo da Silva Catemba 2Denilson 2130
14144ABJairzinhoJair Sebastião de Castro 85 DESAliAbengea Mambani Ali243PROAdriano Belmiro Duarte NicolauYano230
15154ABJesse   3 PROAlmeidaJosé Xavier Fernando247DESAdriano da Costa Mateus AlbertoKumaca130
16164ABKandúDéo Kanda314927KABAmarildo 1Amarildo Eugénio Augusto Miranda 1268ASAAfonso Sebastião CabungulaFofó118
17174ABKizombéAlberto dos Santos Domingos 161 ASAAmarildo 2Amarildo Eugénio Augusto Miranda 2279INTAgostinho Cristóvão PaciênciaMabululu23
18184ABLara ?   1 BENAmaroAmândio Manuel Filipe da Costa286BENAgostinho Domingos PauloAdy Paulo130
19194ABLeloJosé Lelo Sevo Barros114 76BENAmido BaldéAmido Baldé294KABAires Emilson Gonzaga ZecaEmilson267
20204ABManucho MuquengueMariano Simão Muquengue2151146PROAnastácio 1Anastácio Manuel da Costa 1329MAIAlbano Camuele SumanoPai da Bola341
21214ABMatambaMatamba Paulino Sousa127 77ASAAnastácio 2Anastácio Manuel da Costa 2338PRIAlbert Milambo-MutambaMilambo350
22224ABPaitoManuel Gaspar Fernandes 15 INTAntónioTomás Chilombo Cambuque Sapalo398PRIAlberto Álvaro PacaFissy325
23234ABPaluchoPaulo Pereira da Silva161378SAGAry CalveteHelmut Ariadne Figueiredo Calvete4024ABAlberto dos Santos DomingosKizombé402
24244ABPilolaJosé Olívio Andrade Pereira311 28PETAry OliveiraAriclene Assunção Oliveira418SAGAlentua Tangala RolliRolli271
25254ABPrazeresPrazeres Chijica M. Dala 31 PRIAry PapelManuel David Afonso423PORAlexandre Domingos Cristóvão M'FutilaAlexandre408
26264ABRochanaPanda Marcelo José 23  PLSAtunakoEboue Manzambi Atunako432MAIAlexandre G. Mário MiguelAlex397
27274ABRui ?  82 PROAvex 1Avelino Eduardo António Craque 1437DESAlfredo Cassinda CalungangaChiwe130
28284ABTony AugustoAntónio Pedro Augusto 7  DESAvex 2Avelino Eduardo António Craque 2461LIBAlfredo Kulembe RibeiroFredy46
29294ABVanderVander Ramos Pinto 19  SAGAyalaMário Álvaro Agostinho479ASAAlmiro Edson Daniel LoboMiro454
30304ABXavierXavier Eduardo Vicente Vunge123 79PETAzulãoTiago Lima Leal489BENAmândio Manuel Filipe da CostaAmaro468
31314AB      ASABabacarBabacar Fall107KABAmarildo Eugénio Augusto Miranda 1Amarildo 1130
32324AB      BENBabyValdemar Denso António107ASAAmarildo Eugénio Augusto Miranda 2Amarildo 2130
33334AB      PLSBadrickBadrick Paulo Madadi107BENAmido BaldéAmido Baldé130
34344AB      PETBalacaiEvaristo Maurício Pascoal107PROAnastácio Manuel da Costa 1Anastácio 1130
35354AB      PLSBarrezóJoveth Adão107ASAAnastácio Manuel da Costa 2Anastácio 2130
36364AB      INTBartoloBartolomeu Nguia Baptista107ASAAnderson Benjamim MonteiroGuelor130
37374AB      INTBebé 1Odimir Abreu Gabriel Breganha 1107BENAndré Augusto Miranda KongoToy130
38384AB      ASABebé 2Odimir Abreu Gabriel Breganha 2107INTAnthony Kevin Mfede JuniorMfede130
STATS2
Cell Formulas
RangeFormula
BZ1BZ1=INDIRECT("4AB!B5")
CA1CA1=INDIRECT("4AB!C5")
CB1CB1=INDIRECT("4AB!E5")
CC1CC1=INDIRECT("4AB!F5")
CD1CD1=INDIRECT("4AB!G5")
CE1:CE38CE1=IF($CB1=0,"",IF($CB1>0,RANK(CB1,$CB$1:$CB$608)+COUNTIF($CB$1:CB1,CB1)-1))
BZ2BZ2=INDIRECT("4AB!B6")
CA2CA2=INDIRECT("4AB!C6")
CB2CB2=INDIRECT("4AB!E6")
CC2CC2=INDIRECT("4AB!F6")
CD2CD2=INDIRECT("4AB!G6")
BZ3BZ3=INDIRECT("4AB!B7")
CA3CA3=INDIRECT("4AB!C7")
CB3CB3=INDIRECT("4AB!E7")
CC3CC3=INDIRECT("4AB!F7")
CD3CD3=INDIRECT("4AB!G7")
BZ4BZ4=INDIRECT("4AB!B8")
CA4CA4=INDIRECT("4AB!C8")
CB4CB4=INDIRECT("4AB!E8")
CC4CC4=INDIRECT("4AB!F8")
CD4CD4=INDIRECT("4AB!G8")
BZ5BZ5=INDIRECT("4AB!B9")
CA5CA5=INDIRECT("4AB!C9")
CB5CB5=INDIRECT("4AB!E9")
CC5CC5=INDIRECT("4AB!F9")
CD5CD5=INDIRECT("4AB!G9")
BZ6BZ6=INDIRECT("4AB!B10")
CA6CA6=INDIRECT("4AB!C10")
CB6CB6=INDIRECT("4AB!E10")
CC6CC6=INDIRECT("4AB!F10")
CD6CD6=INDIRECT("4AB!G10")
BZ7BZ7=INDIRECT("4AB!B11")
CA7CA7=INDIRECT("4AB!C11")
CB7CB7=INDIRECT("4AB!E11")
CC7CC7=INDIRECT("4AB!F11")
CD7CD7=INDIRECT("4AB!G11")
BZ8BZ8=INDIRECT("4AB!B12")
CA8CA8=INDIRECT("4AB!C12")
CB8CB8=INDIRECT("4AB!E12")
CC8CC8=INDIRECT("4AB!F12")
CD8CD8=INDIRECT("4AB!G12")
BZ9BZ9=INDIRECT("4AB!B13")
CA9CA9=INDIRECT("4AB!C13")
CB9CB9=INDIRECT("4AB!E13")
CC9CC9=INDIRECT("4AB!F13")
CD9CD9=INDIRECT("4AB!G13")
BZ10BZ10=INDIRECT("4AB!B14")
CA10CA10=INDIRECT("4AB!C14")
CB10CB10=INDIRECT("4AB!E14")
CC10CC10=INDIRECT("4AB!F14")
CD10CD10=INDIRECT("4AB!G14")
BZ11BZ11=INDIRECT("4AB!B15")
CA11CA11=INDIRECT("4AB!C15")
CB11CB11=INDIRECT("4AB!E15")
CC11CC11=INDIRECT("4AB!F15")
CD11CD11=INDIRECT("4AB!G15")
BZ12BZ12=INDIRECT("4AB!B16")
CA12CA12=INDIRECT("4AB!C16")
CB12CB12=INDIRECT("4AB!E16")
CC12CC12=INDIRECT("4AB!F16")
CD12CD12=INDIRECT("4AB!G16")
BZ13BZ13=INDIRECT("4AB!B17")
CA13CA13=INDIRECT("4AB!C17")
CB13CB13=INDIRECT("4AB!E17")
CC13CC13=INDIRECT("4AB!F17")
CD13CD13=INDIRECT("4AB!G17")
BZ14BZ14=INDIRECT("4AB!B18")
CA14CA14=INDIRECT("4AB!C18")
CB14CB14=INDIRECT("4AB!E18")
CC14CC14=INDIRECT("4AB!F18")
CD14CD14=INDIRECT("4AB!G18")
BZ15BZ15=INDIRECT("4AB!B19")
CA15CA15=INDIRECT("4AB!C19")
CB15CB15=INDIRECT("4AB!E19")
CC15CC15=INDIRECT("4AB!F19")
CD15CD15=INDIRECT("4AB!G19")
BZ16BZ16=INDIRECT("4AB!B20")
CA16CA16=INDIRECT("4AB!C20")
CB16CB16=INDIRECT("4AB!E20")
CC16CC16=INDIRECT("4AB!F20")
CD16CD16=INDIRECT("4AB!G20")
BZ17BZ17=INDIRECT("4AB!B21")
CA17CA17=INDIRECT("4AB!C21")
CB17CB17=INDIRECT("4AB!E21")
CC17CC17=INDIRECT("4AB!F21")
CD17CD17=INDIRECT("4AB!G21")
BZ18BZ18=INDIRECT("4AB!B22")
CA18CA18=INDIRECT("4AB!C22")
CB18CB18=INDIRECT("4AB!E22")
CC18CC18=INDIRECT("4AB!F22")
CD18CD18=INDIRECT("4AB!G22")
BZ19BZ19=INDIRECT("4AB!B23")
CA19CA19=INDIRECT("4AB!C23")
CB19CB19=INDIRECT("4AB!E23")
CC19CC19=INDIRECT("4AB!F23")
CD19CD19=INDIRECT("4AB!G23")
BZ20BZ20=INDIRECT("4AB!B24")
CA20CA20=INDIRECT("4AB!C24")
CB20CB20=INDIRECT("4AB!E24")
CC20CC20=INDIRECT("4AB!F24")
CD20CD20=INDIRECT("4AB!G24")
BZ21BZ21=INDIRECT("4AB!B25")
CA21CA21=INDIRECT("4AB!C25")
CB21CB21=INDIRECT("4AB!E25")
CC21CC21=INDIRECT("4AB!F25")
CD21CD21=INDIRECT("4AB!G25")
BZ22BZ22=INDIRECT("4AB!B26")
CA22CA22=INDIRECT("4AB!C26")
CB22CB22=INDIRECT("4AB!E26")
CC22CC22=INDIRECT("4AB!F26")
CD22CD22=INDIRECT("4AB!G26")
BZ23BZ23=INDIRECT("4AB!B27")
CA23CA23=INDIRECT("4AB!C27")
CB23CB23=INDIRECT("4AB!E27")
CC23CC23=INDIRECT("4AB!F27")
CD23CD23=INDIRECT("4AB!G27")
BZ24BZ24=INDIRECT("4AB!B28")
CA24CA24=INDIRECT("4AB!C28")
CB24CB24=INDIRECT("4AB!E28")
CC24CC24=INDIRECT("4AB!F28")
CD24CD24=INDIRECT("4AB!G28")
BZ25BZ25=INDIRECT("4AB!B29")
CA25CA25=INDIRECT("4AB!C29")
CB25CB25=INDIRECT("4AB!E29")
CC25CC25=INDIRECT("4AB!F29")
CD25CD25=INDIRECT("4AB!G29")
BZ26BZ26=INDIRECT("4AB!B30")
CA26CA26=INDIRECT("4AB!C30")
CB26CB26=INDIRECT("4AB!E30")
CC26CC26=INDIRECT("4AB!F30")
CD26CD26=INDIRECT("4AB!G30")
BZ27BZ27=INDIRECT("4AB!B31")
CA27CA27=INDIRECT("4AB!C31")
CB27CB27=INDIRECT("4AB!E31")
CC27CC27=INDIRECT("4AB!F31")
CD27CD27=INDIRECT("4AB!G31")
BZ28BZ28=INDIRECT("4AB!B32")
CA28CA28=INDIRECT("4AB!C32")
CB28CB28=INDIRECT("4AB!E32")
CC28CC28=INDIRECT("4AB!F32")
CD28CD28=INDIRECT("4AB!G32")
BZ29BZ29=INDIRECT("4AB!B33")
CA29CA29=INDIRECT("4AB!C33")
CB29CB29=INDIRECT("4AB!E33")
CC29CC29=INDIRECT("4AB!F33")
CD29CD29=INDIRECT("4AB!G33")
BZ30BZ30=INDIRECT("4AB!B34")
CA30CA30=INDIRECT("4AB!C34")
CB30CB30=INDIRECT("4AB!E34")
CC30CC30=INDIRECT("4AB!F34")
CD30CD30=INDIRECT("4AB!G34")
BZ31BZ31=INDIRECT("4AB!B35")
CA31CA31=INDIRECT("4AB!C35")
CB31CB31=INDIRECT("4AB!E35")
CC31CC31=INDIRECT("4AB!F35")
CD31CD31=INDIRECT("4AB!G35")
BZ32BZ32=INDIRECT("4AB!B36")
CA32CA32=INDIRECT("4AB!C36")
CB32CB32=INDIRECT("4AB!E36")
CC32CC32=INDIRECT("4AB!F36")
CD32CD32=INDIRECT("4AB!G36")
BZ33BZ33=INDIRECT("4AB!B37")
CA33CA33=INDIRECT("4AB!C37")
CB33CB33=INDIRECT("4AB!E37")
CC33CC33=INDIRECT("4AB!F37")
CD33CD33=INDIRECT("4AB!G37")
BZ34BZ34=INDIRECT("4AB!B38")
CA34CA34=INDIRECT("4AB!C38")
CB34CB34=INDIRECT("4AB!E38")
CC34CC34=INDIRECT("4AB!F38")
CD34CD34=INDIRECT("4AB!G38")
BZ35BZ35=INDIRECT("4AB!B39")
CA35CA35=INDIRECT("4AB!C39")
CB35CB35=INDIRECT("4AB!E39")
CC35CC35=INDIRECT("4AB!F39")
CD35CD35=INDIRECT("4AB!G39")
BZ36BZ36=INDIRECT("4AB!B40")
CA36CA36=INDIRECT("4AB!C40")
CB36CB36=INDIRECT("4AB!E40")
CC36CC36=INDIRECT("4AB!F40")
CD36CD36=INDIRECT("4AB!G40")
BZ37BZ37=INDIRECT("4AB!B41")
CA37CA37=INDIRECT("4AB!C41")
CB37CB37=INDIRECT("4AB!E41")
CC37CC37=INDIRECT("4AB!F41")
CD37CD37=INDIRECT("4AB!G41")
BZ38BZ38=INDIRECT("4AB!B42")
CA38CA38=INDIRECT("4AB!C42")
CB38CB38=INDIRECT("4AB!E42")
CC38CC38=INDIRECT("4AB!F42")
CD38CD38=INDIRECT("4AB!G42")
CG1:CI478CG1=SORT(FILTER(BY1:CA608,CA1:CA608<>0),2,1)
CJ1:CJ608CJ1=COUNTIF($BZ1:$BZ608,"<="&$BZ1:$BZ608)
CL1:CL38CL1=IFERROR(INDEX($BY$1:$CA$608,MATCH(BX1,$CO$1:$CO$608,0),1),"")
CM1:CM38CM1=IFERROR(INDEX($BY$1:$CA$608,MATCH(BX1,$CO$1:$CO$608,0),3),"")
CN1:CN38CN1=IFERROR(INDEX($BY$1:$CA$608,MATCH(BX1,$CO$1:$CO$608,0),2),"")
CO1:CO608CO1=COUNTIF($CA1:$CA608,"<="&$CA1:$CA608)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
BY1Expression=BZ1=0textNO
BX1Expression=BZ1=0textNO
BZ2:BZ608Expression=CA2=0textNO
BZ1Expression=CA1=0textNO
CA1:CA608Cell Value=0textNO
CI1:CI608Cell Value=0textNO
CH1:CH608Expression=CI1=0textNO
CB1:CD608Cell Value=0textNO


But when I apply your formula to CL1, I am getting this:
Stats 2016.xlsx
BXBYBZCACBCCCDCECFCGCHCICJCKCLCMCNCO
114ABBorra  33 PETAbdulAntónio Nzayinawo61PET130
224ABCadiata  21  MAIAbegáManuel Pedro Pacavira77Manuel Pedro Pacavira130
334ABCamposAntónio Campos Calei124 73PLSAbelAbel Lukango80Abel39
444ABChara ?  21 INTAbianda 1Yann Junior Abianda 198###130
554ABDany RibeiroDaniel Mendes Ribeiro62618KABAbianda 2Yann Junior Abianda 2123###109
664ABDário AmorimDário Félix Amorim  3 LIBAdilson KivãoAdilson Ernesto Kivão126###114
774ABDudú JackDomingos Monteiro Jack18474CAAAdilson ManuelAdilson Joaquim Manuel157###128
884ABEdgardEdgard Arnaud Afane 18  ACAAdó PenaAntónio Joaquim Barros Pena160###139
994ABEdi  1  BENAdy PauloAgostinho Domingos Paulo161###130
10104ABGeúdaGelson L. da S. Teles 87 PLSAgoyaAugusto Makanja216###193
11114ABGuiManuel Porfírio Pompílio de Matos 6  ACAAiresLudgero Aires Cachicote da Rocha224###335
12124ABHippiDomingos Paulo João José115175MAIAlexAlexandre G. Mário Miguel231###130
13134ABIvanilson   5 PORAlexandreAlexandre Domingos Cristóvão M'Futila238###130
14144ABJairzinhoJair Sebastião de Castro 85 DESAliAbengea Mambani Ali243###230
15154ABJesse   3 PROAlmeidaJosé Xavier Fernando247###130
16164ABKandúDéo Kanda314927KABAmarildo 1Amarildo Eugénio Augusto Miranda 1268###118
17174ABKizombéAlberto dos Santos Domingos 161 ASAAmarildo 2Amarildo Eugénio Augusto Miranda 2279###23
18184ABLara ?   1 BENAmaroAmândio Manuel Filipe da Costa286###130
19194ABLeloJosé Lelo Sevo Barros114 76BENAmido BaldéAmido Baldé294###267
20204ABManucho MuquengueMariano Simão Muquengue2151146PROAnastácio 1Anastácio Manuel da Costa 1329###341
21214ABMatambaMatamba Paulino Sousa127 77ASAAnastácio 2Anastácio Manuel da Costa 2338###350
22224ABPaitoManuel Gaspar Fernandes 15 INTAntónioTomás Chilombo Cambuque Sapalo398###325
23234ABPaluchoPaulo Pereira da Silva161378SAGAry CalveteHelmut Ariadne Figueiredo Calvete402###402
24244ABPilolaJosé Olívio Andrade Pereira311 28PETAry OliveiraAriclene Assunção Oliveira418###271
25254ABPrazeresPrazeres Chijica M. Dala 31 PRIAry PapelManuel David Afonso423###408
26264ABRochanaPanda Marcelo José 23  PLSAtunakoEboue Manzambi Atunako432###397
27274ABRui ?  82 PROAvex 1Avelino Eduardo António Craque 1437###130
28284ABTony AugustoAntónio Pedro Augusto 7  DESAvex 2Avelino Eduardo António Craque 2461###46
29294ABVanderVander Ramos Pinto 19  SAGAyalaMário Álvaro Agostinho479###454
30304ABXavierXavier Eduardo Vicente Vunge123 79PETAzulãoTiago Lima Leal489###468
31314AB      ASABabacarBabacar Fall107###130
32324AB      BENBabyValdemar Denso António107###130
33334AB      PLSBadrickBadrick Paulo Madadi107###130
34344AB      PETBalacaiEvaristo Maurício Pascoal107###130
35354AB      PLSBarrezóJoveth Adão107###130
36364AB      INTBartoloBartolomeu Nguia Baptista107###130
37374AB      INTBebé 1Odimir Abreu Gabriel Breganha 1107###130
38384AB      ASABebé 2Odimir Abreu Gabriel Breganha 2107###130
STATS2
Cell Formulas
RangeFormula
BZ1BZ1=INDIRECT("4AB!B5")
CA1CA1=INDIRECT("4AB!C5")
CB1CB1=INDIRECT("4AB!E5")
CC1CC1=INDIRECT("4AB!F5")
CD1CD1=INDIRECT("4AB!G5")
CE1:CE38CE1=IF($CB1=0,"",IF($CB1>0,RANK(CB1,$CB$1:$CB$608)+COUNTIF($CB$1:CB1,CB1)-1))
BZ2BZ2=INDIRECT("4AB!B6")
CA2CA2=INDIRECT("4AB!C6")
CB2CB2=INDIRECT("4AB!E6")
CC2CC2=INDIRECT("4AB!F6")
CD2CD2=INDIRECT("4AB!G6")
BZ3BZ3=INDIRECT("4AB!B7")
CA3CA3=INDIRECT("4AB!C7")
CB3CB3=INDIRECT("4AB!E7")
CC3CC3=INDIRECT("4AB!F7")
CD3CD3=INDIRECT("4AB!G7")
BZ4BZ4=INDIRECT("4AB!B8")
CA4CA4=INDIRECT("4AB!C8")
CB4CB4=INDIRECT("4AB!E8")
CC4CC4=INDIRECT("4AB!F8")
CD4CD4=INDIRECT("4AB!G8")
BZ5BZ5=INDIRECT("4AB!B9")
CA5CA5=INDIRECT("4AB!C9")
CB5CB5=INDIRECT("4AB!E9")
CC5CC5=INDIRECT("4AB!F9")
CD5CD5=INDIRECT("4AB!G9")
BZ6BZ6=INDIRECT("4AB!B10")
CA6CA6=INDIRECT("4AB!C10")
CB6CB6=INDIRECT("4AB!E10")
CC6CC6=INDIRECT("4AB!F10")
CD6CD6=INDIRECT("4AB!G10")
BZ7BZ7=INDIRECT("4AB!B11")
CA7CA7=INDIRECT("4AB!C11")
CB7CB7=INDIRECT("4AB!E11")
CC7CC7=INDIRECT("4AB!F11")
CD7CD7=INDIRECT("4AB!G11")
BZ8BZ8=INDIRECT("4AB!B12")
CA8CA8=INDIRECT("4AB!C12")
CB8CB8=INDIRECT("4AB!E12")
CC8CC8=INDIRECT("4AB!F12")
CD8CD8=INDIRECT("4AB!G12")
BZ9BZ9=INDIRECT("4AB!B13")
CA9CA9=INDIRECT("4AB!C13")
CB9CB9=INDIRECT("4AB!E13")
CC9CC9=INDIRECT("4AB!F13")
CD9CD9=INDIRECT("4AB!G13")
BZ10BZ10=INDIRECT("4AB!B14")
CA10CA10=INDIRECT("4AB!C14")
CB10CB10=INDIRECT("4AB!E14")
CC10CC10=INDIRECT("4AB!F14")
CD10CD10=INDIRECT("4AB!G14")
BZ11BZ11=INDIRECT("4AB!B15")
CA11CA11=INDIRECT("4AB!C15")
CB11CB11=INDIRECT("4AB!E15")
CC11CC11=INDIRECT("4AB!F15")
CD11CD11=INDIRECT("4AB!G15")
BZ12BZ12=INDIRECT("4AB!B16")
CA12CA12=INDIRECT("4AB!C16")
CB12CB12=INDIRECT("4AB!E16")
CC12CC12=INDIRECT("4AB!F16")
CD12CD12=INDIRECT("4AB!G16")
BZ13BZ13=INDIRECT("4AB!B17")
CA13CA13=INDIRECT("4AB!C17")
CB13CB13=INDIRECT("4AB!E17")
CC13CC13=INDIRECT("4AB!F17")
CD13CD13=INDIRECT("4AB!G17")
BZ14BZ14=INDIRECT("4AB!B18")
CA14CA14=INDIRECT("4AB!C18")
CB14CB14=INDIRECT("4AB!E18")
CC14CC14=INDIRECT("4AB!F18")
CD14CD14=INDIRECT("4AB!G18")
BZ15BZ15=INDIRECT("4AB!B19")
CA15CA15=INDIRECT("4AB!C19")
CB15CB15=INDIRECT("4AB!E19")
CC15CC15=INDIRECT("4AB!F19")
CD15CD15=INDIRECT("4AB!G19")
BZ16BZ16=INDIRECT("4AB!B20")
CA16CA16=INDIRECT("4AB!C20")
CB16CB16=INDIRECT("4AB!E20")
CC16CC16=INDIRECT("4AB!F20")
CD16CD16=INDIRECT("4AB!G20")
BZ17BZ17=INDIRECT("4AB!B21")
CA17CA17=INDIRECT("4AB!C21")
CB17CB17=INDIRECT("4AB!E21")
CC17CC17=INDIRECT("4AB!F21")
CD17CD17=INDIRECT("4AB!G21")
BZ18BZ18=INDIRECT("4AB!B22")
CA18CA18=INDIRECT("4AB!C22")
CB18CB18=INDIRECT("4AB!E22")
CC18CC18=INDIRECT("4AB!F22")
CD18CD18=INDIRECT("4AB!G22")
BZ19BZ19=INDIRECT("4AB!B23")
CA19CA19=INDIRECT("4AB!C23")
CB19CB19=INDIRECT("4AB!E23")
CC19CC19=INDIRECT("4AB!F23")
CD19CD19=INDIRECT("4AB!G23")
BZ20BZ20=INDIRECT("4AB!B24")
CA20CA20=INDIRECT("4AB!C24")
CB20CB20=INDIRECT("4AB!E24")
CC20CC20=INDIRECT("4AB!F24")
CD20CD20=INDIRECT("4AB!G24")
BZ21BZ21=INDIRECT("4AB!B25")
CA21CA21=INDIRECT("4AB!C25")
CB21CB21=INDIRECT("4AB!E25")
CC21CC21=INDIRECT("4AB!F25")
CD21CD21=INDIRECT("4AB!G25")
BZ22BZ22=INDIRECT("4AB!B26")
CA22CA22=INDIRECT("4AB!C26")
CB22CB22=INDIRECT("4AB!E26")
CC22CC22=INDIRECT("4AB!F26")
CD22CD22=INDIRECT("4AB!G26")
BZ23BZ23=INDIRECT("4AB!B27")
CA23CA23=INDIRECT("4AB!C27")
CB23CB23=INDIRECT("4AB!E27")
CC23CC23=INDIRECT("4AB!F27")
CD23CD23=INDIRECT("4AB!G27")
BZ24BZ24=INDIRECT("4AB!B28")
CA24CA24=INDIRECT("4AB!C28")
CB24CB24=INDIRECT("4AB!E28")
CC24CC24=INDIRECT("4AB!F28")
CD24CD24=INDIRECT("4AB!G28")
BZ25BZ25=INDIRECT("4AB!B29")
CA25CA25=INDIRECT("4AB!C29")
CB25CB25=INDIRECT("4AB!E29")
CC25CC25=INDIRECT("4AB!F29")
CD25CD25=INDIRECT("4AB!G29")
BZ26BZ26=INDIRECT("4AB!B30")
CA26CA26=INDIRECT("4AB!C30")
CB26CB26=INDIRECT("4AB!E30")
CC26CC26=INDIRECT("4AB!F30")
CD26CD26=INDIRECT("4AB!G30")
BZ27BZ27=INDIRECT("4AB!B31")
CA27CA27=INDIRECT("4AB!C31")
CB27CB27=INDIRECT("4AB!E31")
CC27CC27=INDIRECT("4AB!F31")
CD27CD27=INDIRECT("4AB!G31")
BZ28BZ28=INDIRECT("4AB!B32")
CA28CA28=INDIRECT("4AB!C32")
CB28CB28=INDIRECT("4AB!E32")
CC28CC28=INDIRECT("4AB!F32")
CD28CD28=INDIRECT("4AB!G32")
BZ29BZ29=INDIRECT("4AB!B33")
CA29CA29=INDIRECT("4AB!C33")
CB29CB29=INDIRECT("4AB!E33")
CC29CC29=INDIRECT("4AB!F33")
CD29CD29=INDIRECT("4AB!G33")
BZ30BZ30=INDIRECT("4AB!B34")
CA30CA30=INDIRECT("4AB!C34")
CB30CB30=INDIRECT("4AB!E34")
CC30CC30=INDIRECT("4AB!F34")
CD30CD30=INDIRECT("4AB!G34")
BZ31BZ31=INDIRECT("4AB!B35")
CA31CA31=INDIRECT("4AB!C35")
CB31CB31=INDIRECT("4AB!E35")
CC31CC31=INDIRECT("4AB!F35")
CD31CD31=INDIRECT("4AB!G35")
BZ32BZ32=INDIRECT("4AB!B36")
CA32CA32=INDIRECT("4AB!C36")
CB32CB32=INDIRECT("4AB!E36")
CC32CC32=INDIRECT("4AB!F36")
CD32CD32=INDIRECT("4AB!G36")
BZ33BZ33=INDIRECT("4AB!B37")
CA33CA33=INDIRECT("4AB!C37")
CB33CB33=INDIRECT("4AB!E37")
CC33CC33=INDIRECT("4AB!F37")
CD33CD33=INDIRECT("4AB!G37")
BZ34BZ34=INDIRECT("4AB!B38")
CA34CA34=INDIRECT("4AB!C38")
CB34CB34=INDIRECT("4AB!E38")
CC34CC34=INDIRECT("4AB!F38")
CD34CD34=INDIRECT("4AB!G38")
BZ35BZ35=INDIRECT("4AB!B39")
CA35CA35=INDIRECT("4AB!C39")
CB35CB35=INDIRECT("4AB!E39")
CC35CC35=INDIRECT("4AB!F39")
CD35CD35=INDIRECT("4AB!G39")
BZ36BZ36=INDIRECT("4AB!B40")
CA36CA36=INDIRECT("4AB!C40")
CB36CB36=INDIRECT("4AB!E40")
CC36CC36=INDIRECT("4AB!F40")
CD36CD36=INDIRECT("4AB!G40")
BZ37BZ37=INDIRECT("4AB!B41")
CA37CA37=INDIRECT("4AB!C41")
CB37CB37=INDIRECT("4AB!E41")
CC37CC37=INDIRECT("4AB!F41")
CD37CD37=INDIRECT("4AB!G41")
BZ38BZ38=INDIRECT("4AB!B42")
CA38CA38=INDIRECT("4AB!C42")
CB38CB38=INDIRECT("4AB!E42")
CC38CC38=INDIRECT("4AB!F42")
CD38CD38=INDIRECT("4AB!G42")
CG1:CI478CG1=SORT(FILTER(BY1:CA608,CA1:CA608<>0),2,1)
CJ1:CJ608CJ1=COUNTIF($BZ1:$BZ608,"<="&$BZ1:$BZ608)
CL1:CL478CL1=INDEX(CG1#,SEQUENCE(ROWS(CG1#)),{1;3;2})
CO1:CO608CO1=COUNTIF($CA1:$CA608,"<="&$CA1:$CA608)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
BY1Expression=BZ1=0textNO
BX1Expression=BZ1=0textNO
BZ2:BZ608Expression=CA2=0textNO
BZ1Expression=CA1=0textNO
CA1:CA608Cell Value=0textNO
CI1:CI608Cell Value=0textNO
CH1:CH608Expression=CI1=0textNO
CB1:CD608Cell Value=0textNO
 
Upvote 0
Try this instead, the formula that I suggested worked for me but that is with commas instead of semicolons.
Excel Formula:
=INDEX(CG1#;SEQUENCE(ROWS(CG1#));{1\3\2})
 
Upvote 0
=INDEX(CG1#;SEQUENCE(ROWS(CG1#));{1\3\2})
Sorry Sir. Maybe I didn't give you a good explanation. What I have with this formula is simply a swap between CH and CI. When I said that "I want to achieve the same result", I meant CA in alphabetical order. (The first one that you did (=SORT(FILTER(BY1:CA608;CA1:CA608<>0);2;1)) was BZ in alphabetical order. I hope I have been clear now and sorry for confusing you.
 
Upvote 0
Referring back to post 13,
It's actually sorted on CA, not BY. To sort on BZ, change 3 to 2.

BY=1 (1st column)
BZ=2 (2nd column)
CA=3 (3rd column)
You just need to change the column number.
Excel Formula:
=SORT(FILTER(BY1:CA608;CA1:CA608<>0);3;1)
 
Upvote 0
=SORT(FILTER(BY1:CA608;CA1:CA608<>0);3;1)
I am sorry for the late reply. I had to attend an urgent engagement and only came back now. The above formula gets the CN column sorted alphabetically just as I want however, it still places the full names column (sourced from CA) after the CM column (sourced from BZ). This time, I want to have the full name column (alphabetically sorted) to appear before the matching nicknames. Please take a look how it appears after I applied this last formula:
Stats 2016.xlsx
BXBYBZCACBCCCDCECFCGCHCICJCKCLCMCNCO
114ABBorra  33 PETAbdulAntónio Nzayinawo61PLSAbelAbel Lukango130
224ABCadiata  21  MAIAbegáManuel Pedro Pacavira77DESBelito SocolaAbelardo Gomes Socola130
334ABCamposAntónio Campos Calei124 73PLSAbelAbel Lukango80DESAliAbengea Mambani Ali39
444ABChara ?  21 INTAbianda 1Yann Junior Abianda 198DESDadão BileAdão Francisco Congo Zalata130
554ABDany RibeiroDaniel Mendes Ribeiro62618KABAbianda 2Yann Junior Abianda 2123PRITony CabaçaAdão Joaquim Bango Cabaça109
664ABDário AmorimDário Félix Amorim  3 LIBAdilson KivãoAdilson Ernesto Kivão126CAAManinhoAdelino Wima Calunhi António114
774ABDudú JackDomingos Monteiro Jack18474CAAAdilson ManuelAdilson Joaquim Manuel157SAGLelas 1Adérito Yandelela Chissoca 1128
884ABEdgardEdgard Arnaud Afane 18  ACAAdó PenaAntónio Joaquim Barros Pena160MAILelas 2Adérito Yandelela Chissoca 2139
994ABEdi  1  BENAdy PauloAgostinho Domingos Paulo161INTNeblúAdilson Cipriano da Cruz130
10104ABGeúdaGelson L. da S. Teles 87 PLSAgoyaAugusto Makanja216LIBAdilson KivãoAdilson Ernesto Kivão193
11114ABGuiManuel Porfírio Pompílio de Matos 6  ACAAiresLudgero Aires Cachicote da Rocha224CAAAdilson ManuelAdilson Joaquim Manuel335
12124ABHippiDomingos Paulo João José115175MAIAlexAlexandre G. Mário Miguel231SAGDenilson 1Adolfo da Silva Catemba 1130
13134ABIvanilson   5 PORAlexandreAlexandre Domingos Cristóvão M'Futila238PORDenilson 2Adolfo da Silva Catemba 2130
14144ABJairzinhoJair Sebastião de Castro 85 DESAliAbengea Mambani Ali243PROYanoAdriano Belmiro Duarte Nicolau230
15154ABJesse   3 PROAlmeidaJosé Xavier Fernando247DESKumacaAdriano da Costa Mateus Alberto130
16164ABKandúDéo Kanda314927KABAmarildo 1Amarildo Eugénio Augusto Miranda 1268ASAFofóAfonso Sebastião Cabungula118
17174ABKizombéAlberto dos Santos Domingos 161 ASAAmarildo 2Amarildo Eugénio Augusto Miranda 2279INTMabululuAgostinho Cristóvão Paciência23
18184ABLara ?   1 BENAmaroAmândio Manuel Filipe da Costa286BENAdy PauloAgostinho Domingos Paulo130
19194ABLeloJosé Lelo Sevo Barros114 76BENAmido BaldéAmido Baldé294KABEmilsonAires Emilson Gonzaga Zeca267
20204ABManucho MuquengueMariano Simão Muquengue2151146PROAnastácio 1Anastácio Manuel da Costa 1329MAIPai da BolaAlbano Camuele Sumano341
21214ABMatambaMatamba Paulino Sousa127 77ASAAnastácio 2Anastácio Manuel da Costa 2338PRIMilamboAlbert Milambo-Mutamba350
22224ABPaitoManuel Gaspar Fernandes 15 INTAntónioTomás Chilombo Cambuque Sapalo398PRIFissyAlberto Álvaro Paca325
23234ABPaluchoPaulo Pereira da Silva161378SAGAry CalveteHelmut Ariadne Figueiredo Calvete4024ABKizombéAlberto dos Santos Domingos402
24244ABPilolaJosé Olívio Andrade Pereira311 28PETAry OliveiraAriclene Assunção Oliveira418SAGRolliAlentua Tangala Rolli271
25254ABPrazeresPrazeres Chijica M. Dala 31 PRIAry PapelManuel David Afonso423PORAlexandreAlexandre Domingos Cristóvão M'Futila408
26264ABRochanaPanda Marcelo José 23  PLSAtunakoEboue Manzambi Atunako432MAIAlexAlexandre G. Mário Miguel397
27274ABRui ?  82 PROAvex 1Avelino Eduardo António Craque 1437DESChiweAlfredo Cassinda Calunganga130
28284ABTony AugustoAntónio Pedro Augusto 7  DESAvex 2Avelino Eduardo António Craque 2461LIBFredyAlfredo Kulembe Ribeiro46
29294ABVanderVander Ramos Pinto 19  SAGAyalaMário Álvaro Agostinho479ASAMiroAlmiro Edson Daniel Lobo454
30304ABXavierXavier Eduardo Vicente Vunge123 79PETAzulãoTiago Lima Leal489BENAmaroAmândio Manuel Filipe da Costa468
31314AB      ASABabacarBabacar Fall107KABAmarildo 1Amarildo Eugénio Augusto Miranda 1130
32324AB      BENBabyValdemar Denso António107ASAAmarildo 2Amarildo Eugénio Augusto Miranda 2130
33334AB      PLSBadrickBadrick Paulo Madadi107BENAmido BaldéAmido Baldé130
34344AB      PETBalacaiEvaristo Maurício Pascoal107PROAnastácio 1Anastácio Manuel da Costa 1130
35354AB      PLSBarrezóJoveth Adão107ASAAnastácio 2Anastácio Manuel da Costa 2130
36364AB      INTBartoloBartolomeu Nguia Baptista107ASAGuelorAnderson Benjamim Monteiro130
37374AB      INTBebé 1Odimir Abreu Gabriel Breganha 1107BENToyAndré Augusto Miranda Kongo130
38384AB      ASABebé 2Odimir Abreu Gabriel Breganha 2107INTMfedeAnthony Kevin Mfede Junior130
3939ACAAdó PenaAntónio Joaquim Barros Pena113280PETBeboManuel João Miguel da Costa84ABCamposAntónio Campos Calei42
4040ACAAiresLudgero Aires Cachicote da Rocha 1  DESBebuchoMárcio Sakuala Ramalho Henriques12PROSilva AnatoAntónio da Silva Anato303
4141ACABorges 1Cláudio Ricardo Cunha Borges 118181DESBelito SocolaAbelardo Gomes Socola59SAGGomito CassuleAntónio Gonçalo Cassule99
4242ACACabibi Abreu 1Mário Rui de Abreu 1  1 BENBenaDiveluca Simão Nascimento73ACAAdó PenaAntónio Joaquim Barros Pena345
4343ACACamotaJúlio Camota Marcelino Tito 21 SAGBeniBeni Kimbi Fua79PROLunguinhaAntónio Luís dos Santos Serrado281
4444ACAChabalalaGaspar Necas Fortunato34629PROBenvindo GarciaBenvindo Regresso Pontes Garcia97SAGOliveiraAntónio Manuel da Silva Oliveira192
STATS2
Cell Formulas
RangeFormula
BZ1BZ1=INDIRECT("4AB!B5")
CA1CA1=INDIRECT("4AB!C5")
CB1CB1=INDIRECT("4AB!E5")
CC1CC1=INDIRECT("4AB!F5")
CD1CD1=INDIRECT("4AB!G5")
CE1:CE44CE1=IF($CB1=0,"",IF($CB1>0,RANK(CB1,$CB$1:$CB$608)+COUNTIF($CB$1:CB1,CB1)-1))
BZ2BZ2=INDIRECT("4AB!B6")
CA2CA2=INDIRECT("4AB!C6")
CB2CB2=INDIRECT("4AB!E6")
CC2CC2=INDIRECT("4AB!F6")
CD2CD2=INDIRECT("4AB!G6")
BZ3BZ3=INDIRECT("4AB!B7")
CA3CA3=INDIRECT("4AB!C7")
CB3CB3=INDIRECT("4AB!E7")
CC3CC3=INDIRECT("4AB!F7")
CD3CD3=INDIRECT("4AB!G7")
BZ4BZ4=INDIRECT("4AB!B8")
CA4CA4=INDIRECT("4AB!C8")
CB4CB4=INDIRECT("4AB!E8")
CC4CC4=INDIRECT("4AB!F8")
CD4CD4=INDIRECT("4AB!G8")
BZ5BZ5=INDIRECT("4AB!B9")
CA5CA5=INDIRECT("4AB!C9")
CB5CB5=INDIRECT("4AB!E9")
CC5CC5=INDIRECT("4AB!F9")
CD5CD5=INDIRECT("4AB!G9")
BZ6BZ6=INDIRECT("4AB!B10")
CA6CA6=INDIRECT("4AB!C10")
CB6CB6=INDIRECT("4AB!E10")
CC6CC6=INDIRECT("4AB!F10")
CD6CD6=INDIRECT("4AB!G10")
BZ7BZ7=INDIRECT("4AB!B11")
CA7CA7=INDIRECT("4AB!C11")
CB7CB7=INDIRECT("4AB!E11")
CC7CC7=INDIRECT("4AB!F11")
CD7CD7=INDIRECT("4AB!G11")
BZ8BZ8=INDIRECT("4AB!B12")
CA8CA8=INDIRECT("4AB!C12")
CB8CB8=INDIRECT("4AB!E12")
CC8CC8=INDIRECT("4AB!F12")
CD8CD8=INDIRECT("4AB!G12")
BZ9BZ9=INDIRECT("4AB!B13")
CA9CA9=INDIRECT("4AB!C13")
CB9CB9=INDIRECT("4AB!E13")
CC9CC9=INDIRECT("4AB!F13")
CD9CD9=INDIRECT("4AB!G13")
BZ10BZ10=INDIRECT("4AB!B14")
CA10CA10=INDIRECT("4AB!C14")
CB10CB10=INDIRECT("4AB!E14")
CC10CC10=INDIRECT("4AB!F14")
CD10CD10=INDIRECT("4AB!G14")
BZ11BZ11=INDIRECT("4AB!B15")
CA11CA11=INDIRECT("4AB!C15")
CB11CB11=INDIRECT("4AB!E15")
CC11CC11=INDIRECT("4AB!F15")
CD11CD11=INDIRECT("4AB!G15")
BZ12BZ12=INDIRECT("4AB!B16")
CA12CA12=INDIRECT("4AB!C16")
CB12CB12=INDIRECT("4AB!E16")
CC12CC12=INDIRECT("4AB!F16")
CD12CD12=INDIRECT("4AB!G16")
BZ13BZ13=INDIRECT("4AB!B17")
CA13CA13=INDIRECT("4AB!C17")
CB13CB13=INDIRECT("4AB!E17")
CC13CC13=INDIRECT("4AB!F17")
CD13CD13=INDIRECT("4AB!G17")
BZ14BZ14=INDIRECT("4AB!B18")
CA14CA14=INDIRECT("4AB!C18")
CB14CB14=INDIRECT("4AB!E18")
CC14CC14=INDIRECT("4AB!F18")
CD14CD14=INDIRECT("4AB!G18")
BZ15BZ15=INDIRECT("4AB!B19")
CA15CA15=INDIRECT("4AB!C19")
CB15CB15=INDIRECT("4AB!E19")
CC15CC15=INDIRECT("4AB!F19")
CD15CD15=INDIRECT("4AB!G19")
BZ16BZ16=INDIRECT("4AB!B20")
CA16CA16=INDIRECT("4AB!C20")
CB16CB16=INDIRECT("4AB!E20")
CC16CC16=INDIRECT("4AB!F20")
CD16CD16=INDIRECT("4AB!G20")
BZ17BZ17=INDIRECT("4AB!B21")
CA17CA17=INDIRECT("4AB!C21")
CB17CB17=INDIRECT("4AB!E21")
CC17CC17=INDIRECT("4AB!F21")
CD17CD17=INDIRECT("4AB!G21")
BZ18BZ18=INDIRECT("4AB!B22")
CA18CA18=INDIRECT("4AB!C22")
CB18CB18=INDIRECT("4AB!E22")
CC18CC18=INDIRECT("4AB!F22")
CD18CD18=INDIRECT("4AB!G22")
BZ19BZ19=INDIRECT("4AB!B23")
CA19CA19=INDIRECT("4AB!C23")
CB19CB19=INDIRECT("4AB!E23")
CC19CC19=INDIRECT("4AB!F23")
CD19CD19=INDIRECT("4AB!G23")
BZ20BZ20=INDIRECT("4AB!B24")
CA20CA20=INDIRECT("4AB!C24")
CB20CB20=INDIRECT("4AB!E24")
CC20CC20=INDIRECT("4AB!F24")
CD20CD20=INDIRECT("4AB!G24")
BZ21BZ21=INDIRECT("4AB!B25")
CA21CA21=INDIRECT("4AB!C25")
CB21CB21=INDIRECT("4AB!E25")
CC21CC21=INDIRECT("4AB!F25")
CD21CD21=INDIRECT("4AB!G25")
BZ22BZ22=INDIRECT("4AB!B26")
CA22CA22=INDIRECT("4AB!C26")
CB22CB22=INDIRECT("4AB!E26")
CC22CC22=INDIRECT("4AB!F26")
CD22CD22=INDIRECT("4AB!G26")
BZ23BZ23=INDIRECT("4AB!B27")
CA23CA23=INDIRECT("4AB!C27")
CB23CB23=INDIRECT("4AB!E27")
CC23CC23=INDIRECT("4AB!F27")
CD23CD23=INDIRECT("4AB!G27")
BZ24BZ24=INDIRECT("4AB!B28")
CA24CA24=INDIRECT("4AB!C28")
CB24CB24=INDIRECT("4AB!E28")
CC24CC24=INDIRECT("4AB!F28")
CD24CD24=INDIRECT("4AB!G28")
BZ25BZ25=INDIRECT("4AB!B29")
CA25CA25=INDIRECT("4AB!C29")
CB25CB25=INDIRECT("4AB!E29")
CC25CC25=INDIRECT("4AB!F29")
CD25CD25=INDIRECT("4AB!G29")
BZ26BZ26=INDIRECT("4AB!B30")
CA26CA26=INDIRECT("4AB!C30")
CB26CB26=INDIRECT("4AB!E30")
CC26CC26=INDIRECT("4AB!F30")
CD26CD26=INDIRECT("4AB!G30")
BZ27BZ27=INDIRECT("4AB!B31")
CA27CA27=INDIRECT("4AB!C31")
CB27CB27=INDIRECT("4AB!E31")
CC27CC27=INDIRECT("4AB!F31")
CD27CD27=INDIRECT("4AB!G31")
BZ28BZ28=INDIRECT("4AB!B32")
CA28CA28=INDIRECT("4AB!C32")
CB28CB28=INDIRECT("4AB!E32")
CC28CC28=INDIRECT("4AB!F32")
CD28CD28=INDIRECT("4AB!G32")
BZ29BZ29=INDIRECT("4AB!B33")
CA29CA29=INDIRECT("4AB!C33")
CB29CB29=INDIRECT("4AB!E33")
CC29CC29=INDIRECT("4AB!F33")
CD29CD29=INDIRECT("4AB!G33")
BZ30BZ30=INDIRECT("4AB!B34")
CA30CA30=INDIRECT("4AB!C34")
CB30CB30=INDIRECT("4AB!E34")
CC30CC30=INDIRECT("4AB!F34")
CD30CD30=INDIRECT("4AB!G34")
BZ31BZ31=INDIRECT("4AB!B35")
CA31CA31=INDIRECT("4AB!C35")
CB31CB31=INDIRECT("4AB!E35")
CC31CC31=INDIRECT("4AB!F35")
CD31CD31=INDIRECT("4AB!G35")
BZ32BZ32=INDIRECT("4AB!B36")
CA32CA32=INDIRECT("4AB!C36")
CB32CB32=INDIRECT("4AB!E36")
CC32CC32=INDIRECT("4AB!F36")
CD32CD32=INDIRECT("4AB!G36")
BZ33BZ33=INDIRECT("4AB!B37")
CA33CA33=INDIRECT("4AB!C37")
CB33CB33=INDIRECT("4AB!E37")
CC33CC33=INDIRECT("4AB!F37")
CD33CD33=INDIRECT("4AB!G37")
BZ34BZ34=INDIRECT("4AB!B38")
CA34CA34=INDIRECT("4AB!C38")
CB34CB34=INDIRECT("4AB!E38")
CC34CC34=INDIRECT("4AB!F38")
CD34CD34=INDIRECT("4AB!G38")
BZ35BZ35=INDIRECT("4AB!B39")
CA35CA35=INDIRECT("4AB!C39")
CB35CB35=INDIRECT("4AB!E39")
CC35CC35=INDIRECT("4AB!F39")
CD35CD35=INDIRECT("4AB!G39")
BZ36BZ36=INDIRECT("4AB!B40")
CA36CA36=INDIRECT("4AB!C40")
CB36CB36=INDIRECT("4AB!E40")
CC36CC36=INDIRECT("4AB!F40")
CD36CD36=INDIRECT("4AB!G40")
BZ37BZ37=INDIRECT("4AB!B41")
CA37CA37=INDIRECT("4AB!C41")
CB37CB37=INDIRECT("4AB!E41")
CC37CC37=INDIRECT("4AB!F41")
CD37CD37=INDIRECT("4AB!G41")
BZ38BZ38=INDIRECT("4AB!B42")
CA38CA38=INDIRECT("4AB!C42")
CB38CB38=INDIRECT("4AB!E42")
CC38CC38=INDIRECT("4AB!F42")
CD38CD38=INDIRECT("4AB!G42")
BZ39BZ39=INDIRECT("ACA!B5")
CA39CA39=INDIRECT("ACA!C5")
CB39CB39=INDIRECT("ACA!E5")
CC39CC39=INDIRECT("ACA!F5")
CD39CD39=INDIRECT("ACA!G5")
BZ40BZ40=INDIRECT("ACA!B6")
CA40CA40=INDIRECT("ACA!C6")
CB40CB40=INDIRECT("ACA!E6")
CC40CC40=INDIRECT("ACA!F6")
CD40CD40=INDIRECT("ACA!G6")
BZ41BZ41=INDIRECT("ACA!B7")
CA41CA41=INDIRECT("ACA!C7")
CB41CB41=INDIRECT("ACA!E7")
CC41CC41=INDIRECT("ACA!F7")
CD41CD41=INDIRECT("ACA!G7")
BZ42BZ42=INDIRECT("ACA!B8")
CA42CA42=INDIRECT("ACA!C8")
CB42CB42=INDIRECT("ACA!E8")
CC42CC42=INDIRECT("ACA!F8")
CD42CD42=INDIRECT("ACA!G8")
BZ43BZ43=INDIRECT("ACA!B9")
CA43CA43=INDIRECT("ACA!C9")
CB43CB43=INDIRECT("ACA!E9")
CC43CC43=INDIRECT("ACA!F9")
CD43CD43=INDIRECT("ACA!G9")
BZ44BZ44=INDIRECT("ACA!B10")
CA44CA44=INDIRECT("ACA!C10")
CB44CB44=INDIRECT("ACA!E10")
CC44CC44=INDIRECT("ACA!F10")
CD44CD44=INDIRECT("ACA!G10")
CG1:CI478CG1=SORT(FILTER(BY1:CA608,CA1:CA608<>0),2,1)
CJ1:CJ608CJ1=COUNTIF($BZ1:$BZ608,"<="&$BZ1:$BZ608)
CL1:CN478CL1=SORT(FILTER(BY1:CA608,CA1:CA608<>0),3,1)
CO1:CO608CO1=COUNTIF($CA1:$CA608,"<="&$CA1:$CA608)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
BY1Expression=BZ1=0textNO
BX1Expression=BZ1=0textNO
BZ2:BZ608Expression=CA2=0textNO
BZ1Expression=CA1=0textNO
CA1:CA608Cell Value=0textNO
CI1:CI608Cell Value=0textNO
CH1:CH608Expression=CI1=0textNO
CB1:CD608Cell Value=0textNO
 
Upvote 0
I have now noticed another issue with the original formula. Some names in BZ do not have a corresponding match in CA. This formula:
=SORT(FILTER(BY1:CA608;CA1:CA608<>0);2;1)
ignores all names in BZ without a corresponding match in CA. This formula, however, with the required changes for CL to CO, should work fine because all names in CA have a corresponding match in BZ.
 
Upvote 0
It looks like some of your blanks might actually be zeros that are being masked by conditional formatting, see if this corrects it.
Excel Formula:
=SORT(FILTER(BY1:CA10,CA1:CA10<>0),2,1)
I was playing aroung with your formula because I don't know much about how excel formulas work and by trial and error I used this variant:
=SORT(FILTER(BY1:CA608;BZ1:BZ608<>0);2;1)
And now I can say that this one works perfectly, including all BZ values without a corresponding CA values (which I didn't have with the above formula). Now I am struggling to figure out the rest.
 
Upvote 0
=SORT(FILTER(BY1:CA608;BZ1:BZ608<>0);2;1)
And now I can say that this one works perfectly, including all BZ values without a corresponding CA values (which I didn't have with the above formula). Now I am struggling to figure out the rest.
By that, I assume that you mean swapping the 2 columns around. I think that this is what you need based on the formula from your post that you say works perfectly.
Excel Formula:
=INDEX(SORT(FILTER(BY1:CA608;BZ1:BZ608<>0);2;1),SEQUENCE(ROWS(BZ1:BZ608)),{1\3\2})
I haven't tested this because I didn't save the file that I used to test the earlier formulas. If it's not correct then I'll set it up again later but I'm a bit short on time now.
 
Upvote 0
=INDEX(SORT(FILTER(BY1:CA608;BZ1:BZ608<>0);2;1),SEQUENCE(ROWS(BZ1:BZ608)),{1\3\2})
Thanks again for your reply Sir. This formula is almost there. The only problem is that it alphabetically sorts the last column instead of the middle column
(I will wait until you have time of course ? ) Also note that 3rd column values without a corresponding match on the 2nd column should not appear at all.
Please take a look at the result:
Stats 2016.xlsx
CYCZDA
1PETAntónio NzayinawoAbdul
2MAIManuel Pedro PacaviraAbegá
3PLSAbel LukangoAbel
4INTYann Junior Abianda 1Abianda 1
5KABYann Junior Abianda 2Abianda 2
6LIBAdilson Ernesto KivãoAdilson Kivão
7CAAAdilson Joaquim ManuelAdilson Manuel
8ACAAntónio Joaquim Barros PenaAdó Pena
9ASA0Ady ?
10BENAgostinho Domingos PauloAdy Paulo
11PLSAugusto MakanjaAgoya
12ACALudgero Aires Cachicote da RochaAires
13MAIAlexandre G. Mário MiguelAlex
14PORAlexandre Domingos Cristóvão M'FutilaAlexandre
15DESAbengea Mambani AliAli
16PROJosé Xavier FernandoAlmeida
17KABAmarildo Eugénio Augusto Miranda 1Amarildo 1
18ASAAmarildo Eugénio Augusto Miranda 2Amarildo 2
19BENAmândio Manuel Filipe da CostaAmaro
20BENAmido BaldéAmido Baldé
21PROAnastácio Manuel da Costa 1Anastácio 1
22ASAAnastácio Manuel da Costa 2Anastácio 2
23BEN0Anderson
24INTTomás Chilombo Cambuque SapaloAntónio
25SAGHelmut Ariadne Figueiredo CalveteAry Calvete
26PETAriclene Assunção OliveiraAry Oliveira
27PRIManuel David AfonsoAry Papel
28PLSEboue Manzambi AtunakoAtunako
STATS2
 
Upvote 0

Forum statistics

Threads
1,224,836
Messages
6,181,251
Members
453,027
Latest member
Lost_in_spreadsheets

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