+ Reply to Thread
Results 1 to 3 of 3

Pick up the Vendor code of a part code from looking the highest Qty of a part code

  1. #1
    Forum Contributor PRADEEPB270's Avatar
    Join Date
    02-19-2010
    Location
    INDIA
    MS-Off Ver
    MSoffice-2016
    Posts
    332

    Pick up the Vendor code of a part code from looking the highest Qty of a part code

    I have an excel file having part code,name,vendor and Qty ( Quantity ).

    My problem is that I want to apply an excel formula to pick up that vendor code who have highest Qty of a part code.The condition is that S.No.should not be disturbed.This file is so large,but here I have taken an example,

    For more clarification,please refer the attach file:-
    Attached Files Attached Files
    Regards


    Pradeep Kumar Gupta
    Gurgaon ( INDIA )

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Pick up the Vendor code of a part code from looking the highest Qty of a part code

    hi Pradeep, try this array formula in I5:
    =INDEX($E$5:$E$21,MATCH(H5&MAX(IF($C$5:$C$21=H5,$F$5:$F$21)),$C$5:$C$21&$F$5:$F$21,0))

    ...confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL-SHIFT-ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    if you need to counter errors, this will work in Excel 2007:
    =IFERROR(INDEX($E$5:$E$21,MATCH(H5&MAX(IF($C$5:$C$21=H5,$F$5:$F$21)),$C$5:$C$21&$F$5:$F$21,0)),"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor PRADEEPB270's Avatar
    Join Date
    02-19-2010
    Location
    INDIA
    MS-Off Ver
    MSoffice-2016
    Posts
    332

    Re: Pick up the Vendor code of a part code from looking the highest Qty of a part code

    Thank you for your nice formula.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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