{"id":"code-work-mkt-meta-description-length-check","audience":"marketing","category":"coding","track":"coding","technique":"format","title":"Flag meta descriptions that run too long","free":false,"task":"Write one Google Sheets formula for C2 (filled down) that checks the meta description in B2 against the character limit kept in $F$1. Measure the trimmed text. Show OK when it fits, or Cut N when it's over, where N is how many characters to cut (e.g. Cut 12). Leave C2 blank when B2 is empty. One formula in one code block, then under 25 words outside the code.","materialLabel":"Page list from the site audit (attached to your prompt automatically)","material":"SEO AUDIT - Fernwood Outdoor product pages (row 1 is headers)\nA URL | B Meta description | C Check\n/boots/trailhead | Waterproof leather hiking boots built for long days on rocky trails, with a cushioned footbed and a lifetime resole program for every pair. | ?\n/tents/ridgeline-2 | A two-person backpacking tent that sets up in three minutes. | ?\n/packs/summit-40 | | ?\n/sale |  Spring Trail Sale: up to 40% off boots, tents and packs this week only, plus free shipping on orders over $75 and free returns all season.  | ?\n\nF1: 150\n\nNotes from Tess:\n- The SEO agency's guide says 150 characters, but they may change it to 155.\n- Leading and trailing spaces come from the old CMS export.\n- The packs page description was lost in the migration.\n- Titles are checked on a different tab.","rules":[{"type":"codeBlocks","count":1},{"type":"maxProseWords","max":25}],"mistakes":[{"title":"Not pointing at the limit cell","why":"The AI types 155 or 160 into the formula, so a changed limit means editing every row.","fix":"Add: \"Use the limit in $F$1.\"","checks":["r0"]},{"title":"Not showing the output","why":"The AI returns TRUE/FALSE or \"Too long\", which doesn't tell the writer how much to cut.","fix":"Add an example: \"OK, or Cut 12 when it's 12 over.\"","checks":["r1"]},{"title":"Forgetting empty rows","why":"An empty description shows OK, so missing ones look fine.","fix":"Add: \"If B2 is empty, leave it blank.\"","checks":["r2"]},{"title":"Getting a menu of options","why":"The AI likes to offer two or three versions of the formula, so you're left to pick and test them yourself.","fix":"Add: \"Give one formula only, in one code block, no alternatives.\"","checks":["codeBlocks"]},{"title":"Getting a tutorial","why":"By default the AI explains every part of the code at length, which you then have to scroll past.","fix":"Add: \"After the code, one line under 10 words. Nothing else.\"","checks":["maxProseWords"]}],"promptHints":[{"label":"Points at the limit cell","patterns":["f1","limit (is )?in"]},{"label":"Shows the output","patterns":["cut \\d+","cut n","\\bok\\b"]},{"label":"Trims first","patterns":["trim","spaces"]},{"label":"Handles empty rows","patterns":["blank","empty"]},{"label":"Asks for one answer only","patterns":["\\b(one|single|1)\\s+(formula|code block|block|version)","only one","no (alternatives|options|other versions)"]}],"hint":"Say exactly what the writer should see in the cell, with an example, and where the limit lives.","rubricLabels":["Measures LEN(TRIM(B2)) against the limit in $F$1 (locked), not a typed-in 150 or 155","Returns OK when it fits and \"Cut \" followed by the number of extra characters (LEN(TRIM(B2)) minus $F$1) when it's over, like Cut 12","Returns a blank (\"\") when B2 is empty"]}