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

zta0722

New Member
Joined
Sep 17, 2014
Messages
8
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)))</SPAN>

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


Thanks in advance for any help
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
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)))</SPAN>

<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)))
 
Upvote 0

Forum statistics

Threads
1,215,771
Messages
6,126,799
Members
449,337
Latest member
BBV123

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