Dec 26 2022 07:56 AM
Hello,
I'm trying to bring some data using the "CountIFS" formula into linked books, but the formula seems to don't work; it returns results 0. Still, it should reflect 1+, I was reading a bit, and it looks like I should replace the formula with another different, any ideas?
Dec 26 2022 09:00 AM
Dec 26 2022 10:03 AM - edited Dec 26 2022 10:57 AM
Thanks for the recommendation; since this is a corporate document, I cannot share it publicly, but I will try to provide more details!
I have a Workbook with information filled by our team members ("Sourcebook"); I want that information in a different Excel book ("Destination book") for management purposes, so I created a new file to include the information entered by the team within the same shared online folder.
When I'm trying to feed the "destination book" from "Sourcebook" with formulas such as CountIFS it returns a #VALUE error. I checked all data in the "source book" and couldn't identify any mistakes.
I also used formulas like Sum(SumIFS, Sum(If as per microsoft community recommendations. (https://learn.microsoft.com/en-us/office/troubleshoot/excel/formula-returns-value-error)
Thanks in advance for any help you could provide.
Regards,
Dec 26 2022 10:11 AM
Dec 26 2022 10:24 AM
Some functions cannot retrieve data from a closed workbook. COUNTIFS is among the functions requiring the external workbook be open.
Functions that Can Access Closed Workbooks (Microsoft Excel) (tips.net)
Dec 26 2022 10:45 AM
Dec 26 2022 10:46 AM
Dec 26 2022 10:59 AM
Dec 26 2022 11:55 AM
What values are in $D$2:$D$13 and $E$2:$E$13? Can you display an image showing those, blocking out the other fields?
Is it possible that the mismatch is between the data in those columns and the criteria in the formula?
Dec 26 2022 12:06 PM
@mathetes Sure 🙂 here is the data.
I verified a couple of times to see if there were something mistyped, but couldn't locate any error on the file 😞
Dec 26 2022 12:16 PM
Nothing pops out at me.
I did wonder if you've tried plain COUNTIF (with out the "S" on the end).
Also I'm wondering whether you have a new enough version of Excel for the FILTER function to work? It requires 2021 or newer, or the Microsoft 365 subscription.
FILTER can work with multiple criteria and can be nested within a COUNT or COUNTA formula. Here's a YouTube video that introduces FILTER and some other dynamic array functions.
Dec 26 2022 01:36 PM
Dec 26 2022 02:58 PM
Dec 26 2022 04:13 PM
See the attached example of both a COUNT and a SUM with a FILTER function nested within. Assuming you have software that can handle these "dynamic array functions" you can change the entries in the yellow cell to see how the formulas respond. You can also extend the table, by just adding rows, to see how it will continue to track. (keep the same range of values in those two columns)