Menu
hardMr DIY · cleaningBasic

Clean a messy status column, then roll it up by branch

Column A holds an Mr DIY branch, column B a delivery status typed inconsistently (mixed case, stray spaces), column C an amount. First, in E2:E6, write a formula that normalizes each status to a clean "Delivered" or "Cancelled". Then, in G2:G3, write a rollup that sums Amount per branch (branches listed in F2:F3) for delivered orders only — matching against your cleaned column, not the raw one.

Starting grid

A1

Scroll to see all 7 columns →

ABCDEFG
1BranchStatusRawAmountBranchDelivered Total
2KL delivered 200KL
3JBCANCELLED90JB
4KLDelivered350
5JB delivered 120
6KLcancelled80

Basic

The expected output and walkthrough for this question unlock with a Basic plan.

Basic

This is a Basic question

Premium practice questions unlock with a Basic plan. The full solution, expected output, and grading are available to Basic members.

See Basic plans

RM 25/mo · cancel anytime

Keep going

Company names are trademarks of their respective owners, used here only to describe practice material. mahir_data is not affiliated with, endorsed by, or sponsored by any company named on this site. Terms.