Hi all,
I have a load of (multiply duplicated) categories (in col G) and values for them (in col P). Each category has more than one value, but they should be in roughly the same ball-park. I want to rank the categories in a pivot table, by value, not alphabetically. So I wrote this formula:
{=MAX(P$2:P$10*(J$2:J$10=2)*(G$2:G$10=G2))}
(I also am only interested in entries for which there is a "2" in column J as shown)
This takes the category, finds all instances of the same category in col G and returns the max of all of them - so each row now has a "max value for this category" field.
This is all great, but what would work a lot better would be grouping them by the minimum value in the column, but of course when I do this I get a zero (from any one of the hundreds of non-matches).
I tend to get non-zero mins using small and countif but can't conceive how I would squeeze that into this formula.
Any help much appreciated.
CC
Bookmarks