+ Reply to Thread
Results 1 to 8 of 8

Looking max+if with in a limited range

  1. #1
    Registered User
    Join Date
    03-04-2015
    Location
    Switzerland
    MS-Off Ver
    365
    Posts
    93

    Looking max+if with in a limited range

    Hi forum,
    I have created a max+if and Min+if array that looks for the max and min paying prices per each product/customer transaction (see attache excel).
    However, my data base is not "clean". It contains lot of small values that distort the result.
    The way to go over this problem is by looking only on the top customers (top 75% in terms of qnt).

    I have created pivot and OFFSET table to do that, but I am sure there is a simple easy way to do what I want to do
    What I am basically trying to do is to create max+if within a limited range.


    Would appreciate your support.

    regards

    SwissExcel
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Looking max+if with in a limited range

    Perhaps:

    L:
    Please Login or Register  to view this content.
    M:
    Please Login or Register  to view this content.
    This reads: If (each Value in C3:C38 > first quartile of C3:C38) AND (A3:A38 = K), then E3:E38.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Looking max+if with in a limited range

    I made a copy of your output table in the attached file.

    In M3 this array-entered formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and filled down.
    In N3 this array-entered formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and filled down.

    Array entered formulas are not committed in the usual way. To do so in edit mode while pressing and holding Ctrl + Shift hit Enter.

    BTW I these formulas yield figures different from your upload. I did a cursory examination of the data and formula results. What little I examined is correct.
    Attached Files Attached Files
    Last edited by FlameRetired; 03-09-2015 at 07:16 PM.

  4. #4
    Registered User
    Join Date
    03-04-2015
    Location
    Switzerland
    MS-Off Ver
    365
    Posts
    93

    Thumbs up Re: Looking max+if with in a limited range

    Hi Daffodil and FlameRetired
    Many thanks for your answers (which are basically the same - one is with percentile and the other with QUARTILE.exc). ,
    Both of the formula work except of one problem: when I have only one value (i.e one product+customer combination) the formula doesnt work. I have used PERCENTILE.INC to try to go over the problem, but still it doesn't work.
    Can you advise (attached is an updated excel v2. I have added a product and marked in yellow to illustrate the problem)

    Cheer
    SwissExcel
    Attached Files Attached Files

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Looking max+if with in a limited range

    The only thing I can think of would be to slightly bend the parameter of the percentile, and change the expressions to >=.

    This would technically include the 1 percentile >24.99999999%, but it will allow you to prevent the error.

  6. #6
    Registered User
    Join Date
    03-04-2015
    Location
    Switzerland
    MS-Off Ver
    365
    Posts
    93

    Re: Looking max+if with in a limited range

    Thanks for quick replay. How would you put it in the formula?

    Cheers
    Ofer

  7. #7
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Looking max+if with in a limited range

    rainbow unicorn method:
    Please Login or Register  to view this content.
    FlameRetired method:
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    03-04-2015
    Location
    Switzerland
    MS-Off Ver
    365
    Posts
    93

    Re: Looking max+if with in a limited range

    Many thanks
    Much appreciated

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Value in Combobox to be limited to range
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-01-2015, 04:10 PM
  2. Limited data range
    By SEIMurf in forum Excel General
    Replies: 1
    Last Post: 05-27-2005, 12:05 PM
  3. Range limited by a wildcard
    By Jeff in forum Excel General
    Replies: 6
    Last Post: 03-13-2005, 01:06 PM

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