I have a report which comes in a format which must be altered, several columns removed, filtered by category, etc.
Column G is a date 'YYYY-MM-DD' column, for my purposes I need to change the date cell to a string 'OOD' if the date is before today however I can't seem to figure out how I should try this.
I have attempted various combinations of array formula and substitute etc but all seem to break the query.
=QUERY('test data'!1:994,"select C,G,J,K,O where F='FOOD' and C is not null order by K asc",0)