+ Reply to Thread
Results 1 to 6 of 6

How to prevent duplicate outcome in excel formula?

  1. #1
    Forum Contributor
    Join Date
    07-27-2018
    Location
    Jodhpur, India
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 Pro 64-bit)
    Posts
    405

    How to prevent duplicate outcome in excel formula?

    Hi All,

    I used a formula to get the channel partner name with the lowest stock days. I applied the formula correctly, however it is giving duplicate results since the basic data of stock days is the same, but I want a different channel partner name instead of a similar result. How to Do It Could you please assist me in this?
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Pankaj jaswani; 12-16-2022 at 07:52 AM.

    PJ


    Learning One New Thing Everyday!

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: How to prevent duplicate outcome in excel formula?

    One way:

    Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-27-2018
    Location
    Jodhpur, India
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 Pro 64-bit)
    Posts
    405

    Re: How to prevent duplicate outcome in excel formula?

    HansDouwe Thank you so much for replying to this post. However, I am attempting to extract the names of two channel partners, but your formula returns just one name when I change the Min to Max parameter. Could you kindly tell me on how we may alter this?
    Attached Images Attached Images

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: How to prevent duplicate outcome in excel formula?

    I used a formula to get the channel partner name with the lowest stock days.
    You asked for a formula to get the name with the lowest stock days.
    You didn't ask for the 2 lowest.

    If you changed MIN in MAX this formula returns the name(s) with the highest stock days.
    There is only 1 highest so the formula returns 1 name.

    If you need the 2 highest or 2 lowest you need another formula.

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: How to prevent duplicate outcome in excel formula?

    This is the formula for the 2 highest:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you need the 2 lowest, please replace the 3rd sort-parameter -1 by 1.

  6. #6
    Forum Contributor
    Join Date
    07-27-2018
    Location
    Jodhpur, India
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 Pro 64-bit)
    Posts
    405

    Re: How to prevent duplicate outcome in excel formula?

    HansDouwe Thank you so much, that is I needed!!

+ 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] Prevent Duplicate Entries in Excel Worksheet While Transferring Data from UserForm
    By rakotonirinas in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 11-23-2018, 07:24 PM
  2. vba excel - Prevent opening workbook with duplicate vba code but different file names
    By terriertrip in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-03-2018, 06:36 PM
  3. Prevent button sending e mail and prevent closure of spreadsheet
    By Robbosan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2018, 11:22 AM
  4. [SOLVED] Formula to prevent duplicate information in a column
    By haleakala17 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-31-2012, 12:07 AM
  5. [SOLVED] Prevent duplicate entries in Excel 2000
    By Stressed in forum Excel General
    Replies: 10
    Last Post: 01-18-2006, 04:10 PM
  6. Replies: 2
    Last Post: 11-16-2005, 06:20 PM
  7. How do I prevent duplicate data in Excel?
    By PANKAJ KUMAR in forum Excel General
    Replies: 3
    Last Post: 10-19-2005, 10: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