For budgeting, I d like to be able to know how much money was due before the next paycheck. I was able to figure out the paycheck date formula, but I m having an issue with the query. It looks like it is referencing the correct cell, but it is giving me an #ERROR still. Any help would be appreciated.
=QUERY(G2:H14,"select sum(G) where H<"B16"")
Here is a link to a sample sheet. I m specifically looking for the formula that would go in G17.