+ Reply to Thread
Results 1 to 5 of 5

Extract Largest and Smallest Items with Conditions

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Extract Largest and Smallest Items with Conditions

    Hi,

    I have sample data in A1:G11 and would like to create formulae to extract the 3 products with the largest and smallest growth rates as shown in E2:G10.

    The conditions associated with this are:

    Any product with the name "JJJ" will not be considered nor will any product with a zero Sales AND Growth value (like DDD).

    Can someone please suggest formulae to achieve this.

    Thanks!
    Attached Files Attached Files
    Last edited by andrewc; 04-06-2020 at 02:26 PM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: Extract Largest and Smallest Items with Conditions

    For both Ex2010 and 2019:

    G3 array formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and G8:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    both copied down.

    And E3 and copied down, and right, and to the next section - regular formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Extract Largest and Smallest Items with Conditions

    That's great, thanks Kaper.

    Can I please ask one more, related question:

    How would I adapt these formulae if there were duplicate values in column C? For example, GGG had the same value as CCC?

    Thanks!

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: Extract Largest and Smallest Items with Conditions

    One of possible solutions (for both Excel 2010 and 2019 could be array formula in E3, copied down, right and to the second section:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note 1 in first argument.

    And that case shows clearly why I always ask:

    Will you please attach a SMALL sample Excel workbook(s) (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. (If there are typical cases like: all unique values/duplicates could occur, day/night, nobody present/several persons at once, before/on/past due, empty cells between data, mixed text/numbers, etc. - please show them all or at least indicate in text). The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution(s) is/are also shown (mock up the results manually).

    3. Make sure that all confidential/restricted information (either personal or business) like real e-mails, social security numbers, bank accounts, etc. is removed first!!

    To attach an Excel file you have to do the following (paperclip icon does not work!): Just before posting, scroll down and press Go Advanced button and then scroll down and press Manage Attachments link. Now follow the instructions at the top of that pop-up screen.

  5. #5
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Extract Largest and Smallest Items with Conditions

    Thank you!

+ 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. [SOLVED] help in excel, detect the largest and smallest digit of pick3 zero is the smallest digit *
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-13-2020, 06:14 AM
  2. Problem with ranking with four conditions from largest to smallest
    By hiXtori in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-27-2020, 07:11 AM
  3. Largest positive & Smallest negative with multi conditions
    By bittubadri in forum Excel General
    Replies: 15
    Last Post: 11-11-2019, 05:19 AM
  4. [SOLVED] how to extract the smallest and largest numbers
    By rcahayag1925 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2019, 11:54 PM
  5. Replies: 7
    Last Post: 06-20-2016, 08:37 AM
  6. [SOLVED] Extract largest or smallest value from a CELL
    By brad999 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-09-2013, 04:49 AM
  7. [SOLVED] Formula to extract top largest to smallest amount based on 3 criterias
    By aurisab in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-26-2013, 08:05 AM

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