ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumproduct does not work after editing data (https://www.excelbanter.com/excel-worksheet-functions/137354-sumproduct-does-not-work-after-editing-data.html)

Jackie K

Sumproduct does not work after editing data
 
Shift Status 1st Shift 20
2 2 2nd Shift 3
1 2 3rd Shift 3
2 1 Unknown 0
2 1 Total Active 26

Above is the spreadsheet that I am working with. I am using a SUMPRODUCT
formula to tell me how many employees are on each shift. Below are the
formulas I am using to get the results listed after 1st Shift, 2nd Shift and
3rd Shift. The formula works only if the data is not edited. If I change
any number in the shift column, the formulas do not seem to calculate the
value. Any ideas? Does this formula only work on unideted data?

{=SUMPRODUCT(--(L1:L5600="1"),--(M1:M5600=1))}

{=SUMPRODUCT(--(L1:L5600="2"),--(M1:M5600=1))}

{=SUMPRODUCT(--(L1:L5600="3"),--(M1:M5600=1))}

Any help would be appreciated.

Jackie K





Bob Umlas[_2_]

Sumproduct does not work after editing data
 
Looks OK EXCEPT you seem to be array-entering them. SUMPRODUCT doesn't
require array-entry. You didn't say what's not working -- wrong answers?
#VALUE? same answers in each formula? what's happening?
Bob Umlas
Excel MVP

"Jackie K" <Jackie wrote in message
...
Shift Status 1st Shift 20
2 2 2nd Shift 3
1 2 3rd Shift 3
2 1 Unknown 0
2 1 Total Active 26

Above is the spreadsheet that I am working with. I am using a SUMPRODUCT
formula to tell me how many employees are on each shift. Below are the
formulas I am using to get the results listed after 1st Shift, 2nd Shift
and
3rd Shift. The formula works only if the data is not edited. If I change
any number in the shift column, the formulas do not seem to calculate the
value. Any ideas? Does this formula only work on unideted data?

{=SUMPRODUCT(--(L1:L5600="1"),--(M1:M5600=1))}

{=SUMPRODUCT(--(L1:L5600="2"),--(M1:M5600=1))}

{=SUMPRODUCT(--(L1:L5600="3"),--(M1:M5600=1))}

Any help would be appreciated.

Jackie K






Toppers

Sumproduct does not work after editing data
 
Which column is the employee data in ... as it only checks to values of 1,2
or 3 in L (Shifts?) and 1 in M? Does M=1 indicate employee is present?

Changing values in L & M worked OK for me and there is nothing wrong with
formulae if above applies.

And you don't need to enter with CtrL+SHift+Enter as your posting implies
from the {} brackets.

"Jackie K" wrote:

Shift Status 1st Shift 20
2 2 2nd Shift 3
1 2 3rd Shift 3
2 1 Unknown 0
2 1 Total Active 26

Above is the spreadsheet that I am working with. I am using a SUMPRODUCT
formula to tell me how many employees are on each shift. Below are the
formulas I am using to get the results listed after 1st Shift, 2nd Shift and
3rd Shift. The formula works only if the data is not edited. If I change
any number in the shift column, the formulas do not seem to calculate the
value. Any ideas? Does this formula only work on unideted data?

{=SUMPRODUCT(--(L1:L5600="1"),--(M1:M5600=1))}

{=SUMPRODUCT(--(L1:L5600="2"),--(M1:M5600=1))}

{=SUMPRODUCT(--(L1:L5600="3"),--(M1:M5600=1))}

Any help would be appreciated.

Jackie K






All times are GMT +1. The time now is 04:31 PM.

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