Hi, I have a client working in food preparation who stores dry food and frozen food to make meals. The expiry dates of the food is important and they need to avoid waste.
I need a Google Apps Script to check a Google Sheet for the background colour of cells in two columns that turn red (using conditional formatting) when the expiry date of the product is soon. This tells the client which ingredients to use first when making meals.
I would like the script to send an email if one or more of the product lines has a red background colour (indicating its imminent expiry). An example sheet (read-only) is available below: https://docs.google.com/spreadsheets/d/1BtdLG63l8nB2ppYcbLMknYN8PqdHmspIv9J6gPN3HB8/edit?usp=sharing
Ideally, the email will show the following: Email subject example (taken from Cell E2): "Restaurant Food Stores" Expiry Dates
Email body example in html table format: Section Item Name Batch Serial No. Exp. Date Dry 7 Flour 12345 11-02-26 Dry 7 pasta 1 asdfg 16-01-26 Dry 7 milk powder 12345 11-02-26
I look forward to hearing from you, Kindest regards Nick
Secure Inactive Social Handles -- 2 Category: Brand Management, Content Strategy, Customer Support, Digital Marketing, Social Media Management, Social Media Marketing, Trademark, User Experience Research, User Interface / IA, User Research Budget: $250 - $750 USD
27-Jan-2026 22:58 GMT
Teeth Replacement for TV Ad Category: A / V Editing, Adobe Premiere Pro, After Effects, Final Cut Pro, Video Editing, Video Post Editing, Video Production, Video Services Budget: $250 - $750 USD