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
Media Buyer Meta ROAS -- 2 Category: A / B Testing, Facebook Ads, Google Ads, Google Adwords, Instagram Ads, Internet Marketing, Marketing, SEO Budget: $15 - $25 USD
Tree Service Grant Writer Category: Business Development, Ghostwriting, Grant Writing, Management, Project Management, Proposal Writing, Research, Research Writing Budget: $250 - $750 USD
25-Mar-2026 22:56 GMT
Google Ads Lead Generation Expert Category: A / B Testing, Google Ads, Google Adwords, Internet Marketing, Keyword Research, Lead Generation, Search Engine Marketing (SEM), SEO Budget: ₹12500 - ₹37500 INR
Document Formatting Expert Needed Category: Document Checking, Editing, English Spelling, Google Docs, Microsoft Word, Proofreading, Typography, Word Budget: €750 - €1500 EUR
25-Mar-2026 22:45 GMT
Custom RGB LED Laser Tag Gun -- 2 Category: 3D CAD, 3D Design, 3D Modelling, 3D Printing, 3D Rendering, Fusion 360, Product Design, Solidworks Budget: $10 - $30 USD