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
MMORPG Farming Bot Development Category: Bot Development, C#, Programming, C++, Game Art, Game Design, Game Development, Game Testing, Game UI, MMORPG Budget: $30 - $250 USD
19-Apr-2026 22:01 GMT
Full-service Digital Marketing & SEO Overhaul Category: Content Strategy, Digital Marketing, Growth Hacking, Internet Marketing, Link Building, Marketing, SEO, Video Editing Budget: ₹37500 - ₹75000 INR
Dark Fantasy Concept Art Category: Character Illustration, Concept Art, Game Art, Illustration Budget: $30 - $250 USD
19-Apr-2026 21:54 GMT
Wedding Highlight Reel Editing Needed Category: After Effects, Audio Services, Sound Design, Video Editing, Video Post Editing, Video Services, Video Streaming Budget: $30 - $250 USD