Hi Folks
As the title suggests I need to Rank groups of values that may contain a mixture of both positive and
negative values. Some may be all positive and some may be all negative as well.
Workbook attached with sample layout-
Cheers
hammer
Hi Folks
As the title suggests I need to Rank groups of values that may contain a mixture of both positive and
negative values. Some may be all positive and some may be all negative as well.
Workbook attached with sample layout-
Cheers
hammer
If you have found solving my problem/s to be an interesting and educational exercise then how about Repping me up?
No idea why I need Rep, other than feeling left out....
Try
in E2
=RANK($D2,OFFSET($A$1,MATCH(A2&B2&C2,$A$2:$A$1000&$B$2:$B$1000&$C$2:$C$1000,0),3,COUNTIFS($A:$A,$A2,$B:$B,$B2,$C:$C,$C2)))
Enter with Ctrl+Shift+Enter
copy down
Last edited by JohnTopley; 11-24-2016 at 02:24 AM.
Nice 1 John, I was going to go the OFFSET rout, but was trying to think of another option
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
@Ford ... you probably will !!!!
Thanks John
That certainly works in the sample workbook but returns #N/A in the actual-
Could you tell me what the ',3,' in the middle of the formula does please?
I am actually using different reference Cols in the actual workbook but am certain they are adjusted correctly.
Thanks
3 is the offset of column D from column A as I used $A$1 at the OFFSET reference. You could use $D$1 and set 3 to 0.
Lesson to be learned: always post a true representation of your data!!!
In E2
Formula:
Please Login or Register to view this content.
Confirm with Ctrl+Shift+Enter
Copy down
Or try this ...
=COUNTIFS($A$2:$A$23,A2,$B$2:$B$23,B2,$C$2:$C$23,C2,$D$2:$D$23,">"&D2)+1
Normal Enter.
@Phuocam - Excellent formula! Thank you so very much
@JohnT It is actually a true representation, just that I was inputting it to a different sheet where the layout/s slightly differ. This is why I asked how/why the ,3, worked
because I figured (yes, I do that sometimes) that it was the reason for your formula not working in the sheet I was in!!!
@soledad - Thank you also for your time and effort!
I try to always run with formulas that do not require CSE- but being the dummy I am I cannot remember why![]()
You're welcome.
CSE formulas formula can impact performance but unless the volumes are large there is little "practical" difference in performance.
But I like Phuocam's solution: very neat!
Last edited by JohnTopley; 11-24-2016 at 04:26 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks