# In a Sumproduct how do insert an array cell value in the formula

#### zta0722

##### New Member
In column A is a list of vendors id numbers and in column c is the formula
 =SUMPRODUCT(--(\$E\$178:\$E\$65703="'vendor ID #"),SUBTOTAL(3,OFFSET(\$B\$178,ROW(\$E\$178:\$E\$65703)-ROW(\$B\$178),0)))

<COLGROUP><COL style="WIDTH: 185pt; mso-width-source: userset; mso-width-alt: 8996" width=246><TBODY>
</TBODY>

I would like the formula to read the vendor id number that is in cell A1. So the formula would like
 SUMPRODUCT(--(\$E\$178:\$E\$65703="A1"),SUBTOTAL(3,OFFSET(\$B\$178,ROW(\$E\$178:\$E\$65703)-ROW(\$B\$178),0)))

<TBODY>
</TBODY><COLGROUP><COL></COLGROUP>

Thanks in advance for any help

### Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
no quotes around the A1.

In column A is a list of vendors id numbers and in column c is the formula
 =SUMPRODUCT(--(\$E\$178:\$E\$65703="'vendor ID #"),SUBTOTAL(3,OFFSET(\$B\$178,ROW(\$E\$178:\$E\$65703)-ROW(\$B\$178),0)))

<TBODY>
</TBODY>

I would like the formula to read the vendor id number that is in cell A1. So the formula would like
 SUMPRODUCT(--(\$E\$178:\$E\$65703="A1"),SUBTOTAL(3,OFFSET(\$B\$178,ROW(\$E\$178:\$E\$65703)-ROW(\$B\$178),0)))

<TBODY>
</TBODY>

Thanks in advance for any help

No quotes around the A1 cell reference, but also B, not E, for reasons of coherency :
Rich (BB code):
``````SUMPRODUCT(
--(\$E\$178:\$E\$65703=A1),
SUBTOTAL(3,OFFSET(\$B\$178,ROW(\$B\$178:\$B\$65703)-ROW(\$B\$178),0)))
``````

Replies
2
Views
202
Replies
8
Views
1K
Replies
3
Views
299
Replies
0
Views
1K
Replies
3
Views
468

1,196,080
Messages
6,013,314
Members
441,760
Latest member
Sharina

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