Sumif table

himurah182

New Member
Joined
Aug 4, 2022
Messages
21
Office Version
  1. 2019
Platform
  1. Windows
Hey guys,
I need your help on this one. I have a table (1st picture) that is going to be filled with the quantities of each product that were sold to each customer.
However, to be more specific, I need a second table(2nd picture) that calculates the total cost that each customer had in each type of product.
My goal with this excel file is to fill column "D" with data, next I would register and once it was done, the sum of each customers goods that were bought would appear in the second table.
I have tried to do a sumif, but it did not work properly since the function moved everytime a new column of data was registed.
Picture 3 has the unit prices of each product.
What should I do?
1660042032705.png
1660041913008.png
1660042329687.png
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hey guys,
I need your help on this one. I have a table (1st picture) that is going to be filled with the quantities of each product that were sold to each customer.
However, to be more specific, I need a second table(2nd picture) that calculates the total cost that each customer had in each type of product.
My goal with this excel file is to fill column "D" with data, next I would register and once it was done, the sum of each customers goods that were bought would appear in the second table.
I have tried to do a sumif, but it did not work properly since the function moved everytime a new column of data was registed.
Picture 3 has the unit prices of each product.
What should I do?
View attachment 71170View attachment 71169View attachment 71171
Your question is somewhat confusing. Please explain it more clearly

Just to understand in Cell D8 of Picture 1 what exactly you want and from where you want that data to come?
 
Upvote 0
The table in picture 1 has a macro that copies every data in the d5:d75 range into column E, and everytime I fill it with newer data and use the macro again, the values that were already in column E move 1 column to the right. This table was designed to count the amount of products from each reference (range c8:c78) that were sold to each customer(d7).
D6- represents the customer's code
D5- represents the invoice number
The second picture has a range of clients and their respective codes. Also, it has 5 columns that correspond to the 5 types of products that we need to count.
What I want is the following: everytime I add new data in the table of picture 1 and use the macro to register it in Column E, I need the quantities of each product to multiply by their correspondent unit prices (picture 3) and sum them to their specific column in the table of picture 2, according to their type of product. For example, E8 would multiply by its unit price (3rd picture) and its result would be added to on c5 along with the other data which also belongs to this collumn.
I hope it made sense.
I pasted this again so you can see the ranges clearly.
1660053694950.png
 
Upvote 0
The table in picture 1 has a macro that copies every data in the d5:d75 range into column E, and everytime I fill it with newer data and use the macro again, the values that were already in column E move 1 column to the right. This table was designed to count the amount of products from each reference (range c8:c78) that were sold to each customer(d7).
D6- represents the customer's code
D5- represents the invoice number
The second picture has a range of clients and their respective codes. Also, it has 5 columns that correspond to the 5 types of products that we need to count.
What I want is the following: everytime I add new data in the table of picture 1 and use the macro to register it in Column E, I need the quantities of each product to multiply by their correspondent unit prices (picture 3) and sum them to their specific column in the table of picture 2, according to their type of product. For example, E8 would multiply by its unit price (3rd picture) and its result would be added to on c5 along with the other data which also belongs to this collumn.
I hope it made sense.
I pasted this again so you can see the ranges clearly.
View attachment 71185
No, it still does not make sense. We are dealing with Excel not Pictures - We need cell address, sheet names. Moreover only you know which is Picture 1 and which is Pic3 because you uploaded it. Use XL2BB to upload sample data.
 
Upvote 0
calc3 (2).xlsm
ABCDEFGH
1
2
3
4
5Fatura
6Where code27078270782703726253
7PluPostoRamalhãoRamalhãoAlmada V.R.-SulCacem-Av B Amigos
8type 1103581RPBLACK2-BLACK ULTRA THIN 1,1/41
9103582RPBLACK3-BLACK KING SIZE
10103583BOLSA FILTROS REGULAR-8MM-30B-100F454545
11103584BOLSA FILTROS SLIM-6MM-34B-120F
12103585ISQUEIRO CLIPPER PEQ. CP22RH
13103586ISQUEIRO CLIPPER PEQ FUN
14103587ISQUERIRO CLIPPER GRD CP11RH
15103902ISQUEIRO CLIPPER CLASS.METAL LARG CAIXA
16103903BOLSA FILTROS LONG SLIM-6MM-30B-100F555
17103904BOLSA FILTROS LONG REGULAR-8MM-20B-100F
18105457ISQUEIRO Clipper Classic POP CPR11H
19106629ISQUEIRO MINI CLIPPER TUBE
20106630PAPEL CLIPPER BLUE ULTRA THIN REGULAR
21106631PAPEL CLIPPER PURE ULTRA THIN REGULAR
22106632PAPEL CLIPPERPURE ULTRA THIN KSS555
23106633PAPEL CLIPPER RED REGULAR CLASSIC
24106634PAPEL CLIPPER GREEN CUT CORNERS REGULAR
25106636MÁQUINA ENROLAR
26106637FILTROS POP UP EXTRA SLIM
27106638MEN-FILTROS POP UP EXTRA SLIM MENTOL
28106639FILTROS SLIM ORGANIC BOLSA
29107670SET KING SIZE SLIM+FILTROS DE PAPEL
30116773PAPEL RAW ORG HEMP KING SIZE SLIM
31116775PAPEL RAW CLASSIC KING SIZE SLIM
32116774PAPEL RAW ORG REGULAR
33116776FILTROS RAW ORGANIC SLIM
34Type 2103588RELÓGIO Medium Price
35103589RELÓGIO Low Price555
36103905RELOGIO ANALOGICO
37106640SMARTWATCH SAMI
38Type 3106506CIGARREIRA CAIXA PLASTICO
39106506CIGARREIRA SILICONE
40106661Cigarreira Cartão
41106506CIGARREIRA CAIXA METAL
42103906LINHA PORTUGAL PORTA MOEDAS
43103907LINHA PORTUGAL ESTOJO
44103908LINHA PORTUGAL CARTEIRA 2
45103909LINHA PORTUGAL CARTEIRA
46103910CARTEIRA PRIMAVERA C/FECHO 119 BAND
47103911CARTEIRA PRIMAVERA GRANDE 110
48103912CARTEIRA PRIMAVERA PEQUEÑA 111555
49103913MATRAFONA GIGANTE
50103914BLOCO NOTAS
51103915PULSERIRA PELE COM CAIXA
52103916LICOREIRA CORTIÇA
53103917PULSEIRAS CORTIÇA
54103918COLARES CORTIÇA555
55103919CANETA CORTIÇA COM CAIXA
56106507PELUCHE TAM 1
57106508PELUCHE TAM 3
58106509OCULOS SOL
59106641CARTAS JOGAR PLÁSTICO
60106642CARTEIRA GB SRA PELE
61106643CARTEIRA GB HM PELE-PEQ
62106644CARTEIRA GB HM PELE- GR
63106645SACA ROLHAS CORTIÇA
64106654CIGARREIRAS CORTIÇA555
65106655MINIATURA V. PORTO/LICOR BEIRÃO
66106656CONJ 2 MINIATURAS PORTO+BEIRÃO
67106657PORTA MOEDAS PEQ CORTIÇA-VÁRIOS MODELOS
68106658PORTA MOEDAS DA AVÓ-CORTIÇA
69106659PORTA MOEDAS HM -CORTIÇA
70106660PORTA MOEDAS MOCHILA CORTIÇA
71107671PUZZLES- SORTIDOS
72107672JOGO TABULEIRO-SORTIDO
73107673OVO DINOSSAURO
74107674CONJ CORTIÇA
75type 4103804BORDA D'ÁGUA555
76type 5114755TUBOS T&T 500 UND
77115903TUBOS KORONA 300 UND
78115902TUBOS KORONA 500 UND555
79
80
Sheet1
Cell Formulas
RangeFormula
D6D6=IFNA(INDEX(Sheet2!B3:B215,MATCH(Sheet1!D7,Sheet2!C3:C215,0)),"")
Cells with Data Validation
CellAllowCriteria
D7:G7List=Sheet2!$D$3#

calc3 (2).xlsm
ABCD
83unit price
84type 1103581RPBLACK2-BLACK ULTRA THIN 1,1/40,454
85103582RPBLACK3-BLACK KING SIZE0,495
86103583BOLSA FILTROS REGULAR-8MM-30B-100F0,482
87103584BOLSA FILTROS SLIM-6MM-34B-120F0,433
88103585ISQUEIRO CLIPPER PEQ. CP22RH0,607
89103586ISQUEIRO CLIPPER PEQ FUN1,77
90103587ISQUERIRO CLIPPER GRD CP11RH0,695
91103902ISQUEIRO CLIPPER CLASS.METAL LARG CAIXA6,75
92103903BOLSA FILTROS LONG SLIM-6MM-30B-100F0,557
93103904BOLSA FILTROS LONG REGULAR-8MM-20B-100F0,557
94105457ISQUEIRO Clipper Classic POP CPR11H1,755
95106629ISQUEIRO MINI CLIPPER TUBE0,92
96106630PAPEL CLIPPER BLUE ULTRA THIN REGULAR0,36
97106631PAPEL CLIPPER PURE ULTRA THIN REGULAR0,36
98106632PAPEL CLIPPERPURE ULTRA THIN KSS0,545
99106633PAPEL CLIPPER RED REGULAR CLASSIC0,338
100106634PAPEL CLIPPER GREEN CUT CORNERS REGULAR0,338
101106636MÁQUINA ENROLAR1,697
102106637FILTROS POP UP EXTRA SLIM0,685
103106638MEN-FILTROS POP UP EXTRA SLIM MENTOL0,763
104106639FILTROS SLIM ORGANIC BOLSA0,648
105107670SET KING SIZE SLIM+FILTROS DE PAPEL0,86
106116773PAPEL RAW ORG HEMP KING SIZE SLIM0,575
107116775PAPEL RAW CLASSIC KING SIZE SLIM0,545
108116774PAPEL RAW ORG REGULAR0,385
109116776FILTROS RAW ORGANIC SLIM0,65
110type 2103588RELÓGIO Medium Price17,2
111103589RELÓGIO Low Price13,75
112103905RELOGIO ANALOGICO27,55
113106640SMARTWATCH SAMI45,89
114type 3106506CIGARREIRA CAIXA PLASTICO2,65
115106506CIGARREIRA SILICONE2,65
116106661Cigarreira Cartão2,65
117106506CIGARREIRA CAIXA METAL2,65
118103906LINHA PORTUGAL PORTA MOEDAS3,39
119103907LINHA PORTUGAL ESTOJO4,49
120103908LINHA PORTUGAL CARTEIRA 25,69
121103909LINHA PORTUGAL CARTEIRA5,69
122103910CARTEIRA PRIMAVERA C/FECHO 119 BAND5,65
123103911CARTEIRA PRIMAVERA GRANDE 1104,49
124103912CARTEIRA PRIMAVERA PEQUEÑA 1114,05
125103913MATRAFONA GIGANTE11,45
126103914BLOCO NOTAS1,61
127103915PULSERIRA PELE COM CAIXA12,59
128103916LICOREIRA CORTIÇA6,85
129103917PULSEIRAS CORTIÇA6,85
130103918COLARES CORTIÇA7,99
131103919CANETA CORTIÇA COM CAIXA5,69
132106507PELUCHE TAM 110,29
133106508PELUCHE TAM 316,05
134106509OCULOS SOL15,69
135106641CARTAS JOGAR PLÁSTICO5,2
136106642CARTEIRA GB SRA PELE25,25
137106643CARTEIRA GB HM PELE-PEQ14,89
138106644CARTEIRA GB HM PELE- GR17,2
139106645SACA ROLHAS CORTIÇA2,85
140106654CIGARREIRAS CORTIÇA5,75
141106655MINIATURA V. PORTO/LICOR BEIRÃO3,45
142106656CONJ 2 MINIATURAS PORTO+BEIRÃO5,2
143106657PORTA MOEDAS PEQ CORTIÇA-VÁRIOS MODELOS4,55
144106658PORTA MOEDAS DA AVÓ-CORTIÇA7,9
145106659PORTA MOEDAS HM -CORTIÇA9,15
146106660PORTA MOEDAS MOCHILA CORTIÇA6,05
147107671PUZZLES- SORTIDOS3,45
148107672JOGO TABULEIRO-SORTIDO6,3
149107673OVO DINOSSAURO3,16
150107674CONJ CORTIÇA11,45
151type 4103804BORDA D'ÁGUA1,6
152type 5114755TUBOS T&T 500 UND2,02
153115903TUBOS KORONA 300 UND1,122
154115902TUBOS KORONA 500 UND2,02
155
Sheet1

calc3 (2).xlsm
ABCDEFG
1Where codeBP MAIO 2022type 1type 2type 3type 4type 5
2Postos/vendasClipper RelogiosBorda d'ÁguaRestantes ArtigosTubos
326253Cacem-Av B Amigos
426507Santarem/ nascente
526800Santarem/poente
627036Almada V.R.-Norte
727037Almada V.R.-Sul
827004Pêro Pinheiro
927008Ic 19-Poente
1027078Ramalhão
1127114Mealhada-Nascente
1227115Mealhada-Poente
1327168Santarem -Variante
1427406Duarte Pacheco
1527311A21-Mafra Nasc/N
1627312A21-Mafra Poen/S
1727088Aeroporto
1827020Albufeira V. R.
1927010Amadora
2027011Amadora II-Funch.
2127006Areeiro
2227145Braga-31 Janeiro
2327182Caneças
2426264Carcavelos
2526266Carnaxide
2627116Espinho
2727013Estoril-St António
2827026Faro Norte
2927196Faro Sul
3027140Gaia
3127024Loulé
3226709Lourel Este
3326808Lourel Oeste
3427152Maia
3527330Maia Este-A 41
3627332Maia Oeste-A 41
3727315Ovar Nascente
3827316Ovar Poente
3926536Santana-Sesimbra
4027007Tamariz
4126442Valadares-Nascente
4226811Valadares-Poente
4327029Faro-Hayward
4426008Aveiro-Este
4526802Aveiro-Oeste
4626376Mercês
4726620Fluvial-Porto
4827173Quinta do Conde
4926156Quarteira-Norte
5026804Quarteira -Sul
5126636Cascais-A. Costa
5227144Cascais-B. Rosário
5327126Santa Maria da Feira
5427017Porto Combatentes
5527407Prior Velho
5627325Matosinhos-Custóias
5727000Torres Vedras
5827045Setúbal-B.J.Caraça
5927044Setúbal-Ciprestes
6027291Setúbal-Monte Belo
6127432Oeiras
6227434Perafita/Matosinhos
6327430Vale Figueira
6427047Setúbal/Nac10-Norte
6527201Setúbal/Nac10-Sul
6627417Bela Vista-Lisboa
6727065Domingos Sequeira
6826154Portimão/Raminha
6927253Tavira/Horta Carmo
7026014Granja
7127414Loures/Flamenga
7227500Perafita/Nó A 28
7326427Porto 5 Outubro
7427277Viana do Castelo
7527421Armação Pêra
7626337Sintra Miradouro
7727125OL.AZ.-Ant.Bernardo
7827060Peniche
7926803Porches-Sul
8026149Porches - Norte
8127048Fernão Ferro S/N
8227049Fernão Ferro N/S
8327236Almancil
8427302Ponte de Sôr
8527135Carvalhos P.A.
8627123Mala Posta-Oeste
8727124Mala Posta-Este
8827153Fafe
8926392Gondomar/Fânzeres
9027171Portuzelo
9127428Viseu/Abravezes
9227287Ponte da Barca
9326604Viseu/Via Sacra
9427055Montemor-o Novo
9527003Marinha Grande
9627146Braga/I. Conçeição
9727246Braga/Palmeira
9827489Mafra
9927102Cantanhede
10027306Mealhada/Comba
10127238Irivo
10227361Odivelas
10326322Mem Martins
10427490Boliqueime
10527249Pataias-Poente
10627248Pataias-Nascente
10727021Monte Gordo
10827113O.Az-Ant Jose Alm.
10927150Águas Santas
11027183Silveira
11127031Monchique
11227516Almancil/Pereiras
11327095Leiria
11427541A2-Seixal
11527109S. João da Madeira
11627327Cartaxo
11727127Agueda
11827156Famalicão
11927544S Mamede Infesta
12027501Marinhais
12127189Beja Variante
12227502Guarda
12327543Sintra-Av. Cascais
12427032Quarteira-Av Ceuta
12527511Sintra- Linhó
12627477Porto Alto-Nascente
12727478Porto Alto-Poente
12827424Cercal
12927510Portalegre
13027179Mortágua
13127043Portimão-V 6
13227550Palmela
13327098P Alto -Cruzamento
13427270C1-Ponte da Couraça
13527345Casal Pinheiro
13627195Chão da Feira
13726394Via Norte-ESTE
13826809Via Norte-OESTE
13927457Vizela Norte-Infias
14027326Vila Boa - Barcelos
14127255Santa Barbara Nexe
14227266V. Real-Constantim
14327181IP4 Norte-Mirandela
14427233IP4 Sul-Mirandela
14527437Barreiro-Vila Chã
14627524Tomar
14727014V.N.Gaia- Fojo
14826148BP Penina Sul
14927573Entroncamento
15027130Aguada de Baixo/Este
15127131Aguada de Baixo/Oeste
15226398Marco de Canavezes/N
15327552Leiria-Azóia
15427190Bustos
15527527Venda do Pinheiro
15627523P . Novo-Cascalheira
15727431Évora-Mercado
15827574Alcobaça-Variante
15927136IP5 Mangualde (Norte)
16027137IP5 Mangualde( Sul)
16127435Cantanhede-Murtede
16227147Alfena
16327493Guimarães Creixomil
16427585Ílhavo
16526708Nazaré Pataias
16627153Portimão-Malata
16727532Vila do Conde-Mindelo
16827459Paços Ferreira-Variante
16927204P.Ferreira João XXIII-Este
17027304P.Ferreira João XXIII-Oeste
17127295S. Maria Feira(GIÃO)
17227039Casal do Marco-Norte
17327040Casal do Marco-Sul
17427531Porto-Circunvalação
17527056Pegões Sul
17627451Cova do Gato
17727328Lagoinha- Palmela
17827436Cadaval- Palhoça
17927058Figueira da Foz
18027317Montijo- Rotunda
18127546Lagoa-Parchal
18227588Entroncamento Centro
18327015Via Norte-Amieira/Este
18427016Via Norte- Amieira/Oeste
18527519BP Vila d`Este
18627463Vila Real- Norte/Lamares
18727464Vila Real-Sul /Lamares
18827261Lousada
18927296Maia-Ardegães
19027303Vila Velha de Ródão
19127307Felgueiras-Varziela
19227163Lixa
19327064Coimbra
19427099Lisboa-Doca Bom Sucesso
19527301Paços de Ferreira-Seroa
19627438Montijo- Lançada
19727603Figueira da Foz-Tavarede
19827597Odivelas-Ramada
19927133Carvalhos-Perosinho
20027310Ponte de Lima-Arcozelo
20127244Vieira do Minho
20227604Figueira da Foz-S. Pedro
20327545Maia ZI
20427333Esposende- Fão
20527479Castelo Branco-Montalvão
20627273Cartaxo-Vila Chã
20727247Loures -Sete Casas
20827207Marinha Grande Embra
20927030Barreiro- Alto da Telha
21027360Barreiro-D.João II
21127154Valongo (Campo)
21227598Guimarães Silvares
21327583Grândola Vila
21427034BP Grândola - Oeste
21527587Vilamoura Av. VM 21
216
217
218Total0,00 €0,00 €0,00 €0,00 €0,00 €
BP MAIO 2022
Cell Formulas
RangeFormula
C218:G218C218=SUM(C3:C217)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C73:E73Cell Value<0textNO
E39,C39,C3:G3,G120,G46,C4:E38,F4:G45,C40:E64,F47:G119,F121:G217Cell Value<0textNO
 
Upvote 0
calc3 (2).xlsm
ABCDEFGH
1
2
3
4
5Fatura
6Where code27078270782703726253
7PluPostoRamalhãoRamalhãoAlmada V.R.-SulCacem-Av B Amigos
8type 1103581RPBLACK2-BLACK ULTRA THIN 1,1/41
9103582RPBLACK3-BLACK KING SIZE
10103583BOLSA FILTROS REGULAR-8MM-30B-100F454545
11103584BOLSA FILTROS SLIM-6MM-34B-120F
12103585ISQUEIRO CLIPPER PEQ. CP22RH
13103586ISQUEIRO CLIPPER PEQ FUN
14103587ISQUERIRO CLIPPER GRD CP11RH
15103902ISQUEIRO CLIPPER CLASS.METAL LARG CAIXA
16103903BOLSA FILTROS LONG SLIM-6MM-30B-100F555
17103904BOLSA FILTROS LONG REGULAR-8MM-20B-100F
18105457ISQUEIRO Clipper Classic POP CPR11H
19106629ISQUEIRO MINI CLIPPER TUBE
20106630PAPEL CLIPPER BLUE ULTRA THIN REGULAR
21106631PAPEL CLIPPER PURE ULTRA THIN REGULAR
22106632PAPEL CLIPPERPURE ULTRA THIN KSS555
23106633PAPEL CLIPPER RED REGULAR CLASSIC
24106634PAPEL CLIPPER GREEN CUT CORNERS REGULAR
25106636MÁQUINA ENROLAR
26106637FILTROS POP UP EXTRA SLIM
27106638MEN-FILTROS POP UP EXTRA SLIM MENTOL
28106639FILTROS SLIM ORGANIC BOLSA
29107670SET KING SIZE SLIM+FILTROS DE PAPEL
30116773PAPEL RAW ORG HEMP KING SIZE SLIM
31116775PAPEL RAW CLASSIC KING SIZE SLIM
32116774PAPEL RAW ORG REGULAR
33116776FILTROS RAW ORGANIC SLIM
34Type 2103588RELÓGIO Medium Price
35103589RELÓGIO Low Price555
36103905RELOGIO ANALOGICO
37106640SMARTWATCH SAMI
38Type 3106506CIGARREIRA CAIXA PLASTICO
39106506CIGARREIRA SILICONE
40106661Cigarreira Cartão
41106506CIGARREIRA CAIXA METAL
42103906LINHA PORTUGAL PORTA MOEDAS
43103907LINHA PORTUGAL ESTOJO
44103908LINHA PORTUGAL CARTEIRA 2
45103909LINHA PORTUGAL CARTEIRA
46103910CARTEIRA PRIMAVERA C/FECHO 119 BAND
47103911CARTEIRA PRIMAVERA GRANDE 110
48103912CARTEIRA PRIMAVERA PEQUEÑA 111555
49103913MATRAFONA GIGANTE
50103914BLOCO NOTAS
51103915PULSERIRA PELE COM CAIXA
52103916LICOREIRA CORTIÇA
53103917PULSEIRAS CORTIÇA
54103918COLARES CORTIÇA555
55103919CANETA CORTIÇA COM CAIXA
56106507PELUCHE TAM 1
57106508PELUCHE TAM 3
58106509OCULOS SOL
59106641CARTAS JOGAR PLÁSTICO
60106642CARTEIRA GB SRA PELE
61106643CARTEIRA GB HM PELE-PEQ
62106644CARTEIRA GB HM PELE- GR
63106645SACA ROLHAS CORTIÇA
64106654CIGARREIRAS CORTIÇA555
65106655MINIATURA V. PORTO/LICOR BEIRÃO
66106656CONJ 2 MINIATURAS PORTO+BEIRÃO
67106657PORTA MOEDAS PEQ CORTIÇA-VÁRIOS MODELOS
68106658PORTA MOEDAS DA AVÓ-CORTIÇA
69106659PORTA MOEDAS HM -CORTIÇA
70106660PORTA MOEDAS MOCHILA CORTIÇA
71107671PUZZLES- SORTIDOS
72107672JOGO TABULEIRO-SORTIDO
73107673OVO DINOSSAURO
74107674CONJ CORTIÇA
75type 4103804BORDA D'ÁGUA555
76type 5114755TUBOS T&T 500 UND
77115903TUBOS KORONA 300 UND
78115902TUBOS KORONA 500 UND555
79
80
Sheet1
Cell Formulas
RangeFormula
D6D6=IFNA(INDEX(Sheet2!B3:B215,MATCH(Sheet1!D7,Sheet2!C3:C215,0)),"")
Cells with Data Validation
CellAllowCriteria
D7:G7List=Sheet2!$D$3#

calc3 (2).xlsm
ABCD
83unit price
84type 1103581RPBLACK2-BLACK ULTRA THIN 1,1/40,454
85103582RPBLACK3-BLACK KING SIZE0,495
86103583BOLSA FILTROS REGULAR-8MM-30B-100F0,482
87103584BOLSA FILTROS SLIM-6MM-34B-120F0,433
88103585ISQUEIRO CLIPPER PEQ. CP22RH0,607
89103586ISQUEIRO CLIPPER PEQ FUN1,77
90103587ISQUERIRO CLIPPER GRD CP11RH0,695
91103902ISQUEIRO CLIPPER CLASS.METAL LARG CAIXA6,75
92103903BOLSA FILTROS LONG SLIM-6MM-30B-100F0,557
93103904BOLSA FILTROS LONG REGULAR-8MM-20B-100F0,557
94105457ISQUEIRO Clipper Classic POP CPR11H1,755
95106629ISQUEIRO MINI CLIPPER TUBE0,92
96106630PAPEL CLIPPER BLUE ULTRA THIN REGULAR0,36
97106631PAPEL CLIPPER PURE ULTRA THIN REGULAR0,36
98106632PAPEL CLIPPERPURE ULTRA THIN KSS0,545
99106633PAPEL CLIPPER RED REGULAR CLASSIC0,338
100106634PAPEL CLIPPER GREEN CUT CORNERS REGULAR0,338
101106636MÁQUINA ENROLAR1,697
102106637FILTROS POP UP EXTRA SLIM0,685
103106638MEN-FILTROS POP UP EXTRA SLIM MENTOL0,763
104106639FILTROS SLIM ORGANIC BOLSA0,648
105107670SET KING SIZE SLIM+FILTROS DE PAPEL0,86
106116773PAPEL RAW ORG HEMP KING SIZE SLIM0,575
107116775PAPEL RAW CLASSIC KING SIZE SLIM0,545
108116774PAPEL RAW ORG REGULAR0,385
109116776FILTROS RAW ORGANIC SLIM0,65
110type 2103588RELÓGIO Medium Price17,2
111103589RELÓGIO Low Price13,75
112103905RELOGIO ANALOGICO27,55
113106640SMARTWATCH SAMI45,89
114type 3106506CIGARREIRA CAIXA PLASTICO2,65
115106506CIGARREIRA SILICONE2,65
116106661Cigarreira Cartão2,65
117106506CIGARREIRA CAIXA METAL2,65
118103906LINHA PORTUGAL PORTA MOEDAS3,39
119103907LINHA PORTUGAL ESTOJO4,49
120103908LINHA PORTUGAL CARTEIRA 25,69
121103909LINHA PORTUGAL CARTEIRA5,69
122103910CARTEIRA PRIMAVERA C/FECHO 119 BAND5,65
123103911CARTEIRA PRIMAVERA GRANDE 1104,49
124103912CARTEIRA PRIMAVERA PEQUEÑA 1114,05
125103913MATRAFONA GIGANTE11,45
126103914BLOCO NOTAS1,61
127103915PULSERIRA PELE COM CAIXA12,59
128103916LICOREIRA CORTIÇA6,85
129103917PULSEIRAS CORTIÇA6,85
130103918COLARES CORTIÇA7,99
131103919CANETA CORTIÇA COM CAIXA5,69
132106507PELUCHE TAM 110,29
133106508PELUCHE TAM 316,05
134106509OCULOS SOL15,69
135106641CARTAS JOGAR PLÁSTICO5,2
136106642CARTEIRA GB SRA PELE25,25
137106643CARTEIRA GB HM PELE-PEQ14,89
138106644CARTEIRA GB HM PELE- GR17,2
139106645SACA ROLHAS CORTIÇA2,85
140106654CIGARREIRAS CORTIÇA5,75
141106655MINIATURA V. PORTO/LICOR BEIRÃO3,45
142106656CONJ 2 MINIATURAS PORTO+BEIRÃO5,2
143106657PORTA MOEDAS PEQ CORTIÇA-VÁRIOS MODELOS4,55
144106658PORTA MOEDAS DA AVÓ-CORTIÇA7,9
145106659PORTA MOEDAS HM -CORTIÇA9,15
146106660PORTA MOEDAS MOCHILA CORTIÇA6,05
147107671PUZZLES- SORTIDOS3,45
148107672JOGO TABULEIRO-SORTIDO6,3
149107673OVO DINOSSAURO3,16
150107674CONJ CORTIÇA11,45
151type 4103804BORDA D'ÁGUA1,6
152type 5114755TUBOS T&T 500 UND2,02
153115903TUBOS KORONA 300 UND1,122
154115902TUBOS KORONA 500 UND2,02
155
Sheet1

calc3 (2).xlsm
ABCDEFG
1Where codeBP MAIO 2022type 1type 2type 3type 4type 5
2Postos/vendasClipper RelogiosBorda d'ÁguaRestantes ArtigosTubos
326253Cacem-Av B Amigos
426507Santarem/ nascente
526800Santarem/poente
627036Almada V.R.-Norte
727037Almada V.R.-Sul
827004Pêro Pinheiro
927008Ic 19-Poente
1027078Ramalhão
1127114Mealhada-Nascente
1227115Mealhada-Poente
1327168Santarem -Variante
1427406Duarte Pacheco
1527311A21-Mafra Nasc/N
1627312A21-Mafra Poen/S
1727088Aeroporto
1827020Albufeira V. R.
1927010Amadora
2027011Amadora II-Funch.
2127006Areeiro
2227145Braga-31 Janeiro
2327182Caneças
2426264Carcavelos
2526266Carnaxide
2627116Espinho
2727013Estoril-St António
2827026Faro Norte
2927196Faro Sul
3027140Gaia
3127024Loulé
3226709Lourel Este
3326808Lourel Oeste
3427152Maia
3527330Maia Este-A 41
3627332Maia Oeste-A 41
3727315Ovar Nascente
3827316Ovar Poente
3926536Santana-Sesimbra
4027007Tamariz
4126442Valadares-Nascente
4226811Valadares-Poente
4327029Faro-Hayward
4426008Aveiro-Este
4526802Aveiro-Oeste
4626376Mercês
4726620Fluvial-Porto
4827173Quinta do Conde
4926156Quarteira-Norte
5026804Quarteira -Sul
5126636Cascais-A. Costa
5227144Cascais-B. Rosário
5327126Santa Maria da Feira
5427017Porto Combatentes
5527407Prior Velho
5627325Matosinhos-Custóias
5727000Torres Vedras
5827045Setúbal-B.J.Caraça
5927044Setúbal-Ciprestes
6027291Setúbal-Monte Belo
6127432Oeiras
6227434Perafita/Matosinhos
6327430Vale Figueira
6427047Setúbal/Nac10-Norte
6527201Setúbal/Nac10-Sul
6627417Bela Vista-Lisboa
6727065Domingos Sequeira
6826154Portimão/Raminha
6927253Tavira/Horta Carmo
7026014Granja
7127414Loures/Flamenga
7227500Perafita/Nó A 28
7326427Porto 5 Outubro
7427277Viana do Castelo
7527421Armação Pêra
7626337Sintra Miradouro
7727125OL.AZ.-Ant.Bernardo
7827060Peniche
7926803Porches-Sul
8026149Porches - Norte
8127048Fernão Ferro S/N
8227049Fernão Ferro N/S
8327236Almancil
8427302Ponte de Sôr
8527135Carvalhos P.A.
8627123Mala Posta-Oeste
8727124Mala Posta-Este
8827153Fafe
8926392Gondomar/Fânzeres
9027171Portuzelo
9127428Viseu/Abravezes
9227287Ponte da Barca
9326604Viseu/Via Sacra
9427055Montemor-o Novo
9527003Marinha Grande
9627146Braga/I. Conçeição
9727246Braga/Palmeira
9827489Mafra
9927102Cantanhede
10027306Mealhada/Comba
10127238Irivo
10227361Odivelas
10326322Mem Martins
10427490Boliqueime
10527249Pataias-Poente
10627248Pataias-Nascente
10727021Monte Gordo
10827113O.Az-Ant Jose Alm.
10927150Águas Santas
11027183Silveira
11127031Monchique
11227516Almancil/Pereiras
11327095Leiria
11427541A2-Seixal
11527109S. João da Madeira
11627327Cartaxo
11727127Agueda
11827156Famalicão
11927544S Mamede Infesta
12027501Marinhais
12127189Beja Variante
12227502Guarda
12327543Sintra-Av. Cascais
12427032Quarteira-Av Ceuta
12527511Sintra- Linhó
12627477Porto Alto-Nascente
12727478Porto Alto-Poente
12827424Cercal
12927510Portalegre
13027179Mortágua
13127043Portimão-V 6
13227550Palmela
13327098P Alto -Cruzamento
13427270C1-Ponte da Couraça
13527345Casal Pinheiro
13627195Chão da Feira
13726394Via Norte-ESTE
13826809Via Norte-OESTE
13927457Vizela Norte-Infias
14027326Vila Boa - Barcelos
14127255Santa Barbara Nexe
14227266V. Real-Constantim
14327181IP4 Norte-Mirandela
14427233IP4 Sul-Mirandela
14527437Barreiro-Vila Chã
14627524Tomar
14727014V.N.Gaia- Fojo
14826148BP Penina Sul
14927573Entroncamento
15027130Aguada de Baixo/Este
15127131Aguada de Baixo/Oeste
15226398Marco de Canavezes/N
15327552Leiria-Azóia
15427190Bustos
15527527Venda do Pinheiro
15627523P . Novo-Cascalheira
15727431Évora-Mercado
15827574Alcobaça-Variante
15927136IP5 Mangualde (Norte)
16027137IP5 Mangualde( Sul)
16127435Cantanhede-Murtede
16227147Alfena
16327493Guimarães Creixomil
16427585Ílhavo
16526708Nazaré Pataias
16627153Portimão-Malata
16727532Vila do Conde-Mindelo
16827459Paços Ferreira-Variante
16927204P.Ferreira João XXIII-Este
17027304P.Ferreira João XXIII-Oeste
17127295S. Maria Feira(GIÃO)
17227039Casal do Marco-Norte
17327040Casal do Marco-Sul
17427531Porto-Circunvalação
17527056Pegões Sul
17627451Cova do Gato
17727328Lagoinha- Palmela
17827436Cadaval- Palhoça
17927058Figueira da Foz
18027317Montijo- Rotunda
18127546Lagoa-Parchal
18227588Entroncamento Centro
18327015Via Norte-Amieira/Este
18427016Via Norte- Amieira/Oeste
18527519BP Vila d`Este
18627463Vila Real- Norte/Lamares
18727464Vila Real-Sul /Lamares
18827261Lousada
18927296Maia-Ardegães
19027303Vila Velha de Ródão
19127307Felgueiras-Varziela
19227163Lixa
19327064Coimbra
19427099Lisboa-Doca Bom Sucesso
19527301Paços de Ferreira-Seroa
19627438Montijo- Lançada
19727603Figueira da Foz-Tavarede
19827597Odivelas-Ramada
19927133Carvalhos-Perosinho
20027310Ponte de Lima-Arcozelo
20127244Vieira do Minho
20227604Figueira da Foz-S. Pedro
20327545Maia ZI
20427333Esposende- Fão
20527479Castelo Branco-Montalvão
20627273Cartaxo-Vila Chã
20727247Loures -Sete Casas
20827207Marinha Grande Embra
20927030Barreiro- Alto da Telha
21027360Barreiro-D.João II
21127154Valongo (Campo)
21227598Guimarães Silvares
21327583Grândola Vila
21427034BP Grândola - Oeste
21527587Vilamoura Av. VM 21
216
217
218Total0,00 €0,00 €0,00 €0,00 €0,00 €
BP MAIO 2022
Cell Formulas
RangeFormula
C218:G218C218=SUM(C3:C217)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C73:E73Cell Value<0textNO
E39,C39,C3:G3,G120,G46,C4:E38,F4:G45,C40:E64,F47:G119,F121:G217Cell Value<0textNO
Wonderful effort. Now your data makes all the sense.

What I have understood so far that in the sheet BP MAIO 2022 you want to populate some calculation from C3 to G3. Right?

Now explain me what exactly you want. Then I shall explain few things to you. The way you are keeping data in Excel needs slight improvement. That I will explain to you, once I'm clear what eaxctly you want to do.

Thanks for your patience while, I'm patiently trying to understand your need.
 
Upvote 0
In the first table I have a macro that copies the data in column D (d5:d78) and pastes it in column E (e5:e78). Everytime I have new data I paste it on column E, and what was there before moves 1 column to the right.
The data of the first table corresponds to the quantities of each specific product(c8:c78) that were sold to each customer(d7 for example).
My problem is the following: I want to know how much did any of my customers spend on each type of products (type 1, type 2, type 3, etc). For that to happen, I need the values from each column from table 1(starting in column E) to be multiplied by their respective unit price and to be pasted and summed in the cell that corresponds to their type of product and the customer that they were sold to.
 
Upvote 0
In the first table I have a macro that copies the data in column D (d5:d78) and pastes it in column E (e5:e78). Everytime I have new data I paste it on column E, and what was there before moves 1 column to the right.
The data of the first table corresponds to the quantities of each specific product(c8:c78) that were sold to each customer(d7 for example).
My problem is the following: I want to know how much did any of my customers spend on each type of products (type 1, type 2, type 3, etc). For that to happen, I need the values from each column from table 1(starting in column E) to be multiplied by their respective unit price and to be pasted and summed in the cell that corresponds to their type of product and the customer that they were sold to.
Now understood your question just give me few minutes and I come back with the solution. That is actually not that difficult. Just needs some data improvement. I just revert.
 
Upvote 0
Ok cheers
Please look at the solution below -

What I did just to understand your data and get it done faster, I took all the data on i sheet itself - so when you are copying any formula remember to give the right references of sheet and columns. Only that way formulas will work the intended way for you.

Then, IMPORTANT - You have merged columns that carry Type 1, 2 3 & 4 - They all need to be unmerged and filled down - I have highlighted the changes made to column in Blue.

Another thing, I added a helper column of Unit price (shown in Pink) to pull Prices from another table.

Rest is all populating formulae as per the need. May Check

Best wishes

All Records.xlsb
ABCDEFGH
1
2
3
4
5Fatura
6Where code27078270782703726253
7PluPostoUnit PriceRamalhãoRamalhãoAlmada V.R.-SulCacem-Av B Amigos
8type 1103581RPBLACK2-BLACK ULTRA THIN 1,1/40.4541
9type 1103582RPBLACK3-BLACK KING SIZE0.495
10type 1103583BOLSA FILTROS REGULAR-8MM-30B-100F0.482454545
11type 1103584BOLSA FILTROS SLIM-6MM-34B-120F0.433
12type 1103585ISQUEIRO CLIPPER PEQ. CP22RH0.607
13type 1103586ISQUEIRO CLIPPER PEQ FUN1.77
14type 1103587ISQUERIRO CLIPPER GRD CP11RH0.695
15type 1103902ISQUEIRO CLIPPER CLASS.METAL LARG CAIXA6.75
16type 1103903BOLSA FILTROS LONG SLIM-6MM-30B-100F0.557555
17type 1103904BOLSA FILTROS LONG REGULAR-8MM-20B-100F13.75
18type 1105457ISQUEIRO Clipper Classic POP CPR11H5.69
19type 1106629ISQUEIRO MINI CLIPPER TUBE15.69
20type 1106630PAPEL CLIPPER BLUE ULTRA THIN REGULAR15.69
21type 1106631PAPEL CLIPPER PURE ULTRA THIN REGULAR15.69
22type 1106632PAPEL CLIPPERPURE ULTRA THIN KSS1.6555
23type 1106633PAPEL CLIPPER RED REGULAR CLASSIC15.69
24type 1106634PAPEL CLIPPER GREEN CUT CORNERS REGULAR15.69
25type 1106636MÁQUINA ENROLAR15.69
26type 1106637FILTROS POP UP EXTRA SLIM15.69
27type 1106638MEN-FILTROS POP UP EXTRA SLIM MENTOL15.69
28type 1106639FILTROS SLIM ORGANIC BOLSA15.69
29type 1107670SET KING SIZE SLIM+FILTROS DE PAPEL6.05
30type 1116773PAPEL RAW ORG HEMP KING SIZE SLIM2.02
31type 1116775PAPEL RAW CLASSIC KING SIZE SLIM2.02
32type 1116774PAPEL RAW ORG REGULAR2.02
33type 1116776FILTROS RAW ORGANIC SLIM2.02
34Type 2103588RELÓGIO Medium Price17.2
35Type 2103589RELÓGIO Low Price13.75555
36Type 2103905RELOGIO ANALOGICO27.55
37Type 2106640SMARTWATCH SAMI15.69
38Type 3106506CIGARREIRA CAIXA PLASTICO5.69
39Type 3106506CIGARREIRA SILICONE5.69
40Type 3106661Cigarreira Cartão1.6
41Type 3106506CIGARREIRA CAIXA METAL5.69
42Type 3103906LINHA PORTUGAL PORTA MOEDAS3.39
43Type 3103907LINHA PORTUGAL ESTOJO4.49
44Type 3103908LINHA PORTUGAL CARTEIRA 25.69
45Type 3103909LINHA PORTUGAL CARTEIRA5.69
46Type 3103910CARTEIRA PRIMAVERA C/FECHO 119 BAND5.65
47Type 3103911CARTEIRA PRIMAVERA GRANDE 1104.49
48Type 3103912CARTEIRA PRIMAVERA PEQUEÑA 1114.05555
49Type 3103913MATRAFONA GIGANTE11.45
50Type 3103914BLOCO NOTAS1.61
51Type 3103915PULSERIRA PELE COM CAIXA12.59
52Type 3103916LICOREIRA CORTIÇA6.85
53Type 3103917PULSEIRAS CORTIÇA6.85
54Type 3103918COLARES CORTIÇA7.99555
55Type 3103919CANETA CORTIÇA COM CAIXA5.69
56Type 3106507PELUCHE TAM 110.29
57Type 3106508PELUCHE TAM 316.05
58Type 3106509OCULOS SOL1.6
59Type 3106641CARTAS JOGAR PLÁSTICO5.2
60Type 3106642CARTEIRA GB SRA PELE25.25
61Type 3106643CARTEIRA GB HM PELE-PEQ14.89
62Type 3106644CARTEIRA GB HM PELE- GR17.2
63Type 3106645SACA ROLHAS CORTIÇA2.85
64Type 3106654CIGARREIRAS CORTIÇA5.75555
65Type 3106655MINIATURA V. PORTO/LICOR BEIRÃO3.45
66Type 3106656CONJ 2 MINIATURAS PORTO+BEIRÃO5.2
67Type 3106657PORTA MOEDAS PEQ CORTIÇA-VÁRIOS MODELOS1.6
68Type 3106658PORTA MOEDAS DA AVÓ-CORTIÇA7.9
69Type 3106659PORTA MOEDAS HM -CORTIÇA9.15
70Type 3106660PORTA MOEDAS MOCHILA CORTIÇA6.05
71Type 3107671PUZZLES- SORTIDOS3.45
72Type 3107672JOGO TABULEIRO-SORTIDO1.6
73Type 3107673OVO DINOSSAURO3.16
74Type 3107674CONJ CORTIÇA1.6
75type 4103804BORDA D'ÁGUA1.6555
76type 5114755TUBOS T&T 500 UND2.02
77type 5115903TUBOS KORONA 300 UND2.02
78type 5115902TUBOS KORONA 500 UND2.02555
Sheet2
Cell Formulas
RangeFormula
E6E6=IFNA(INDEX(O3:O215,MATCH(E7,P3:P215,0)),"")
D8:D78D8=LOOKUP(B8,K2:K72,M2:M72)


All Records.xlsb
JKLM
1unit price
2type 1103581RPBLACK2-BLACK ULTRA THIN 1,1/40.454
3type 1103582RPBLACK3-BLACK KING SIZE0.495
4type 1103583BOLSA FILTROS REGULAR-8MM-30B-100F0.482
5type 1103584BOLSA FILTROS SLIM-6MM-34B-120F0.433
6type 1103585ISQUEIRO CLIPPER PEQ. CP22RH0.607
7type 1103586ISQUEIRO CLIPPER PEQ FUN1.77
8type 1103587ISQUERIRO CLIPPER GRD CP11RH0.695
9type 1103902ISQUEIRO CLIPPER CLASS.METAL LARG CAIXA6.75
10type 1103903BOLSA FILTROS LONG SLIM-6MM-30B-100F0.557
11type 1103904BOLSA FILTROS LONG REGULAR-8MM-20B-100F0.557
12type 1105457ISQUEIRO Clipper Classic POP CPR11H1.755
13type 1106629ISQUEIRO MINI CLIPPER TUBE0.92
14type 1106630PAPEL CLIPPER BLUE ULTRA THIN REGULAR0.36
15type 1106631PAPEL CLIPPER PURE ULTRA THIN REGULAR0.36
16type 1106632PAPEL CLIPPERPURE ULTRA THIN KSS0.545
17type 1106633PAPEL CLIPPER RED REGULAR CLASSIC0.338
18type 1106634PAPEL CLIPPER GREEN CUT CORNERS REGULAR0.338
19type 1106636MÁQUINA ENROLAR1.697
20type 1106637FILTROS POP UP EXTRA SLIM0.685
21type 1106638MEN-FILTROS POP UP EXTRA SLIM MENTOL0.763
22type 1106639FILTROS SLIM ORGANIC BOLSA0.648
23type 1107670SET KING SIZE SLIM+FILTROS DE PAPEL0.86
24type 1116773PAPEL RAW ORG HEMP KING SIZE SLIM0.575
25type 1116775PAPEL RAW CLASSIC KING SIZE SLIM0.545
26type 1116774PAPEL RAW ORG REGULAR0.385
27type 1116776FILTROS RAW ORGANIC SLIM0.65
28Type 2103588RELÓGIO Medium Price17.2
29Type 2103589RELÓGIO Low Price13.75
30Type 2103905RELOGIO ANALOGICO27.55
31Type 2106640SMARTWATCH SAMI45.89
32Type 3106506CIGARREIRA CAIXA PLASTICO2.65
33Type 3106506CIGARREIRA SILICONE2.65
34Type 3106661Cigarreira Cartão2.65
35Type 3106506CIGARREIRA CAIXA METAL2.65
36Type 3103906LINHA PORTUGAL PORTA MOEDAS3.39
37Type 3103907LINHA PORTUGAL ESTOJO4.49
38Type 3103908LINHA PORTUGAL CARTEIRA 25.69
39Type 3103909LINHA PORTUGAL CARTEIRA5.69
40Type 3103910CARTEIRA PRIMAVERA C/FECHO 119 BAND5.65
41Type 3103911CARTEIRA PRIMAVERA GRANDE 1104.49
42Type 3103912CARTEIRA PRIMAVERA PEQUEÑA 1114.05
43Type 3103913MATRAFONA GIGANTE11.45
44Type 3103914BLOCO NOTAS1.61
45Type 3103915PULSERIRA PELE COM CAIXA12.59
46Type 3103916LICOREIRA CORTIÇA6.85
47Type 3103917PULSEIRAS CORTIÇA6.85
48Type 3103918COLARES CORTIÇA7.99
49Type 3103919CANETA CORTIÇA COM CAIXA5.69
50Type 3106507PELUCHE TAM 110.29
51Type 3106508PELUCHE TAM 316.05
52Type 3106509OCULOS SOL15.69
53Type 3106641CARTAS JOGAR PLÁSTICO5.2
54Type 3106642CARTEIRA GB SRA PELE25.25
55Type 3106643CARTEIRA GB HM PELE-PEQ14.89
56Type 3106644CARTEIRA GB HM PELE- GR17.2
57Type 3106645SACA ROLHAS CORTIÇA2.85
58Type 3106654CIGARREIRAS CORTIÇA5.75
59Type 3106655MINIATURA V. PORTO/LICOR BEIRÃO3.45
60Type 3106656CONJ 2 MINIATURAS PORTO+BEIRÃO5.2
61Type 3106657PORTA MOEDAS PEQ CORTIÇA-VÁRIOS MODELOS4.55
62Type 3106658PORTA MOEDAS DA AVÓ-CORTIÇA7.9
63Type 3106659PORTA MOEDAS HM -CORTIÇA9.15
64Type 3106660PORTA MOEDAS MOCHILA CORTIÇA6.05
65Type 3107671PUZZLES- SORTIDOS3.45
66Type 3107672JOGO TABULEIRO-SORTIDO6.3
67Type 3107673OVO DINOSSAURO3.16
68Type 3107674CONJ CORTIÇA11.45
69type 4103804BORDA D'ÁGUA1.6
70type 5114755TUBOS T&T 500 UND2.02
71type 5115903TUBOS KORONA 300 UND1.122
72type 5115902TUBOS KORONA 500 UND2.02
Sheet2


All Records.xlsb
OPQRSTU
1Where codeBP MAIO 2022type 1type 2type 3type 4type 5
2Postos/vendasClipper RelogiosBorda d'ÁguaRestantes ArtigosTubos
326253Cacem-Av B Amigos0.45    
426507Santarem/ nascente     
526800Santarem/poente     
627036Almada V.R.-Norte     
727037Almada V.R.-Sul32.4868.7588.958.0010.10
827004Pêro Pinheiro     
927008Ic 19-Poente     
1027078Ramalhão32.4868.7588.958.0010.10
1127114Mealhada-Nascente     
1227115Mealhada-Poente     
1327168Santarem -Variante     
Sheet2
Cell Formulas
RangeFormula
Q3:U13Q3=IF(SUMPRODUCT($D$8:$D$78*$F$8:$H$78*($A$8:$A$78=Q$1)*($F$6:$H$6=$O3))=0,"",SUMPRODUCT($D$8:$D$78*$F$8:$H$78*($A$8:$A$78=Q$1)*($F$6:$H$6=$O3)))
 
Upvote 0

Forum statistics

Threads
1,214,992
Messages
6,122,631
Members
449,095
Latest member
bsb1122

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