Hallo,
I would show a table from a series of many data, with 4 conditions.
Here is the data source and then the table I would have:
Progr | Set | cat | dist | $$ | H |
201530 | 10 | 1 | 80000 | 120000 | 15:00 |
201530 | 20 | 1 | 90000 | 90000 | 08:00 |
201530 | 20 | 1 | 70000 | 10000 | 11:00 |
201530 | 20 | 3 | 60000 | 5000 | 13:00 |
201530 | 50 | 4 | 50000 | 3000 | 09:00 |
201531 | 20 | 1 | 70000 | 80000 | 19:00 |
201531 | 20 | 4 | 50000 | 5000 | 12:00 |
201531 | 10 | 1 | 80000 | 2000 | 16:00 |
201531 | 20 | 1 | 90000 | 1000 | 20:00 |
201531 | 60 | 2 | 40000 | 40000 | 11:00 |
201531 | 20 | 3 | 60000 | 60000 | 14:00 |
201532 | 10 | 1 | 80000 | 30000 | 10:00 |
201532 | 20 | 1 | 90000 | 25000 | 09:00 |
201532 | 20 | 1 | 70000 | 15000 | 07:30 |
201532 | 70 | 2 | 20000 | 165666 | 19:00 |
201532 | 40 | 3 | 60000 | 120000 | 13:00 |
201532 | 20 | 4 | 50000 | 110000 | 14:00 |
201532 | 60 | 4 | 40000 | 100000 | 15:00 |
Here the table I would have:
SET: | |||||
20 | |||||
Nr | cat | dist | 201530 | 201531 | 201532 |
1 | 1 | 90000 | 90000 | 1000 | 25000 |
2 | 1 | 70000 | 10000 | 800000 | 15000 |
3 | 1 | ||||
1 | 3 | 60000 | 5000 | 60000 | |
2 | 3 | ||||
3 | 3 | ||||
1 | 4 | 50000 | 5000 | ||
2 | 4 | ||||
3 | 4 |
I wish:
Changing manually the Set number( here it's 20 )
-for each "cat"
it shows me "dist" has got the best $$, divided for the "Progr"
-for each progr
the hour(here I wrote the $$ but I wish have the hours)
I tried with matrix formula(sumifs and Index), but I can't calculate over 12 cells
I can have the result wirh Pivot, but I need to manage manually the data
Pls can you help me?
Andrea