+ Reply to Thread
Results 1 to 5 of 5

Selecting top Vendor Items based on conditions

  1. #1
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Question Selecting top Vendor Items based on conditions

    Hi All,

    Hope you are doing well!... I am trying to select vendor items for promotions based on a set of conditions... In my attached file priority 1 means the highest priority item for that specific vendor...I have a reference file which tells the number of items to select (or) percentage of items to select (In case of percentage the data is present in the decimal format)..In case if for a vendor no information is given for selection then I need to select the top 10% of items for selection.. Attached the file in which I have presented the input and output with the reference info... Can you please help me with the same...


    Thanks,
    Arun
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Selecting top Vendor Items based on conditions

    You could do this with formulae only on Output tab however, they will not be efficient - and if your Input dataset is large performance will suffer. Given this fact I would advise using a couple of lightweight calcs on the Input tab which will then trivialise your Output calcs, and things will calculate very quickly. In more detail (and reflected in the attached)

    1. Determine no. entries required per vendor (calc once per vendor)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    2. Create key for items to return where whole numbers reflect valid results and those with decimal remainder to be ignored
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    note: per 2 - this returns numbers in ascending order thereby allowing for use of Binary Search approaches on your results (very fast)

    3. Return results
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    You should find that if you change contents of your Reference Table the results update instantaneously (on auto calc).
    Attached Files Attached Files
    Last edited by XLent; 07-30-2019 at 03:34 AM. Reason: typo

  3. #3
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Re: Selecting top Vendor Items based on conditions

    Hi Xlent,

    Appreciate your response!..This is awesome...

    Thanks,
    Arun

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Selecting top Vendor Items based on conditions

    Hi Arun, I made a minor typo in and have just re-attached a revised file -- so use latest version.

  5. #5
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Re: Selecting top Vendor Items based on conditions

    Sure!...Thanks again!!

+ 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. Replies: 5
    Last Post: 05-02-2018, 12:07 PM
  2. Show Vendor Details By Selecting Sub Items From VBA Drop Down List
    By MdYas in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-11-2015, 02:29 AM
  3. Get count of items based on 4 variable conditions
    By m2som in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 12-18-2013, 01:04 AM
  4. It needs to scan and autoselect the lowest vendor for all items
    By suresh mongam in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-30-2012, 11:33 AM
  5. Randomly selecting items from list under certain conditions
    By Excelleration in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-07-2009, 04:48 PM
  6. selecting multiple listbox items based on test in range
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2009, 04:32 PM
  7. selecting Values based on conditions
    By Chimero in forum Excel General
    Replies: 2
    Last Post: 07-19-2009, 04:04 AM

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