Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I've tried reading other peoples' questions, but I can't seem to modify the
examples to fit my needs. I have each month's commission payments from our clients on a seperate worksheet (named January, February, March etc.) which is in another workbook which may or may not be open. It's probably also worth noting that several of the sheets are currently blank. I want to be able create something similar to: =SUMIF('[Workbook.xls]January:December'!B:B,"Client ID number",'[Workbook.xls]January:December'!E:E) where column B of each sheet contains each client's ID number & column E shows how much they've paid. Once I've managed this, I need to average the result over the number of months completed so far (and hopefully have the formula update its result as new data is entered in my source workbook.) This feels like a big ask, but if anyone can help it would be greatly appreciated. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
BOBODD wrote:
I've tried reading other peoples' questions, but I can't seem to modify the examples to fit my needs. I have each month's commission payments from our clients on a seperate worksheet (named January, February, March etc.) which is in another workbook which may or may not be open. It's probably also worth noting that several of the sheets are currently blank. I want to be able create something similar to: =SUMIF('[Workbook.xls]January:December'!B:B,"Client ID number",'[Workbook.xls]January:December'!E:E) where column B of each sheet contains each client's ID number & column E shows how much they've paid. First of all you cannot use 3D references with SUMIF function. So you should have a SUMIF for each month and than sum together. The SUMIF function needs the second workbook (the one you are summing from) to be opened, because if it's closed the function gives a #VALUE! error. You can use, instead of SUMIF, the SUMPRODUCT function, remembering that you cannot use whole columns inside this function and that you cannot use 3D references, so your formula could be something like this: =SUMPRODUCT(('[Workbook.xls]January'!B2:B1000="Client ID number")*('[Workbook.xls]January'!E2:E1000)) then you have to replicate the formula for each month and then sum together. -- Hope I helped you. Thanks in advance for your feedback. Ciao Franz Verga from Italy |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks.
I was afraid of that. I've currently got things set up where it sums each month individually, but I was hoping for a more elegant solution. "Franz Verga" wrote: BOBODD wrote: I've tried reading other peoples' questions, but I can't seem to modify the examples to fit my needs. I have each month's commission payments from our clients on a seperate worksheet (named January, February, March etc.) which is in another workbook which may or may not be open. It's probably also worth noting that several of the sheets are currently blank. I want to be able create something similar to: =SUMIF('[Workbook.xls]January:December'!B:B,"Client ID number",'[Workbook.xls]January:December'!E:E) where column B of each sheet contains each client's ID number & column E shows how much they've paid. First of all you cannot use 3D references with SUMIF function. So you should have a SUMIF for each month and than sum together. The SUMIF function needs the second workbook (the one you are summing from) to be opened, because if it's closed the function gives a #VALUE! error. You can use, instead of SUMIF, the SUMPRODUCT function, remembering that you cannot use whole columns inside this function and that you cannot use 3D references, so your formula could be something like this: =SUMPRODUCT(('[Workbook.xls]January'!B2:B1000="Client ID number")*('[Workbook.xls]January'!E2:E1000)) then you have to replicate the formula for each month and then sum together. -- Hope I helped you. Thanks in advance for your feedback. Ciao Franz Verga from Italy |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print all charts in a workbook (multiple worksheets) | Charts and Charting in Excel | |||
Sumif across multiple worksheets | Excel Worksheet Functions | |||
How do I duplicate value in multiple worksheets in same workbook? | Excel Discussion (Misc queries) | |||
Linking between multiple worksheets, workbooks and columns | Excel Discussion (Misc queries) | |||
SUMif or SUMproduct across multiple worksheets? | Excel Worksheet Functions |