{"id":"code-work-js-excel-assessment-two-formulas","audience":"job-seekers","category":"coding","track":"coding","technique":"format","title":"Practice an Excel hiring test with exact ranges","free":false,"task":"You're practicing for an office admin Excel test whose checker compares exact formulas. Q1: in G2, count East orders over $500 (more than 500, not equal). Q2: in G3, average the order amount for the rep whose name is typed in H1. Use the ranges B2:B200, C2:C200 and D2:D200 exactly, never whole columns. Put each answer in its own code block, Q1 first, then under 20 words outside the code.","materialLabel":"The practice sheet (attached to your prompt automatically)","material":"PRACTICE SHEET - admin assessment, set B (rows 2-200 filled)\nA Order # | B Region | C Rep | D Amount\n5001 | East | Priya Nand | 640\n5002 | West | Tom Okafor | 500\n5003 | East | Lena Brooks | 500\n5004 | East | Priya Nand | 1,210\n5005 | North | Sam Wilde | 95\n...\nH1: Priya Nand\n\nNotes from the prep course:\n- The real test gives you 20 minutes for 10 questions.\n- The checker is strict about ranges and quotes.\n- Q3 and Q4 are about charts and aren't covered here.\n- Excel version on the test machines: Microsoft 365.","rules":[{"type":"codeBlocks","count":2},{"type":"maxProseWords","max":20}],"mistakes":[{"title":"Not giving the exact ranges","why":"The AI uses whole columns like D:D, which the checker marks wrong.","fix":"Add: \"Use B2:B200, C2:C200 and D2:D200 exactly.\"","checks":["r2","r0"]},{"title":"Leaving \"over\" vague","why":"The AI writes >=500, which counts the $500 orders too.","fix":"Add: \"More than 500, not equal.\"","checks":["r0"]},{"title":"Typing the name in","why":"The AI writes \"Priya Nand\" into the formula instead of pointing at H1.","fix":"Add: \"The rep's name is in H1; reference it.\"","checks":["r1"]},{"title":"Mixing the answers together","why":"The AI puts both formulas in one block or adds versions for Google Sheets.","fix":"Add: \"Each answer in its own code block, Q1 first.\"","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":"Gives the exact ranges","patterns":["b2:b200","d2:d200","no whole columns|never whole"]},{"label":"Sets the edge","patterns":["more than",">500|> 500","not equal"]},{"label":"Points at H1","patterns":["h1"]},{"label":"Asks for two blocks","patterns":["(two|2) code blocks","own code block","each answer"]}],"hint":"The checker is strict. Tell the AI the exact ranges, what \"over\" means, and how to lay out the two answers.","rubricLabels":["The first code block holds Q1: =COUNTIFS(B2:B200,\"East\",D2:D200,\">500\") (strictly greater than 500)","The second code block holds Q2: =AVERAGEIFS(D2:D200,C2:C200,H1), pointing at H1 rather than a typed name","Neither formula uses whole-column ranges like B:B or D:D"]}