Memuat
Memuat
Dynamic Arrays FILTER SORT UNIQUE for meal plan and calories
0 views
A single formula returns a whole filtered and sorted list. Unique category lists and transaction rankings arrange themselves.

Filtered reports without copy-paste or manual filtering.
The real project file is available. It is not just the picture above: you get the working file with every formula in place. It can be downloaded after payment, and we send the download link by WhatsApp or email.
.xlsx workbook (.xlsx)
| Cell | Formula | What it does |
|---|---|---|
| H3 | =IFERROR(INDEX(Data!$C$2:$C$61,MATCH(0,INDEX(COUNTIF($H$2:H2,Data!$C$2:$C$61),0),0)),"") | First unique category (classic version, copy down). In Excel 365 use =UNIQUE(Data!C2:C61). |
| J3 | =IFERROR(INDEX(Data!B2:B61,MATCH(1,INDEX((Data!F2:F61=K1)*(Data!G2:G61=MAX(INDEX((Data!F2:F61=K1)*Data!G2:G61,0))),0),0)),"Tidak ada") | Item with the largest total in status K1 (like FILTER then SORT). |
| R3 | =LARGE(Data!G2:G61,ROW()-2) | Largest total number 1, copy down for the next ranks. In Excel 365 use =SORT(Data!G2:G61,1,-1). |
| H2 | =SUMPRODUCT((Data!$C$2:$C$61=C2)*(Data!$G$2:$G$61)) | Total of this row's category without SUMIFS. |
Columns of the Data sheet:
| Meal | Calories per Serving |
|---|---|
| White Rice 100 g | 130 |
| Boiled Chicken Breast 100 g | 165 |
| Boiled Egg 1 Piece | 78 |
| Fried Tempeh 50 g | 110 |
| Steamed Tofu 100 g | 80 |
| Spinach 100 g | 23 |
| Banana 1 Piece | 105 |
| Oatmeal 40 g | 150 |
| Avocado 100 g | 160 |
| Low Fat Milk 200 ml | 90 |
The sample data is synthetic.
Yes. The picture above is only a preview. After payment we send the download link of the real project file (an .xlsx workbook) by WhatsApp or email.
No. The sample data is synthetic and only shows how the formulas behave. Replace it with your own data and the formulas keep working.
Yes, as a separate order. Message us on WhatsApp with a short description of your columns and what you want to see.
Sample data is synthetic. Excel is a trademark of Microsoft Corporation.
Back to Excel portfolio