Got stuck with SUMPRODUCT - multiple criteria (text/numbers)

MadsHusted

New Member
Joined
Oct 3, 2018
Messages
4
Hi,

I'm working with a SUMPRODUCT formula to sum the total amount of occurrences in my workbook (+3800 lines).

The criteria are:
Array 1; if cell value matches other cell
Array 2; if cell value matches "text"

Either I get #N/A or 0.. I suspect it's related to formating issues but neither TRIM(), TEXT() nor formatting to General works.. I've tried to add ISNUMBER but it returns #VALUE !

I would appreciate any inputs. Let me know if you can't open the file.

Thank you.

Link to OneDrive: https://1drv.ms/x/s!AjXp0Ya_hoO0hmAmQRUzvSGhXNmu
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[TD]
C
[/TD]
[TD]
D
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]Article code[/TD]
[TD]Product ABC code[/TD]
[TD]Supplier code[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
2
[/TD]
[TD]2000F34821422[/TD]
[TD]CA[/TD]
[TD]15837[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
3
[/TD]
[TD]B43108A1[/TD]
[TD]BB[/TD]
[TD]15837[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
4
[/TD]
[TD]32737CRC[/TD]
[TD]N[/TD]
[TD]54630[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
5
[/TD]
[TD]AGLA403011P001[/TD]
[TD]CA[/TD]
[TD]15837[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
6
[/TD]
[TD]SKPF12C08N[/TD]
[TD]BB[/TD]
[TD]15837[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
7
[/TD]
[TD]KRLP7KRP006[/TD]
[TD]BA[/TD]
[TD]15837[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
8
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
9
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
10
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
11
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
12
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
13
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
14
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
15
[/TD]
[TD]Supplier code[/TD]
[TD]
AA​
[/TD]
[TD]
BA​
[/TD]
[TD]
CA​
[/TD]
[/TR]
[TR]
[TD]
16
[/TD]
[TD]15837[/TD]
[TD]
0​
[/TD]
[TD]
1​
[/TD]
[TD]
2​
[/TD]
[/TR]
[TR]
[TD]
17
[/TD]
[TD]54630[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[/TR]
</tbody>[/TABLE]

Change in this way



B16=
COUNTIFS($C$2:$C$7,$A16,$B$2:$B$7,B$15) copy across and down




 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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