+ Reply to Thread
Results 1 to 12 of 12

MAX KIP no based on max amount

  1. #1
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    MAX KIP no based on max amount

    Hi all,
    can anybody help me to solve this?
    i want to find MAX KIP no based on max value of item. please see the file.
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: MAX KIP no based on max amount

    Array entered for Max KIP: =MAX(IF(Sheet2!$D$2:$D$13=Sheet1!F2,Sheet2!$B$2:$B$13))
    For Max value, change the column references.
    Click the * to say thanks.

  3. #3
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: MAX KIP no based on max amount

    Hi PaulM100,
    thanks for reply, in your formula based on F2 value sheet1. i put this value manually for understanding not for criteria. if i remove this formula failed. KIP will be searched based on sheet2 column D rate to identify which is the highest value of item comes in which KIP.
    MAX KIP and MAX value Rate Amount AUTO find.
    see the result.
    Attached Images Attached Images

  4. #4
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: MAX KIP no based on max amount

    Any solution?

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: MAX KIP no based on max amount

    Personally, I do not understand what you are trying to achieve

  6. #6
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: MAX KIP no based on max amount

    Hi Pepe Le Mokko,
    please see the attach sheet. i use formula column b sheet1 to pick KIP no from Sheet2 and another formula use to pick the value of item column E sheet1. But result is differ in column C and F its means KIP No is not OK. KIP 406 shows max value of item MD-5867-3M00 in sheet2 714.622222. same of others. i want first to pick KIP to MAX value of Item then value of items shows.

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: MAX KIP no based on max amount

    I do not quite understand but please try at B2 and drag down

    =INDEX(Sheet2!$B$2:$B$15,MATCH(MAX(INDEX(ISNUMBER(SEARCH(D2,Sheet2!$C$2:$C$15))*Sheet2!$D$2:$D$15,)),INDEX(ISNUMBER(SEARCH(D2,Sheet2!$C$2:$C$15))*Sheet2!$D$2:$D$15,),))

  8. #8
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: MAX KIP no based on max amount

    Hi Bo_Ry,
    thanks for reply, i use this formula for sample file attached, its works perfect excellent, BUT when i use to whole data its fail why?
    can you tell me?
    please see the again attached file sheet2 complete data. i just increase the range of rows. see the formula in b2 sheet1
    Attached Files Attached Files

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: MAX KIP no based on max amount

    Please try

    =INDEX(Sheet2!$B$2:$B$12000,MATCH(AGGREGATE(14,6,Sheet2!$D$2:$D$12000/(D2=Sheet2!$C$2:$C$12000),1),INDEX(Sheet2!$D$2:$D$12000/(D2=Sheet2!$C$2:$C$12000),),))
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: MAX KIP no based on max amount

    Hi Bo_Ry,
    its fantastic, really cheers, Can you fix it by date?
    i have to work within date range, it is available in sheet2 column A. date range start from 1/1/2017 to 8/12/2018 so given date range formula pick KIP. my data date range from 7/7/2015. do not consider formula before given date range. see the snap for one example.
    snap show you KIP No before the date range.
    rest of all KIP pick by formula are OK, well done.
    sorry for late communicate this.
    Thanks for your help
    Attached Images Attached Images

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: MAX KIP no based on max amount

    Please try
    C2
    =INDEX(Sheet2!$B$2:$B$12000,MATCH(AGGREGATE(14,6,Sheet2!$D$2:$D$12000/(D2=Sheet2!$C$2:$C$12000)/(Sheet2!$A$2:$A$12000>=--"1/1/2017")/(Sheet2!$A$2:$A$12000<=--"8/12/2018"),1),INDEX(Sheet2!$D$2:$D$12000/(D2=Sheet2!$C$2:$C$12000)/(Sheet2!$A$2:$A$12000>=--"1/1/2017")/(Sheet2!$A$2:$A$12000<=--"8/12/2018"),),))

  12. #12
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: MAX KIP no based on max amount

    you are super,
    really fantastic job, thanks a lot BOSS.

+ 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] To calculate amount based on %
    By lalaarif1 in forum Microsoft Windows Help
    Replies: 3
    Last Post: 08-25-2018, 02:41 AM
  2. Cell contains based amount change accordingly
    By Neilesh Kumar in forum Excel General
    Replies: 2
    Last Post: 09-30-2016, 08:57 AM
  3. [SOLVED] Need to find a negative amount and match it to the positve amount based on Acct# and Date
    By sbrandhorst in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-07-2016, 07:49 PM
  4. [SOLVED] Calculating amount of master items based on mixed amount of items
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-21-2014, 11:21 AM
  5. [SOLVED] Sum amount based on same reference id using VBA
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2013, 07:26 AM
  6. Discount based on amount?
    By seaniexxx in forum Excel General
    Replies: 2
    Last Post: 02-06-2009, 06:14 AM
  7. How can I calculate amount of time left based on amount spent?
    By KLD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2006, 11:25 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