Pivoting with medians and filtering frequency distributions in Excel

This was originally written as a note on how to build tables with complex values i.e. values other than those supported in pivot tables.It focused on using range names and countif[s]/sumif[s]. One of the side effects was to document the use of range arrays and functional filtering. i.e. specifying an array within a cell and filtering the values down to one. This later piece of functionality has caused me to return to this page more frequently than the table construction. I have amended the tags and inserted this paragraph as finding it proved harder than I wanted.  …