Forum Discussion
Multiple criteria in SUMIFS returning 0.00
In column J, I am wanting to add the open balance if a date falls before 07/01/2023 and equals the same text in column I (Cost Center). Also, in column K, I am wanting to add the open balance if a date falls after 07/01/2023 and equals the same text in column I (Cost Center). All I can get it to return is 0.00's.
=SUMIFS(F7:F96,B7:B96,"<"&DATE(2023,7,1),E7:E96,"=I6")
Date | QB Inv | Contract | Cost Center | Open Balance | FY23 | FY24 | ||||
American Crystal Sugar-Moorhead | 309100 | $0.00 | $0.00 | |||||||
12/10/2022 | 18439 | 3049 | 359760 | 2,400.00 | 339341 | $0.00 | $0.00 | |||
Total for American Crystal Sugar-Moorhead | $ 2,400.00 | 339351 | $0.00 | $0.00 | ||||||
Anderson Processing | 339360 | $0.00 | $0.00 | |||||||
11/10/2022 | 18446 | 3054 | 359746 | 4,200.00 | 339361 | $0.00 | $0.00 | |||
Total for Anderson Processing | $ 4,200.00 | 359740 | $0.00 | $0.00 | ||||||
Bongard's Creameries | 359742 | $0.00 | $0.00 | |||||||
11/10/2022 | 18454 | 3063 | 359746 | 1,200.00 | 359744 | $0.00 | $0.00 |
6 Replies
- JoeUser2004Bronze Contributor
It returns zero because not all conditions apply to at least one row.
Change "=I6" (sic) to I6 ... no quotes, no "=".
- Sheila_JesnessCopper ContributorI have tried that as well and still get 0's as a response.
- JoeUser2004Bronze Contributor
Please copy-and-paste the formula exactly as it appears in the Formula Bar.
Another problem might be: some data is type text, not numeric. The format of the cell does not matter; and looks can be deceiving. Use formulas of the form =ISNUMBER(F7) to determine if the type is numeric.
The table that you posted is not sufficient for me to help further. First, there are no column and row names. But more importantly, it would help me help you if you attach an example Excel file that demonstrates the problem so that I can see the type of the data, as well as the workbook state (e.g. Automate vs Manual calculation mode).
Click the "browse" link at the bottom of the reply applet. If the forum does not allow that (yet), upload the file to a file-sharing website, and post the download URL. I like box.net/files; others like dropbox.com. You might like onedrive.live.com. But if you use onedrive, IMHO, the download URL should not allow others to edit the file. That will avoid accidental (and purposeful) modifications. I'm all thumbs (sigh). Avoid using drive.google.com. I worry that Google might convert the Excel file to Google Sheets. Not only is that different; but also it might change the context.
If the forum does not allow you to post a URL (yet), spell out part of the URL. For example, the URL for this thread is techcommunity dot microsoft dot com /t5/excel/multiple-criteria-in-sumifs-returning-0-00/td-p/3655757