+ Reply to Thread
Results 1 to 24 of 24

How can I have the member with the maximum amount of purchase dollar to appear ?

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    24

    How can I have the member with the maximum amount of purchase dollar to appear ?

    I want to find out within that month, which member is the one that spend the most amount and have the memberID to appear in the Box. IN one month the same member can purchase 2 or more times.

    Please help me, thanks!
    Attached Files Attached Files
    Last edited by Yan Ni; 11-11-2012 at 11:22 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    I created a Pivot Table from you're data, and extracted the info you wanted. take a look and let me know if this is something you can work with?
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    It does not work

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    what doesnt work? i re-opened the file that I sent you and it seems to work fine for me?

  5. #5
    Registered User
    Join Date
    11-07-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    In the sense that the memberID that appear to spend the most purchase amount in the month, is not the one that spend the most amount.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    oops sorry, I went up 1 row too much on my index, use this instead...

    =INDEX(G12:I89,MATCH(MAX(H12:H89),H12:H89,0),1)

  7. #7
    Registered User
    Join Date
    11-07-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    It worked, but is there another way to do it ? without using the pivot table and would be more automated?

    thanks for your help! :D

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    Take a look to this, too.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  9. #9
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    Without a Pivot Table

    In G5, Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you also want the ammount
    In H5
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In the event of two or more members spend the max for the month, then only the first found will be returned.

    It isn't a problem to modify this to list the other members in the event of a tie.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  10. #10
    Registered User
    Join Date
    11-07-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    Quote Originally Posted by Marcol View Post
    Without a Pivot Table

    In G5, Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you also want the ammount
    In H5
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In the event of two or more members spend the max for the month, then only the first found will be returned.

    It isn't a problem to modify this to list the other members in the event of a tie.
    The formula you gave does not work

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    I quess mine too. Eh????

  12. #12
    Registered User
    Join Date
    11-07-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    Ya, either did not work as both did not display the correct ID

  13. #13
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    Ha Ha. Can you tell us which is the correct and why?

  14. #14
    Registered User
    Join Date
    11-07-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    Only the pivot table format did work.

  15. #15
    Registered User
    Join Date
    11-07-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    But now i want to count the amt of female and male in that month, disregarding those members that duplicate.

  16. #16
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    try it (array formula)
    formula at G5
    {=INDEX(INDIRECT("A"&MIN(IF($C$2:$C$97=F5;ROW($C$2:$C$97)))&":A"&MAX(IF($C$2:$C$97=F5;ROW($C$2:$C$97))));MATCH(MAX(SUMIF(INDIRECT("A"&MIN(IF($C$2:$C$97=F5;ROW($C$2:$C$97)))&":A"&MAX(IF($C$2:$C$97=F5;ROW($C$2:$C$97))));INDIRECT("A"&MIN(IF($C$2:$C$97=F5;ROW($C$2:$C$97)))&":A"&MAX(IF($C$2:$C$97=F5;ROW($C$2:$C$97))));INDIRECT("B"&MIN(IF($C$2:$C$97=F5;ROW($C$2:$C$97)))&":B"&MAX(IF($C$2:$C$97=F5;ROW($C$2:$C$97))))));SUMIF(INDIRECT("A"&MIN(IF($C$2:$C$97=F5;ROW($C$2:$C$97)))&":A"&MAX(IF($C$2:$C$97=F5;ROW($C$2:$C$97))));INDIRECT("A"&MIN(IF($C$2:$C$97=F5;ROW($C$2:$C$97)))&":A"&MAX(IF($C$2:$C$97=F5;ROW($C$2:$C$97))));INDIRECT("B"&MIN(IF($C$2:$C$97=F5;ROW($C$2:$C$97)))&":B"&MAX(IF($C$2:$C$97=F5;ROW($C$2:$C$97)))));0))}

    see atttachment

  17. #17
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    Quote Originally Posted by Yan Ni View Post
    But now i want to count the amt of female and male in that month, disregarding those members that duplicate.
    Either explain yourself better, or supply a copy of your actual workbook that shows your data and expected results.

  18. #18
    Registered User
    Join Date
    11-07-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    I want to count the number of Males and Females for both months, within a month there are some memberID that repeat but i want it to disregard the repeat and just count once only.

    Please help!
    Thanks lots
    Attached Files Attached Files

  19. #19
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    This would be easier with a pivot table, but in post #7 you say ...
    It worked, but is there another way to do it ? without using the pivot table and would be more automated?
    See if this workbook gives you the results you need.
    This will handle your data as it grows, but the data in A:D must be grouped, or sorted, by month.
    Select from the drop-down in G1

    H2:J4 returns the Top 3 overall
    H8:I10 returns the Top 3 females
    H14:I16 returns the Top 3 males
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    11-07-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    Thanks for your help, but currently i would just need help to have a formula where it can help me count the number of female and male members for that month.

  21. #21
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    see attachment
    Attached Files Attached Files

  22. #22
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    Please make your mind up as to what you are trying to achieve, this is the third time you have completely changed the objective.

    @ Ghozi
    Would this way not be a tad easier?
    Attached Files Attached Files

  23. #23
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    i just give solution that one id member count once only every month, and disregard the repeat like yan ni want.

  24. #24
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How can I have the member with the maximum amount of purchase dollar to appear ?

    @ Ghozi
    My apologies, I'm loosing the place here with all the changes!

    In your posted workbook Cells H5:I5 should sum to equal G5

    Array entered formulae can be very memory intensive, especially when they involve volatile functions such as INDIRECT().

    Better to keep things simple.
    Use a Helper Column, say Column E ("Flag", this can be hidden) then use non-CSE formulae.

    With 2007 and above you are better to use COUNTIFS() or SUMIFS() rather than SUMPRODUCT() as in this 2003 workbook.
    Attached Files Attached Files

+ 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