Google Apps Script to auto sort rows by date on edit
Navigate to Extensions > Apps Script. Clear the editor and paste the code below. Save the script. It triggers automatically when you edit a date in Column A (assuming your data has 1
Navigate to Extensions > Apps Script. Clear the editor and paste the code below. Save the script. It triggers automatically when you edit a date in Column A (assuming your data has 1
To filter a dataset by a date range using the Google Sheets QUERY function, you must explicitly declare the data as a date and format it as YYYY-MM-DD. Assuming your source data is
To perform an XLOOKUP with multiple criteria exact match, skip brittle helper columns and use boolean array logic. Multiply your criteria ranges together to generate an array of 1s and 0s, and lookup
Select your date column. Navigate to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format. Assuming your first date is in cell C2, paste this
To calculate progressive tiered commissions, abandon brittle nested IF statements. The most efficient, error-free method is using SUMPRODUCT with differential rates. Assuming total sales are in cell B2, tier thresholds in E2:E4, and