CodexBloom - Programming Q&A Platform

Excel Array Formula for Conditional Summation Based on Multiple Criteria Not Returning Expected Results

👀 Views: 57 💬 Answers: 1 📅 Created: 2025-06-13
excel formulas array-formula Excel

I need some guidance on I'm working on a project and hit a roadblock... I've looked through the documentation and I'm still confused about I'm currently working on a financial analysis spreadsheet in Excel 2021, and I'm trying to create an array formula to sum values based on multiple criteria..... However, the formula is returning a #VALUE! behavior instead of the expected sum. Here’s what I’ve tried: I have a data range in `A2:C100`, where column A contains categories (like 'Food', 'Transport', 'Utilities'), column B has the amounts, and column C has the month (like 'January', 'February'). My goal is to sum the amounts for a specific category and month. I constructed the following array formula: ```excel =SUM(IF((A2:A100="Food")*(C2:C100="January"), B2:B100)) ``` After entering the formula as an array (using Ctrl+Shift+Enter), it throws a #VALUE! behavior. I've double-checked the ranges and confirmed that both the category and month exist in my data. I also tried using the newer `FILTER` function, but it didn’t help because I’m using an older version of Excel that doesn’t support it. I attempted breaking the formula into parts to debug, but everything seems correct. Is there something specific about array formulas or my Excel version that could cause this scenario? Any insights into what might be going wrong would be greatly appreciated! I'm working on a API that needs to handle this. I'd really appreciate any guidance on this. The project is a REST API built with Excel. I'd be grateful for any help. I'd be grateful for any help. For context: I'm using Excel on Windows 10. Has anyone else encountered this?