Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Google Sheets SUMIF with date doesn't sum

$
0
0

I want to sum the amounts column B that have a receipt date in column A in 2018. I tried using this SUMIF formula for that:

=SUMIF(A2:A4,YEAR(2018),B2:B4)

I expected the result to be Fr. 5 but Google Sheet returns 0. What am I doing wrong?

1Receipt DateAmount
203.05.2018Fr. 2
307.10.2018Fr. 3
409.02.2019Fr. 5

(here's a link to this example table in Google Sheets)

Additional info:

  • Column A is formatted as date and column B as currency
  • The date format in Switzerland is dd.MM.yyyy
  • Google Sheet uses Fr. as a currency symbol for the Swiss Franc, the currency used in Switzerland.

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>