# SUMPRODUCT or ARRAY ARRRRGGH!

#### jasonshirt

##### New Member
Hi
i am trying to sum data within a spreadsheet using certain criteria.

I have used sumif before but this was when searching for the actual full part number i.e. AWV2500-A. I want to simply not by each part but by ones which begin AWV... so this will give me one total for AWV type parts.
In addition the file has several months data i want to pick up 200806 month only.

This is the formula i used but returned VALUE statement.

=SUM(IF(A3727:A6078="AWV&"*",IF(K3727:K6078=""200806",C3727:C6078))

Is there a SUM product i could use?

Any help would be apprecaited.
Thanks
Jason

### Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

#### DonkeyOte

##### MrExcel MVP
=sumproduct(--(left(\$a\$3727:\$a\$6078,3)="awv"),--(\$k\$3727:\$k\$6078="200806"),--(\$c\$3727:\$c\$6078))

#### jasonshirt

##### New Member
LASW10
Thanks this works a dream!

Can you tell me what the -- marks are for, what purpose are they for?

Thanks

Jason

Replies
1
Views
29
Replies
3
Views
42
Replies
1
Views
45
Replies
5
Views
85
Replies
5
Views
361

1,127,931
Messages
5,627,690
Members
416,266
Latest member
stevenvanroeden

### 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