SUMIF not working as expected
google sheets - Adding Multiple Conditions to a SUMIF - Stack Overflow
Google Sheets: Summing SUMIF & IF
regex - SUMIFS with OR criteria in Google Sheets - Stack Overflow
Does Coefficient work with both Google Sheets and Excel?
What is Coefficient's AI Sheets Assistant?
How does Coefficient's automated refresh work?
Hey r/googlesheets
I'm trying to create a budget spreadsheet where I can sum up how much I've spent over a certain category. SUMIF seems to be the function I want to use for this, but it's not working as expected.
Here you can see my sheet so far, and my formula that I'm trying to use. I've got my input range of values in my 'E' column. I'm trying to sum up the amount of 'Social' here. I've used the value in the D5 column, to make sure that there is an exact match in the column for the value I'm searching for, and there's nothing like a case/cell format mismatch going on, and then searching for values in the 'D' column to sum over.
I've made sure that the format in both my SUMIF and values column is the same (currency), so I'm out of ideas now.
Thanks!
Hi, I'm looking for a way to sum up with these conditions:
- add up all transactions under a category, e.g., Category 1
- add up all "General" transactions and then divide the sum by the number of categories, e.g., 4
The cell containing the formula will supposedly return the sum of the two conditions
I can't figure out the proper way to input/nest them though
Here's the link to a sample spreadsheet for better visualization
Appreciate your help!
try:
=SUM(FILTER(C:C, B:B=0, REGEXMATCH(A:A, "a|b")))
@player0 has a top solution, but if you want to use sumifs(), then try:
=sumifs(C:C,B:B,0,A:A,"a")+sumifs(C:C,B:B,0,A:A,"b")
Or
=arrayformula(sumifs(C:C,B:B,0,regexreplace(A:A,"a|b","a"),"a"))
It can also be done with query():
=query({A:C},"select sum(Col3) where Col2=0 and Col1 matches 'a|b' label sum(Col3) '' ",0)
