ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pivot table vs formula (https://www.excelbanter.com/excel-programming/411586-pivot-table-vs-formula.html)

sk8gfast

Pivot table vs formula
 
I can get this info via pivot table, but there has to be a way to get sum it
via a formula. I have multiple worksheets and each has multiple rows/columns
of data. I want to use 2 different sets of criteria (from different
worksheets) to sum multiple columns of numbers in the master worksheet. I
keep getting #N/A.

{=SUM(IF(($A2=Customer!$F$1:$F$800)*($B2=Sales!$H$ 1:$H$800),Master!L$1:O$800,FALSE))}

Can anyone help?

Jim Thomlinson

Pivot table vs formula
 
Try this...

=SUMPRODUCT(--($A2=Customer!$F$1:$F$800),
--($B2=Sales!$H$1:$H$800),Master!L$1:O$800)

Check out this link...
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
HTH...

Jim Thomlinson


"sk8gfast" wrote:

I can get this info via pivot table, but there has to be a way to get sum it
via a formula. I have multiple worksheets and each has multiple rows/columns
of data. I want to use 2 different sets of criteria (from different
worksheets) to sum multiple columns of numbers in the master worksheet. I
keep getting #N/A.

{=SUM(IF(($A2=Customer!$F$1:$F$800)*($B2=Sales!$H$ 1:$H$800),Master!L$1:O$800,FALSE))}

Can anyone help?



All times are GMT +1. The time now is 01:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com