+ Reply to Thread
Results 1 to 11 of 11

Maximum amount with various data

  1. #1
    Forum Contributor
    Join Date
    11-17-2009
    Location
    Kuwait
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    106

    Maximum amount with various data

    Dears

    I have a sheet (attached), I am looking for the maximum amount in listed cell (C:C) for each company.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Maximum amount with various data

    Maximum Amount.xlsx


    Hi,


    Find the Solved Sheet

  3. #3
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Maximum amount with various data

    In col D, use the below as an array formula (confirmed by pressing Ctrl+Alt+Enter)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  4. #4
    Forum Contributor
    Join Date
    11-17-2009
    Location
    Kuwait
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    106

    Re: Maximum amount with various data

    Thanks for your contribution and feedback.

    This a partially solved, but what if I have more than a thousand co. I don’t need to write down each company name and linked the formula with the requested cell, actually I need to get the result in column (D).

  5. #5
    Forum Contributor
    Join Date
    11-17-2009
    Location
    Kuwait
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    106

    Re: Maximum amount with various data

    Quote Originally Posted by Saarang84 View Post
    In col D, use the below as an array formula (confirmed by pressing Ctrl+Alt+Enter)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thanks
    but this is not which i am looking for.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Maximum amount with various data

    In D2, try this formula to get the list unique companies.

    Please Login or Register  to view this content.
    and then drag down.

    In E2, try this array formula which requires confirmation with Ctrl+Shift+Enter

    Please Login or Register  to view this content.
    and then drag down.

    For detail see the attached sheet.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  7. #7
    Forum Contributor
    Join Date
    11-17-2009
    Location
    Kuwait
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    106

    Re: Maximum amount with various data

    Quote Originally Posted by sktneer View Post
    In D2, try this formula to get the list unique companies.

    Please Login or Register  to view this content.
    and then drag down.

    In E2, try this array formula which requires confirmation with Ctrl+Shift+Enter

    Please Login or Register  to view this content.
    and then drag down.

    For detail see the attached sheet.
    Thanks for your contribution and valuable time.
    Kindly could I have the result as per the attached file, in fact I need to repeat each maximum value in column (D:D) all over the respective company name.
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Maximum amount with various data

    Quote Originally Posted by MAHMUZ View Post
    Thanks for your contribution and valuable time.
    Kindly could I have the result as per the attached file, in fact I need to repeat each maximum value in column (D:D) all over the respective company name.
    Hi,

    The output you need (as given in column D marked in yellow in your attachment) can be generated from my formula. Refer my post #3 for the formula. After you paste the formula in the required column on your worksheet, don't forget to press Ctrl+Shift+Enter together to convert it into an array formula. Once you have done so, copy it down to as many rows as you want.

  9. #9
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Maximum amount with various data

    Quote Originally Posted by MAHMUZ View Post
    Kindly could I have the result as per the attached file, in fact I need to repeat each maximum value in column (D:D) all over the respective company name.
    Download "Maximum Amount v2.xls" (click here) [1]. Ignore the preview. Just click on Download.

    In part, the table is:


    A
    B
    C
    D
    E
    1
    Company Name
    Invoice Amount Maximum Intended
    Maximum

    2
    C 123456 78.50 78.50 78.50
    3
    C 443335 54.77 78.50 78.50
    4
    C 56789
    1.10 78.50 78.50
    5
    B fd4567 3.00 69.99 69.99
    6
    B vcb5657 34.50 69.99 69.99
    7
    B bnm9990 69.99 69.99 69.99
    8
    D ret561 55.67 55.67 55.67
    9
    A qwe234 99.90 324.80 324.80
    10
    A vcv878 324.80 324.80 324.80
    11






    Column E is your original column D, for comparison.

    The formula in D2 is:

    =IF(A2="","",MAX(IF($A$2:$A$1000<>"",IF($A$2:$A$1000=A2,$C$2:$C$1000))))

    Be sure to array-enter the formula: press ctrl+shift+Enter, not just Enter.

    Copy D2 down through D1000.

    If you might need more rows of data (!), change all instances 1000 to the rows needed, and copy down column D through the last row needed. Do similarly if you need fewer rows.

    Note: Do not use A:A and C:C instead of $A$2:$A$1000 and $C$2:$C$1000. Although A:A and C:C are more convenient to write, you pay a hefty price in Excel 2007 and later: the array-entered IF() expression builds an array of 1+ million rows, and Excel must evaluate 1+ million rows. It is unlikely that you will need that many rows of data.


    -----
    [1] https://app.box.com/s/3ge7ep5mg49gpycfutwa

  10. #10
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Maximum amount with various data

    Quote Originally Posted by MAHMUZ View Post
    Thanks for your contribution and valuable time.
    Kindly could I have the result as per the attached file, in fact I need to repeat each maximum value in column (D:D) all over the respective company name.
    This is what Saarang84 suggested in his post#3.

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Maximum amount with various data

    I used a pivot table, to get the result.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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] How can I have the member with the maximum amount of purchase dollar to appear ?
    By Yan Ni in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 11-10-2012, 11:56 AM
  2. [SOLVED] Maximum amount of macros supported
    By Bror in forum Excel General
    Replies: 2
    Last Post: 08-18-2006, 10:15 PM
  3. [SOLVED] What is the Maximum amount of sheets in a workbook?
    By Ant in forum Excel General
    Replies: 1
    Last Post: 04-06-2006, 07:00 AM
  4. [SOLVED] Maximum amount of characters in a footer
    By Matt W. in forum Excel General
    Replies: 4
    Last Post: 02-23-2006, 05:20 PM
  5. [SOLVED] formula that includes a maximum amount
    By fbcmusicmark in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-06-2005, 07:30 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