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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,214,927
Messages
6,122,309
Members
449,080
Latest member
jmsotelo

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