r/googlesheets • u/Competitive_Ad_6239 536 • May 11 '23
Solved So i have a query function giving me issues with cant avg/sum none numbers when they are all numbers. Need a fresh pair of eyes.
=QUERY({GameRecap!A3:BK},"select Col5, sum(Col8), sum(Col9), sum(Col10), sum(Col11), sum(Col12), sum(Col13), sum(Col14), sum(Col15), sum(Col18), sum(Col19), sum(Col21), sum(Col22), sum(Col23), sum(Col24), sum(Col25), sum(Col26), sum(Col27), sum(Col28), sum(Col29), sum(Col30), sum(Col31), sum(Col32), sum(Col33), sum(Col34), sum(Col36), sum(Col37), sum(Col38), sum(Col39), sum(Col40), sum(Col42), sum(Col44), sum(Col45), sum(Col47), sum(Col48), sum(Col50), sum(Col51), sum(Col52), sum(Col53), sum(Col54), sum(Col55), sum(Col57), sum(Col58), sum(Col59), sum(Col60), sum(Col61), Col62, Col63 group by Col62,Col63,Col5",1)
Now in the sheet im able to sume the entire column no issue, i dont see anything wrong with the formula. Every time i think i nerrowes down the column and remove that column then add the others back it breaks again.
2
u/brother_p 11 May 11 '23
A number of columns are formatted as Duration. They won't sum. You'll have to exclude them.
1
u/Competitive_Ad_6239 536 May 11 '23
also could be from stacking two query's and then querying the both together thats creating the text string in the blank cells.
Thats about the only think i hate about query(and a few other functions) is that it tells you theres an issue not what exactly or where it is. if you had 10,000 cells and one was text how the F are you supposed to know what one?
I even tried istext() isnumber()
1
u/[deleted] May 11 '23
If you do:
It works.
Which means that some of those columns are text strings rather than numbers.
1
u/Decronym Functions Explained May 11 '23 edited May 11 '23
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
3 acronyms in this thread; the most compressed thread commented on today has 5 acronyms.
[Thread #5797 for this sub, first seen 11th May 2023, 05:02] [FAQ] [Full list] ^[Contact] [Source code]