+ Reply to Thread
Results 1 to 7 of 7

Find the large values with multiple criteria and with duplicates

  1. #1
    Registered User
    Join Date
    12-29-2019
    Location
    Bahrain
    MS-Off Ver
    Office 365
    Posts
    10

    Find the large values with multiple criteria and with duplicates

    Hi Experts,


    Looking for a help, as I have a requirement to find out the 3 largest value from a table which is attached.
    My selection is dynamic which are the “Month” and “Category”

    I have put a “large” formula combined with “Iferror” which was working fine but stuck in two cases.
    • Duplicate values ( which is to come as the next position)
    • Don’t know how to retrieve the name matching to the resulted value, which is to shown in the adjacent column.

    I have put the desired result also. I have highlighted the duplicate values in each month for your easy identification.
    I am using Office 365.

    Thanks in advance for the help.
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Find the large values with multiple criteria and with duplicates

    A slightl different approach: you can use Power Query (Get & Transform Data) to normalise your data, then use a pivot table to report as required.

    Format your source data as a table, then use query code:

    Please Login or Register  to view this content.
    Close and Load To Data Model.

    Insert Pivot Table based on Data Model, with:
    Filters: Month, Category
    Rows: Name
    Values: Value

    Sort Name > Descending by Value.
    Filter Name > Value Filters > Top N > Top 3 Items by Value

    Example attached.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    12-29-2019
    Location
    Bahrain
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Find the large values with multiple criteria and with duplicates

    Hi Olly,


    Thanks for the quick response and for the amazing result.
    May I ask you that other than power query, is there any way to get this done with the same result.

    Because, I am not familiar with power query, But I handle it once you have the patience to guide me the step by step actions to get this done through power query.

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,892

    Re: Find the large values with multiple criteria and with duplicates

    Quote Originally Posted by smohan7042 View Post
    is there any way to get this done with the same result.
    Try this in N9:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Find the large values with multiple criteria and with duplicates

    There's a link in my signature which guides you through how to use Power Query code provided.

  6. #6
    Registered User
    Join Date
    12-29-2019
    Location
    Bahrain
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Find the large values with multiple criteria and with duplicates

    Thanks Olly.
    I will go through it definitely.

  7. #7
    Registered User
    Join Date
    12-29-2019
    Location
    Bahrain
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Find the large values with multiple criteria and with duplicates

    Quote Originally Posted by Phuocam View Post
    Try this in N9:

    Please Login or Register  to view this content.
    Thanks Phuocam,

    It is working fine as it should.

+ 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] Return values based on multiple criteria with no duplicates
    By Ksun23 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-20-2018, 08:34 PM
  2. [SOLVED] Check for duplicates against multiple criteria and then concatenate values
    By Pango in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2016, 06:54 PM
  3. Large Data base, need to sift through and find duplicates to find x.
    By granger42.t in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-19-2015, 03:09 AM
  4. Large Data base, need to sift through and find duplicates to find x.
    By granger42.t in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2015, 10:32 PM
  5. Replies: 4
    Last Post: 04-23-2015, 01:36 AM
  6. [SOLVED] VBA to Find 4 types of Duplicates with multiple criteria
    By Jul Stev in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-30-2013, 12:28 AM
  7. Macro to remove duplicates values and keep unique values bases on multiple criteria
    By Ricker090 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2011, 04:37 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