Results 1 to 8 of 8

Minimum non-zero within array formula

Threaded View

Cheeky Charlie Minimum non-zero within array... 10-31-2008, 07:08 AM
Bob Phillips Try this array formula ... 10-31-2008, 07:17 AM
Cheeky Charlie Amazing, Thanks Bob, I... 10-31-2008, 07:27 AM
DonkeyOte (x,y) to all intents and... 10-31-2008, 08:14 AM
Cheeky Charlie Perhaps I should have said: ... 10-31-2008, 10:00 AM
DonkeyOte The MIN will only fire... 10-31-2008, 10:23 AM
shg Cheeky, The IF in... 10-31-2008, 11:59 AM
Cheeky Charlie Thanks shg 10-31-2008, 12:16 PM
  1. #1
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Minimum non-zero within array formula

    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
    Last edited by Cheeky Charlie; 10-31-2008 at 07:47 AM. Reason: solved

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1