sumproduct issue

bigry26

New Member
Joined
Apr 25, 2018
Messages
14
Hi,

I have some data that I need to reference from a different sheet while its closed. I know I need to use sumproduct instead of sumifs but I can't seem to get it to work. I need to total the number of lbs for each day.



"Raw Data"

AB
DateLBS
05/01/1810
05/01/1844
05/02/1850
05/02/1820
05/03/1812
05/03/1842
05/04/187
05/05/1832
05/06/1822

<tbody>
</tbody>



Report
ABCDE
05/01/1805/02/1805/03/1805/04/1805/05/18

<tbody>
</tbody>


=sumproduct(--($A:$A),--($B:$B,A2) Is the formula I'm using and I am getting #value error. I am using excel 2016.


Thanks in advance,

Big Ry
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Firstly it looks like you have the columns the wrong way round. Secondly in this case you only use the -- to coerce a true/false result into a number so:

=SUMPRODUCT(--(A:A=A2),B:B)

Then really you shouldnt use full column references in a SUMPRODUCT so change them to a sensible last row. You were getting the value error because you were trying to coerce the header into a number.
 
Upvote 0
In this example your data are on sheet3 and the results you want on sheet4.
Excel Workbook
ABCDE
15/1/20185/2/20185/3/20185/4/20185/5/2018
2547054732
Sheet4
 
Upvote 0
In this example your data are on sheet3 and the results you want on sheet4.
Sheet4

ABCDE
15/1/20185/2/20185/3/20185/4/20185/5/2018
2547054732

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
A2=SUMPRODUCT(--(Sheet3!$A$2:$A$10=Sheet4!A$1),Sheet3!$B$2:$B$10)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4


Thank you Joe Mo!
 
Upvote 0
You are welcome - thanks for the reply.
 
Upvote 0

Forum statistics

Threads
1,215,315
Messages
6,124,207
Members
449,147
Latest member
sweetkt327

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