# Help to correct formula

#### nhnn1986

##### Board Regular
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))

### 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
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
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
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*")

Replies
2
Views
61
Replies
1
Views
122
Replies
12
Views
232
Replies
2
Views
82
Replies
1
Views
218

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.

### Which adblocker are you using?

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

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