Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This formula works:
=SUMPRODUCT((('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="VD")+('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="PR"))*('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$F$13:$F$4000=D9)) I also want to add the sum of other cells (say h50 & h51...) to the above. I can't get a syntax that give me the right answer. In other words: =H50 + H51+=SUMPRODUCT((('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="VD")+('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="PR"))*('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$F$13:$F$4000=D9)) Any ideas? Thanks as always. WAL50 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The formula should work as written (except that you have a +=
instead of just a + after H51). Do you get an error value, or just an incorrect result? -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "wal50" wrote in message ... This formula works: =SUMPRODUCT((('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="VD")+('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="PR"))*('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$F$13:$F$4000=D9)) I also want to add the sum of other cells (say h50 & h51...) to the above. I can't get a syntax that give me the right answer. In other words: =H50 + H51+=SUMPRODUCT((('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="VD")+('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="PR"))*('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$F$13:$F$4000=D9)) Any ideas? Thanks as always. WAL50 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUM(H50:H51,SUMPRODUCT(--ISNUMBER(MATCH('[Retail East Employees
12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000,{"VD","PR"},0)),--([Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$F$13:$F$4000=D9))) wal50 wrote: This formula works: =SUMPRODUCT((('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="VD")+('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="PR"))*('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$F$13:$F$4000=D9)) I also want to add the sum of other cells (say h50 & h51...) to the above. I can't get a syntax that give me the right answer. In other words: =H50 + H51+=SUMPRODUCT((('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="VD")+('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="PR"))*('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$F$13:$F$4000=D9)) Any ideas? Thanks as always. WAL50 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks. Boy, did I over complicate this one. (incorrect result)
Thanks again WAL50 "Chip Pearson" wrote: The formula should work as written (except that you have a += instead of just a + after H51). Do you get an error value, or just an incorrect result? -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "wal50" wrote in message ... This formula works: =SUMPRODUCT((('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="VD")+('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="PR"))*('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$F$13:$F$4000=D9)) I also want to add the sum of other cells (say h50 & h51...) to the above. I can't get a syntax that give me the right answer. In other words: =H50 + H51+=SUMPRODUCT((('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="VD")+('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$D$13:$D$4000="PR"))*('[Retail East Employees 12-31-05.xls]Active Employees Report (As of)'!$F$13:$F$4000=D9)) Any ideas? Thanks as always. WAL50 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
checking that cells have a value before the workbook will close | Excel Worksheet Functions | |||
how do i protect cells in a shared worksheet | Excel Discussion (Misc queries) | |||
SUMPRODUCT TO CALCULATE VISIBLE CELLS ONLY | Excel Worksheet Functions | |||
Convert data type of cells to Text,Number,Date and Time | Excel Worksheet Functions | |||
Sumproduct function not working | Excel Worksheet Functions |