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!
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!
Last edited by Yan Ni; 11-11-2012 at 11:22 PM.
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?
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
It does not work
what doesnt work? i re-opened the file that I sent you and it seems to work fine for me?
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.
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)
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
Take a look to this, too.
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.
Without a Pivot Table
In G5, Drag down
Formula:Please Login or Register to view this content.
If you also want the ammount
In H5
Formula: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.
I quess mine too. Eh????
Ya, either did not work as both did not display the correct ID
Ha Ha. Can you tell us which is the correct and why?
Only the pivot table format did work.
But now i want to count the amt of female and male in that month, disregarding those members that duplicate.
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
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
This would be easier with a pivot table, but in post #7 you say ...
See if this workbook gives you the results you need.It worked, but is there another way to do it ? without using the pivot table and would be more automated?
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
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.
see attachment
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?
i just give solution that one id member count once only every month, and disregard the repeat like yan ni want.
@ 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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks