Help to correct formula

nhnn1986

Board Regular
Joined
Oct 12, 2017
Messages
82
Hi all

I have two formula but one have result, one have result = 0. I can;t find out the mistake of wrong formula:

formula have result =+SUMPRODUCT((('ky1'!$E$2:$E$9999="0101")*(LEFT('ky1'!$A$2:$A$9999;6)="G03654"))*('ky1'!$F$2:$F$9999:'ky1'!$G$2:$G$9999))

formula result = 0: =+SUMPRODUCT((('ky3'!$D$2:$D$9999="0101")*(LEFT('ky3'!$A$2:$A$9999;6)="G01014"))*('ky3'!$E$2:$E$9999:'ky3'!$F$2:$F$9999))

Please help me, thanks./.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

aqeelnokia99

Board Regular
Joined
Dec 23, 2018
Messages
65
in first formula u try to find value G03654 and in second u find G01014 so your formula is ok check your data my not have start value G01014
 

nhnn1986

Board Regular
Joined
Oct 12, 2017
Messages
82
Hi aqe

First formula I sum all value in sheet(ky1) range F2:G9999 with two condition: first conditions is "0101" in E2:E9999, second condition is have "G03654" in 6 first letter

Second formula I sum all value in sheet(ky3) range E2:F9999 with two condition: first conditions is "0101" in D2:D9999, second condition is have "G01014" in 6 first letter

The result is: First formula have correct result but Second formula equal 0, this is wrong result in formula 2
 

nhnn1986

Board Regular
Joined
Oct 12, 2017
Messages
82
I 've found the way to replace the second formula sumproduct by sumifs, the result is right:

=+SUMIFS('ky3'!$E$2:$E$9999;'ky3'!$D$2:$D$9999;"0101";'ky3'!$A$2:$A$9999;"G01014*")+SUMIFS('ky3'!$F$2:$F$9999;'ky3'!$D$2:$D$9999;"0101";'ky3'!$A$2:$A$9999;"G01014*")

Many thanks alls had read this topic./.
 

Forum statistics

Threads
1,136,969
Messages
5,678,893
Members
419,787
Latest member
juanam

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
Top