Automatically perform formula repeatedly on different cells within another formula

WorldTraveler

New Member
Joined
Mar 25, 2025
Messages
8
Office Version
  1. 365
  2. 2024
Platform
  1. Windows
Hello,

In the sheet titled Data have a list of books organized by year. This also includes the author. Often there is more than one author per book because they often collaborated. Relevant to my question is the fact that years are in column A and authors in column D.

r/excel - Automatically perform formula repeatedly on different cells
Now, each author was part of 1 or more organizations. Please ignore column B above because it's not entirely accurate. Instead to link authors to organizations I have a list of authors under each organization they belonged to in Sheet 4. For example, authors who were in BR are listed in Sheet 4, column E, rows 5-89 like so:

1742915890719.png


I realize this is not the greatest setup, but what I'm trying to do is link the organization with the years in which their members published a book, repeating years if there was more than one publication so that later I can create a bar graph for each organization with # of publications per year.

So for example, I'd want to end up with a list like this for the BR:

1995

1995

1996

1997

1997

1997

1997

1998

1998

I've developed a clunky formula that gives me the years of publications by any authors listed in cells E5 to E9 in Sheet 4:

=FILTER(Data!A:A,ISNUMBER(SEARCH(SHEET4!E5,Data!D:D))+ISNUMBER(SEARCH(SHEET4!E6,Data!D:D))+ISNUMBER(SEARCH(SHEET4!E7,Data!D:D))+ISNUMBER(SEARCH(SHEET4!E8,Data!D:D))+ISNUMBER(SEARCH(SHEET4!E9,Data!D:D))

However, typing out ISNUMBER(SEARCH(SHEET4![cell],Data!D:D)) 84 times for 84 cells is not fun. Is there a way to automate this so that Excel will automatically check all authors listed in cells E5 to E89 individually before conducting the FILTER formula?

=FILTER(Data!A:A,ISNUMBER(SEARCH(SHEET4!E5:E89,Data!D:D)) does not work because this is asking Excel to see whether all of the authors' names are listed for the same book, which of course is never the case.

Even better would be a formula that when it sees this:

1981 Book A Author A, Author B, Author C

and

Organization 1: Author A

Organization 2: Author B, Author C

does not count the text twice for organization 2, but that goes well beyond my capabilities.

This is on Excel for Windows 11 in Microsoft 365 office for enterprise. I think that's version 2502?

Many thanks!
 
Ciao,

You are looking for the new "array formulas" avaliable in Office 365. Especially MAP and maybe REDUCE. However i have a hard time figuring things out with just screenshots, if you could provide some sample data with the XLBB addon it would be great.
 
Upvote 0
Sorry, the last one didn't work as intended. Here's the organizations/authors sheet:
memoriali_17.xlsx
CDE
4A/traversoAutonomiaBR
5C CappiA PazienzaA Basone
6M TorrealtaE PalandriA Bonavita
7F AntoniA Braghetti
8G MemeoA Casimirri
9G MemeoA De Luca
10P ManciniA Faranda
11P TondelliA Fosso
12S TamburiniA Franceschini
13A Lojacono
14A Ludmann
15A Savasta
16A Vai
17B Balzerani
18B Fabrizi
19B Seghetti
20C Di Lenardo
21C Garavalia
22E Arcangeli
23E Calvitti
24E Fenzi
25E Libera
26E Triaca
27F Bonisoli
28F Donati
29F Galloni
30F Grilli
31F Lo Bianco
32F Miglietta
33F Piccioni
34F Ravalli
35F Ravalli
36G Alimonti
37G Anonimo
38G Ciucco
39G Codrini
40G Colotti
41G Frau
42G Naria
43G Senzani
44L Azzolini
45L Betassa
46L Carpi
47L Nicolotti
48M Brioschi
49M Cagol
50M Cappello
51M Cianfanelli
52M Di Marzio
53M Falessi
54M Iannelli
55M Maraschi
56M Moretti
57M Petrella
58M Pisetta
59M Romeo
60N D'Amore
61N Manenti
62N Mantovani
63N Ponti
64P Bertolazzi
65P Ferrari
66P Gallinari
67P Morlacchi
68P Panciarelli
69P Peci
70R Algranati
71R Cappelli
72R Curcio
73R Dura
74R Fiore
75R Lupo
76R Micaletto
77R Ognibene
78R Volinia
79S Berardi
80S Colonna
81S Padula
82S Tornaghi
83T Cherubini
84T Paroli
85V Acella
86V Guagliardo
87V Morucci
88V Vaccaro
89W Alasia
Sheet4
Cell Formulas
RangeFormula
C5:C6C5=SORT(FILTER('Lista di Nomi controllati'!A2:A392,('Lista di Nomi controllati'!G2:G392=C4)+('Lista di Nomi controllati'!H2:H392=C4)+('Lista di Nomi controllati'!I2:I392=C4)+('Lista di Nomi controllati'!J2:J392=C4)," "))
D5:D12D5=SORT(FILTER('Lista di Nomi controllati'!A2:A392,('Lista di Nomi controllati'!G2:G392=D4)+('Lista di Nomi controllati'!H2:H392=D4)+('Lista di Nomi controllati'!I2:I392=D4)+('Lista di Nomi controllati'!J2:J392=D4)," "))
E5:E89E5=SORT(FILTER('Lista di Nomi controllati'!A2:A392,('Lista di Nomi controllati'!G2:G392=E4)+('Lista di Nomi controllati'!H2:H392=E4)+('Lista di Nomi controllati'!I2:I392=E4)+('Lista di Nomi controllati'!J2:J392=E4)," "))
Dynamic array formulas.
Lambda Functions
NameFormula
S=LAMBDA(a,b,ISNUMBER(SEARCH(a,b)))
 
Upvote 0
And here's the list of books by year/author. I've cut off the names of the books etc since they're not relevant to the question, but each row is one text.
memoriali_17.xlsx
ABCD
1yeargroupgroup2author
21968assortedP Liguori, O Scalzone, Pierpaolo Balbo, Massimo Barone, Massimiliano Fuksas, Sergio Petruccioli, Pure Franco, and Andrea Silipo, [controllare chi qua e' attivista]
31969
41970
51971PotopAutonomiaN Balestrini
61972
71973LCT D'Amico
81973LCV Franzinetti
91974Potopvarious
101975AutonomiaD Mariotti
111975Radio Città FuturaA Mordenti
121975LCE Deaglio
131975Movimento studentescoE Rutigliano
141976LCM Radice, L Ravera
151976LCL Manconi
161976LCN Vento
171976PotopAutonomiaN Balestrini
181977LCL Manconi
191977LCL Manconi
201977LCM Sinibaldi
211977AutonomiaA Pazienza
221977PACA Cavallina
231978LCL Manconi, G Lerner e M Sinibaldi
241978LCG Viale
251978LCM Colafato
261978LCM Revelli
271978LCP Hutter
281978LCM L Radice
291978LCG Mughini
301979AutonomiaE Palandri
311979Movimento studentesco, LCM Boato
321979LCL Boato
331979LCL Manconi
341979?V Borelli
351980LCL Manconi
361980BRG Naria
371980assortedR Curcio e M Rostagno
381981LCL Manconi
391981BRGiorgio Anonimo
401981BRG Codrini (inventato?)
411982
421983PotopT Negri
431983BRP Peci
441984LCG de Luna
451985LCA Ceste
461985PotopT Negri
471986AutonomiaE Palandri
481986NAPG Panizzari
491986AutonomiaE Palandri
501987PotopAutonomiaN Balestrini
511987BRE Fenzi
521987LCG Mughini
531987PotopF Berardi
541988LCA Ceste
551988Movimento studentescoM Boato, E Rutigliano
561988PotopAutonomiaN Balestrini e P Moroni
571988BRG Naria
581988PotopO Scalzone
591989AutonomiaE Vesce
601989LCM Revelli
611989LCM Revelli
621989BRF Piccioni, F Lo Bianco
631989Radio Città FuturaS Provvisionato
641989PotopN Balestrini
651990LCM Revelli, P Ortoleva
661990NAPG Panizzari
671990LCL Manconi
681990LCA Ceste
691990LCM Calopresti
701990LCA Sofri
711991BRMaria Cappello, Tiziana Cherubini, Antonio De Luca, Franco Galloni, Franco Grilli., Rossella Lupo, Fulvia Matarazzo, Stefano Minguzzi, Fabio Ravalli e dei militanti rivoluzionari Daniele Bencini, Vincenza Vaccaro, Marco Venturini
721991BRG Naria
731991BRV Guagliardo
741991LCA Sofri
751992LCM Revelli
761992LCT D'Amico
771992LCL Marino
781993BRM Cappello
791993Radio Città FuturaS Provvisionato
801993LCA Ceste
811993BRR Curcio
821993BRR Curcio
831993PACC Battisti
841994BRA Faranda
851994BRA Franceschini
861994LCA Ceste
871994BRM Moretti
881994BRF F De Albuquerquee M Iannelli (non chiaro quanto intervenuto, ne se davvero BR)
891994BRV Morucci
901994BRV Guagliardo
911994PotopAutonomiaN Balestrini
921995LCA Sofri
931995LCP Ortoleva
941995LCM Calopresti
951995LCL Manconi
961995BRA Braghetti
971995BRP Gallinari L Santilli (moglie di PG)
981996BRN Mantovani
991996UCCW Labate
1001996LCA Sofri
1011996Radio Città FuturaE Bassignano
1021996LCA Sofri L Sofri, curatori
1031997BRA Franceschini
1041997BRG Naria
1051997LCA Sofri
1061997BRG Colotti
1071997assortedF Piperno Ida Dominijanni, Felice Liperi, Luigi Manconi, Marco Bascetta, Marco Grispigni, Alfonso Maurizio Iacono, Renato Nicolini, Rina Gagliardi, Rossana Rossanda, Paolo Virno
1081997BRV Guagliardo
1091997AutonomiaF Scozzari
1101997FCCT Z Zanetti
1111998BRA Braghetti
1121998LCA Ceste
1131998LCA Sofri
1141998BRB Balzerani
1151998LCM Revelli, P Ortoleva
1161998LCG Mughini
1171998LCE Deaglio
1181998PACC Battisti
1191998PotopO Scalzone
1201998assortedmix
1211998PotopF Berardi
1221999BRV Morucci
1231999BRR Curcio F Silvestri
1241999BRA Vai
1251999PotopO Scalzone
1262000LCG Crainz
1272000BRG Colotti
1282000FCCT Z Zanetti
1292001LCM Fossati
1302001LCM Fossati
1312002LCG Mughini
1322002BRV Guagliardo
1332002PotopF Berardi
1342002PotopF Berardi
1352002PotopF Berardi
1362003PACC Battisti
1372003LCM Fossati
1382003PACC Battisti
1392003Radio Città FuturaS Provvisionato
1402003LCT D'Amico
1412003LCG Crainz
1422003BRG Colotti
1432003PotopT Negri
1442004Movimento studentescoE Rutigliano
1452004LCE De Luca
1462004LCT D'Amico
1472004BRA Franceschini
1482004BRV Morucci
1492004LCL Foa
1502004PotopO Scalzone
1512005AutonomiaE Palandri
1522005BRG Colotti
1532005LCA Sofri
1542005BRV Morucci
1552005BRV Guagliardo
1562005LCA Bravo
1572005PLM Bignami
1582005PotopAlberto Magnaghi, Stefano Lepri, Valerio Morucci, Franco Berardi, Oreste Scalzone, Francesco Bellosi, Lanfranco Pace, Letizia Paolozzi, etc
1592005PLS Segio
1602005PACA Cavallina
1612005BRC Garavalia
1622005assortedA Pera, A Camilleri, D Frascati, E Belotti, E Gallo, E De Luca, G Colotti, G Manfredi, G Alimonti, I Scanner, M Carlotto, N Balestrini, P Staccioli, R Tumminelli, S Tassinari
1632006LCG de Luna
1642006Radio Città FuturaS Provvisionato
1652006mixP Sorbi, Bifo, O Scalzone, M Boato, A Sofri ecc
1662006BRA Faranda
1672006BRP Gallinari
1682006LCG Sartorio
1692006PLS Segio
1702006LCM Fossati
1712006PACC Battisti
1722006Collettivi giovaniliL Rastello
1732006LCB Arpaia
1742006LCM Revelli
1752006PotopO Scalzone
1762007BRR Fiore
1772007UCCW Labate
1782007LCT D'Amico
1792007PotopT Negri
1802008LCT D'Amico
1812008AutonomiaF Scozzari
1822008BRA Franceschini
1832008Movimento studentesco, LCM Boato
1842008BRA Franceschini
1852008BRV Morucci
1862008LCE De Luca
1872008LCE De Luca
1882008LCA Bravo
1892008Radio Città FuturaS Provvisionato
1902008PotopT Negri
1912008LCL Manconi
1922008PotopF Piperno
1932009LCA Sofri
1942009LCS Martin
1952009LCG Crainz
1962009Radio Città FuturaS Provvisionato
1972009BRB Balzerani
1982009LCG Mughini
1992009LCG de Luna
2002009LCM Fossati
2012009BRT Paroli
2022010PLA Bonvicini
2032010AutonomiaE Palandri
2042010LCM Calopresti
2052010LCA Cambria
2062010PACC Lavazza
2072011LCG Sartorio
2082011LCM Fossati
2092011Radio Città FuturaA Mordenti
2102011BRB Balzerani
2112012AutonomiaG Vitali
2122012LCG Mughini
2132012LCG de Luna
2142012BRM Prette
2152012LCM Revelli
2162012LCG Crainz
2172012LCM Revelli
2182012LCA Sofri
2192012NAPR Marrone
2202012PLB La Ronga, M G Gibertini, R Rosso
2212013PLB La Ronga, M G Gibertini, R Rosso, E Galmozzi
2222013LCM Calopresti
2232013assortedP Margini, M Battisaldo
2242013PLM Gibertini
2252013BRG Senzani
2262013BRE Triaca
2272013PLM Bignami
2282013PotopN Balestrini
2292014BRA Franceschini
2302014LCM Fossati
2312014LCE De Luca
2322014BRB Balzerani
2332014BRG Senzani
2342015Radio Città FuturaS Provvisionato
2352015BRF Donati
2362015BRB Balzerani
2372015LCM Fossati
2382015LCM Fossati
2392015LCM Fossati
2402015PotopT Negri
2412016LCG Crainz
2422016LCL Manconi
2432016LCS Della Casa
2442016LCM Fossati
2452016AutonomiaG Vitali
2462017BRB Balzerani
2472017LCP Brogi
2482017BRP Persichetti e E Santalena
2492017BRM T Romeo
2502017PotopT Negri
2512017BRM Iannelli
2522017LCE Deaglio
2532017NAPG Panizzari
2542017LCT D'Amico
2552017PotopT Negri
2562017PotopO Scalzone
2572018Movimento studentesco, LCM Boato
2582018LCG Viale
2592018BRF Bonisoli
2602018NAPP Abatangelo
2612018PLM Premoli
2622018LCG Mughini
2632018LCL Pero
2642018LCG Mughini
2652018PotopF Berardi, N Balestrini, S Bianchi
2662018LCT Capuozzo
2672018AutonomiaP Ricci
2682019LCG de Luna
2692019LCE Deaglio
2702019LCM Fossati
2712019LCE De Luca
2722019LCP Brogi
2732019LCL Bobbio
2742019LCE De Luca
2752019assortedA Bignami, W Labate, G de Luna
2762019LCMichele Boato
2772019NAPG Panizzari
2782019PLE Galmozzi
2792020BRB Balzerani
2802020BRP Ferrari
2812020AutonomiaP Ricci
2822020BRA Vai
2832020PLM Bignami
2842020LCT Capuozzo
2852020LCM Boato
2862020LCM Sinibaldi, L Manconi, M Radice
2872020PotopT Negri
2882021PLM Premoli
2892021PACA Cavallina
2902022LCM Calopresti
2912022LCP Liguori, Lerner, de luca, franzinetti, boato, sinibaldi e Mughini
2922022LCF Salmoni
2932022BRP Persichetti
2942023LCL Manconi
2952023LCE Deaglio
2962023AutonomiaV Minnella
2972023LCG de Luna
2982023LCG Viale
2992023PACA Cavallina
3002024LCE Deaglio
3012024LCG Pietrostefani
3022024LCM Revelli
3032024?S Turrini
3042024LCF Salmoni
3052024LCG Viale
3062024LCS Della Casa
3072024LCG Mughini
3082025BRP Persichetti
3092025PLM Gibertini
3102025LCT D'Amico
Data
 
Upvote 0
Technically the lists of authors per organization is based on this:
memoriali_17.xlsx
ABCDEFGHIJ
1CognomeNomeContribuito un testo?org1org2org3org4
2S TurriniTurriniSSeverino1?
3F D'UrsiD'UrsiFFrancesco0PL
4M BignamiBignamiMMaurice3PL
5E GalmozziGalmozziEEnrico/Chicco2PLLC
6S SegioSegioSSergio2PLLC
7B La RongaLa RongaBBruno2PL
8M GibertiniGibertiniMMaurizio Gibo2PL
9R RossoRossoRRoberto2PL
10M ViscardiViscardiMMichele0PLLC
11S D'EliaD'EliaSSergio0PL
Lista di Nomi controllati
Cell Formulas
RangeFormula
A2:A11A2=C2&" "&B2
C2:C11C2=LEFT(D2)&IF(ISNUMBER(FIND(" ",B2)),,"")
E2:E11E2=COUNT(FILTER(Data!A:A,ISNUMBER(SEARCH('Lista di Nomi controllati'!A2,Data!D:D))))
Lambda Functions
NameFormula
S=LAMBDA(a,b,ISNUMBER(SEARCH(a,b)))
 
Upvote 0
Hello,

I think i am getting easier results with PowerQuery. Would this alternative work for you?

Below are some data that i managed to extract:
We can then easily work with this base with formulas or pivot tables/charts
Book1
ABC
1GrpByA.yearOrgaGrpY-O.author
21968assortedP Liguori
31968assortedO Scalzone
41968assortedPierpaolo Balbo
51968assortedMassimo Barone
61968assortedMassimiliano Fuksas
71968assortedSergio Petruccioli
81968assortedPure Franco
91968assortedand Andrea Silipo
101968assorted[controllare chi qua e' attivista]
111971PotopN Balestrini
121971AutonomiaN Balestrini
131973LCT D'Amico
141973LCV Franzinetti
151974Potopvarious
161975AutonomiaD Mariotti
171975Radio Città FuturaA Mordenti
181975LCE Deaglio
191975Movimento studentescoE Rutigliano
201976PotopN Balestrini
211976AutonomiaN Balestrini
221976LCM Radice
231976LCL Ravera
241976LCL Manconi
251976LCN Vento
261977LCL Manconi
271977LCL Manconi
281977LCM Sinibaldi
291977AutonomiaA Pazienza
301977PACA Cavallina
311978LCL Manconi
321978LCG Lerner e M Sinibaldi
331978LCG Viale
341978LCM Colafato
351978LCM Revelli
361978LCP Hutter
371978LCM L Radice
381978LCG Mughini
391979LCL Manconi
401979LCL Boato
411979AutonomiaE Palandri
421979Movimento studentesco, LCM Boato
431979?V Borelli
441980LCL Manconi
451980BRG Naria
461980assortedR Curcio e M Rostagno
471981LCL Manconi
481981BRGiorgio Anonimo
491981BRG Codrini (inventato?)
501983PotopT Negri
511983BRP Peci
521984LCG de Luna
531985PotopT Negri
541985LCA Ceste
551986AutonomiaE Palandri
561986AutonomiaE Palandri
571986NAPG Panizzari
581987PotopN Balestrini
591987PotopF Berardi
601987AutonomiaN Balestrini
611987LCG Mughini
621987BRE Fenzi
631988PotopO Scalzone
641988PotopN Balestrini e P Moroni
651988Movimento studentescoE Rutigliano
661988Movimento studentescoM Boato
671988BRG Naria
681988LCA Ceste
691988AutonomiaN Balestrini e P Moroni
701989PotopN Balestrini
711989LCM Revelli
721989LCM Revelli
731989AutonomiaE Vesce
741989BRF Piccioni
751989BRF Lo Bianco
761989Radio Città FuturaS Provvisionato
771990LCL Manconi
781990LCM Revelli
791990LCA Ceste
801990LCP Ortoleva
811990LCM Calopresti
821990LCA Sofri
831990NAPG Panizzari
841991BRG Naria
851991BRMaria Cappello
861991BRTiziana Cherubini
871991BRAntonio De Luca
881991BRFranco Galloni
891991BRFranco Grilli.
901991BRRossella Lupo
911991BRFulvia Matarazzo
921991BRStefano Minguzzi
931991BRFabio Ravalli e dei militanti rivoluzionari Daniele Bencini
941991BRVincenza Vaccaro
951991BRMarco Venturini
961991BRV Guagliardo
971991LCA Sofri
981992LCT D'Amico
991992LCM Revelli
1001992LCL Marino
1011993LCA Ceste
1021993Radio Città FuturaS Provvisionato
1031993BRM Cappello
1041993BRR Curcio
1051993BRR Curcio
1061993PACC Battisti
1071994PotopN Balestrini
1081994AutonomiaN Balestrini
1091994LCA Ceste
1101994BRV Guagliardo
1111994BRA Faranda
1121994BRA Franceschini
1131994BRM Moretti
1141994BRF F De Albuquerquee M Iannelli (non chiaro quanto intervenuto
1151994BRne se davvero BR)
1161994BRV Morucci
1171995LCL Manconi
1181995LCP Ortoleva
1191995LCM Calopresti
1201995LCA Sofri
1211995BRA Braghetti
1221995BRP Gallinari L Santilli (moglie di PG)
1231996LCA Sofri
1241996LCA Sofri L Sofri
1251996LCcuratori
1261996BRN Mantovani
1271996UCCW Labate
1281996Radio Città FuturaE Bassignano
1291997BRG Naria
1301997BRV Guagliardo
1311997BRA Franceschini
1321997BRG Colotti
1331997LCA Sofri
1341997assortedF Piperno Ida Dominijanni
1351997assortedFelice Liperi
1361997assortedLuigi Manconi
1371997assortedMarco Bascetta
1381997assortedMarco Grispigni
1391997assortedAlfonso Maurizio Iacono
1401997assortedRenato Nicolini
1411997assortedRina Gagliardi
1421997assortedRossana Rossanda
1431997assortedPaolo Virno
1441997AutonomiaF Scozzari
1451997FCCT Z Zanetti
1461998PotopO Scalzone
1471998PotopF Berardi
1481998LCE Deaglio
1491998LCM Revelli
1501998LCG Mughini
1511998LCA Ceste
1521998LCP Ortoleva
1531998LCA Sofri
1541998PACC Battisti
1551998BRA Braghetti
1561998BRB Balzerani
1571998assortedmix
1581999PotopO Scalzone
1591999BRV Morucci
1601999BRR Curcio F Silvestri
1611999BRA Vai
1622000BRG Colotti
1632000FCCT Z Zanetti
1642000LCG Crainz
1652001LCM Fossati
1662001LCM Fossati
1672002LCG Mughini
1682002PotopF Berardi
1692002PotopF Berardi
1702002PotopF Berardi
1712002BRV Guagliardo
1722003LCT D'Amico
1732003LCG Crainz
1742003LCM Fossati
1752003PotopT Negri
1762003Radio Città FuturaS Provvisionato
1772003PACC Battisti
1782003PACC Battisti
1792003BRG Colotti
1802004PotopO Scalzone
1812004LCT D'Amico
1822004LCE De Luca
1832004LCL Foa
1842004Movimento studentescoE Rutigliano
1852004BRA Franceschini
1862004BRV Morucci
1872005assortedN Balestrini
1882005assortedG Colotti
1892005assortedE De Luca
1902005assortedA Pera
1912005assortedA Camilleri
1922005assortedD Frascati
1932005assortedE Belotti
1942005assortedE Gallo
1952005assortedG Manfredi
1962005assortedG Alimonti
1972005assortedI Scanner
1982005assortedM Carlotto
1992005assortedP Staccioli
2002005assortedR Tumminelli
2012005assortedS Tassinari
2022005PACA Cavallina
2032005AutonomiaE Palandri
2042005LCA Sofri
2052005LCA Bravo
2062005BRV Guagliardo
2072005BRV Morucci
2082005BRG Colotti
2092005BRC Garavalia
2102005PLM Bignami
2112005PLS Segio
2122005PotopAlberto Magnaghi
2132005PotopStefano Lepri
2142005PotopValerio Morucci
2152005PotopFranco Berardi
2162005PotopOreste Scalzone
2172005PotopFrancesco Bellosi
2182005PotopLanfranco Pace
2192005PotopLetizia Paolozzi
2202005Potopetc
2212006mixO Scalzone
2222006mixM Boato
2232006mixP Sorbi
2242006mixBifo
2252006mixA Sofri ecc
2262006PotopO Scalzone
2272006LCM Revelli
2282006LCG de Luna
2292006LCM Fossati
2302006LCG Sartorio
2312006LCB Arpaia
2322006Radio Città FuturaS Provvisionato
2332006PACC Battisti
2342006BRA Faranda
2352006BRP Gallinari
2362006PLS Segio
2372006Collettivi giovaniliL Rastello
2382007LCT D'Amico
2392007PotopT Negri
2402007UCCW Labate
2412007BRR Fiore
2422008LCT D'Amico
2432008LCL Manconi
2442008LCE De Luca
2452008LCE De Luca
2462008LCA Bravo
2472008Movimento studentesco, LCM Boato
2482008PotopT Negri
2492008PotopF Piperno
2502008Radio Città FuturaS Provvisionato
2512008BRA Franceschini
2522008BRA Franceschini
2532008BRV Morucci
2542008AutonomiaF Scozzari
2552009LCG Mughini
2562009LCG de Luna
2572009LCA Sofri
2582009LCG Crainz
2592009LCM Fossati
2602009LCS Martin
2612009Radio Città FuturaS Provvisionato
2622009BRB Balzerani
2632009BRT Paroli
2642010AutonomiaE Palandri
2652010LCM Calopresti
2662010LCA Cambria
2672010PLA Bonvicini
2682010PACC Lavazza
2692011Radio Città FuturaA Mordenti
2702011BRB Balzerani
2712011LCM Fossati
2722011LCG Sartorio
2732012LCM Revelli
2742012LCM Revelli
2752012LCG Mughini
2762012LCG de Luna
2772012LCA Sofri
2782012LCG Crainz
2792012AutonomiaG Vitali
2802012BRM Prette
2812012NAPR Marrone
2822012PLB La Ronga
2832012PLM G Gibertini
2842012PLR Rosso
2852013PotopN Balestrini
2862013LCM Calopresti
2872013PLM Bignami
2882013PLB La Ronga
2892013PLM G Gibertini
2902013PLR Rosso
2912013PLE Galmozzi
2922013PLM Gibertini
2932013assortedP Margini
2942013assortedM Battisaldo
2952013BRG Senzani
2962013BRE Triaca
2972014BRA Franceschini
2982014BRB Balzerani
2992014BRG Senzani
3002014LCM Fossati
3012014LCE De Luca
3022015PotopT Negri
3032015Radio Città FuturaS Provvisionato
3042015BRB Balzerani
3052015BRF Donati
3062015LCM Fossati
3072015LCM Fossati
3082015LCM Fossati
3092016LCL Manconi
3102016LCG Crainz
3112016LCM Fossati
3122016LCS Della Casa
3132016AutonomiaG Vitali
3142017PotopO Scalzone
3152017PotopT Negri
3162017PotopT Negri
3172017LCT D'Amico
3182017LCE Deaglio
3192017LCP Brogi
3202017NAPG Panizzari
3212017BRB Balzerani
3222017BRP Persichetti e E Santalena
3232017BRM T Romeo
3242017BRM Iannelli
3252018PotopN Balestrini
3262018PotopF Berardi
3272018PotopS Bianchi
3282018LCG Viale
3292018LCG Mughini
3302018LCG Mughini
3312018LCL Pero
3322018LCT Capuozzo
3332018Movimento studentesco, LCM Boato
3342018BRF Bonisoli
3352018NAPP Abatangelo
3362018PLM Premoli
3372018AutonomiaP Ricci
3382019LCE Deaglio
3392019LCG de Luna
3402019LCM Fossati
3412019LCE De Luca
3422019LCE De Luca
3432019LCP Brogi
3442019LCL Bobbio
3452019LCMichele Boato
3462019assortedG de Luna
3472019assortedW Labate
3482019assortedA Bignami
3492019NAPG Panizzari
3502019PLE Galmozzi
3512020LCM Radice
3522020LCL Manconi
3532020LCM Sinibaldi
3542020LCM Boato
3552020LCT Capuozzo
3562020PotopT Negri
3572020BRB Balzerani
3582020BRA Vai
3592020BRP Ferrari
3602020PLM Bignami
3612020AutonomiaP Ricci
3622021PACA Cavallina
3632021PLM Premoli
3642022LCP Liguori
3652022LCM Calopresti
3662022LCLerner
3672022LCde luca
3682022LCfranzinetti
3692022LCboato
3702022LCsinibaldi e Mughini
3712022LCF Salmoni
3722022BRP Persichetti
3732023LCE Deaglio
3742023LCL Manconi
3752023LCG Viale
3762023LCG de Luna
3772023PACA Cavallina
3782023AutonomiaV Minnella
3792024LCE Deaglio
3802024LCG Viale
3812024LCM Revelli
3822024LCG Mughini
3832024LCS Della Casa
3842024LCF Salmoni
3852024LCG Pietrostefani
3862024?S Turrini
3872025LCT D'Amico
3882025PLM Gibertini
3892025BRP Persichetti
Table1_1__2
 
Upvote 0
This is fantastic! Can I ask how you extracted this/what the steps are for power query?
 
Upvote 0
Yes, sure:
  1. Select the "data" table and go to Tab Data > from range (in my query it is "Table2")
  2. Filter the "group" column with no null
  3. Split column authors by commas, to rows
  4. Add a custom function column and trim the authors column to remove spaces, use ita s new authors column and delete the old one
  5. Group by authors
  6. Expand Group, group2 and year
  7. Unpivot columns group and group2
  8. Group by Year and "organization"/"group" = from the step 6
  9. Expand authors, sort by year & load

The corresponding query is below
Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"year", Int64.Type}, {"group", type text}, {"group2", type text}, {"author", type text}}),
    #"Filtered Rows" = Table.SelectRows(#"Changed Type", each ([group] <> null)),
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Filtered Rows", {{"author", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "author"),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"author", type text}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type1", "Custom", each Text.Trim([author])),
    #"Removed Columns1" = Table.RemoveColumns(#"Added Custom",{"author"}),
    #"Renamed Columns" = Table.RenameColumns(#"Removed Columns1",{{"Custom", "author"}}),
    #"Grouped Rows" = Table.Group(#"Renamed Columns", {"author"}, {{"GrpByA", each _, type table [year=nullable number, group=nullable text, group2=nullable text, author=nullable text]}}),
    #"Expanded GrpByA" = Table.ExpandTableColumn(#"Grouped Rows", "GrpByA", {"year", "group", "group2"}, {"GrpByA.year", "GrpByA.group", "GrpByA.group2"}),
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Expanded GrpByA", {"author", "GrpByA.year"}, "Attribute", "Value"),
    #"Removed Columns" = Table.RemoveColumns(#"Unpivoted Columns",{"Attribute"}),
    #"Grouped Rows1" = Table.Group(#"Removed Columns", {"GrpByA.year", "Value"}, {{"GrpFinal", each _, type table [author=nullable text, GrpByA.year=nullable number, Value=text]}}),
    #"Expanded GrpFinal" = Table.ExpandTableColumn(#"Grouped Rows1", "GrpFinal", {"author"}, {"GrpFinal.author"}),
    #"Sorted Rows" = Table.Sort(#"Expanded GrpFinal",{{"GrpByA.year", Order.Ascending}})
in
    #"Sorted Rows"

Nota : it could certainly be simplified, but i did it using the UI for ease of use.
 
Upvote 0
Solution

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