ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to calculate values in multiple values with multi conditions (https://www.excelbanter.com/excel-worksheet-functions/35377-how-calculate-values-multiple-values-multi-conditions.html)

Curtis

How to calculate values in multiple values with multi conditions
 
I need to calculate the sum of number dependate on 2 conditions. One
condition is emplyee number ( in a column of numbers) and the other is the
month (in a column listed as days)

bj

try
=sumproduct(--(monthrange=month),--(Namerange=name),datarange)
The ranges in each section must be the same size and cannot be full columns
or rows:

"Curtis" wrote:

I need to calculate the sum of number dependate on 2 conditions. One
condition is emplyee number ( in a column of numbers) and the other is the
month (in a column listed as days)


Curtis

It give me a error with formula


SUMPRODUCT(--('Raw - 2nd'!$C$2:$C$65536=$A37),--(MONTH('Raw -
2nd'!$b$2:$b$65536=4),'Raw - 2nd'!$J$2:$J$65536)

Any thoughts?

ce

"bj" wrote:

try
=sumproduct(--(monthrange=month),--(Namerange=name),datarange)
The ranges in each section must be the same size and cannot be full columns
or rows:

"Curtis" wrote:

I need to calculate the sum of number dependate on 2 conditions. One
condition is emplyee number ( in a column of numbers) and the other is the
month (in a column listed as days)



All times are GMT +1. The time now is 08:50 PM.

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