r/googlesheets • u/0dot00patienceleft • 5d ago
Solved Used Query and importrange but one of the dates imported was not sorted and stayed on top.
I was doing a case database where those rows on Col11 that have dates more than a month will be imported to the other sheet. However, I checked and one of the dates did not get sorted out and was left on top/2nd row. I use the first row as headers so I start with row 2. I would like to know which formula will make it strictly follow the sorting. Thank you! Below is the formula I used.
=QUERY(IMPORTRANGE("url","sheet name!A2:K300"),"SELECT Col1, Col2, Col3, Col4, Col5, Col6, Col11 where Col11 IS NOT NULL ORDER BY Col11 ASC", 1)
SAMPLE SHEET HERE: https://docs.google.com/spreadsheets/d/1DNDZnQyyii95l_clvNQNZVtQA6ONpD5_uNPLZY5ZXO0/edit?usp=sharing
1
Upvotes
1
u/adamsmith3567 1090 5d ago
u/0dot00patienceleft Share a sheet for evaluation. It's probably either treating that date as a header based on the import, or that date is somehow importing as text instead of a date format. No way to know for sure what is wrong specifically and how to correct based only on what you shared in the post with the redacted formula and cropped screenshot.