I am having a lot of trouble with this. I found the problem but don't know how to solve it. This is my query function in Google Sheets. The error it is giving me is: "Unable to parse query string for Function QUERY parameter 2: AVG_SUM_ONLY_NUMERIC"
I realized that this is happening because the values in Column Q are actually another function.
For example, Visibly one cell in column Q is "$1,338.1424" but if you click on the cell the actual contents are "=IF(ISBLANK(R12)," ",R12*L12)" I can't figure out a way to make the query function sum the values in Column Q in light of this issue. Any help would be greatly appreciated as I have not been able to find anything to help.
=query(Trades_April,"SELECT SUM(Q) WHERE W Contains 'PS'")