I am trying to write a formula for a dashboard that sums the amount of money we spend a quarter based on a specific text. This is what I have so far and I'm getting "Invalid Operation".
=SUMIFS{Log Sheet Range 2}, {Log Sheet Range 1}, CONTAINS("Pens", @cell), AND(({Log Sheet Range 7} = "Q2")))
Log Sheet Range 2 is the Amount Spent column, Log Sheet Range 1 is the Product column and Log Sheet Range 7 is the Quarter column