A 1
B 2
B 2
C 3
A 1
C 3
--------
my sum should be 6....first occurance of A, B, C
-cannot sort on anything
Thanks in advance!
A 1
B 2
B 2
C 3
A 1
C 3
--------
my sum should be 6....first occurance of A, B, C
-cannot sort on anything
Thanks in advance!
Last edited by TechRetard; 04-13-2011 at 02:44 PM.
TechRetard.ToString();
There are always multiple ways to do something, when it doubt, drink a beer.
I do not care if you rep or not but please mark post as Solved if there is resolution so I stop going back and checking if anything else is needed.
Add a helper column:
=IF(COUNTIF(A$1:A1,A1)=1,B1,"")
copied down (assuming data in A1:B6)
Then use: =SUM(C1:C6)
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Or, in a similar vein;
In helper column
=COUNTIF($A$1:A1,A1)
Result;
=SUMIF($C$1:$C$6,1,$B$1:$B$6)
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
You would need an array formula and 60,000 rows is a lot to process for the array formula... it would be more efficient to use the helper... especially if you have other things going on in the workbook that might add to the resource eating.
If you wanted to give it a test, then try:
adjust ranges to suit and confirm with CTRL+SHIFT+ENTERPlease Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks