Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

vlookup and Sum unique values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Diggsy - 09 May 2008 20:37 GMT
Hello,
I am trying to do a vlookup on Group Names and return a sum of the unique
values only. I have many Group names all over this sheet and much of this is
repeated (It is important for that sheet). However I just need to have a sum
of all unique values.
For example

Column A            Column B
Group Name         Number in Group

F8                                20
F7                                30
F7                                 5
F8                                 20
F7                                10
F8                                  5
F7                                30
F7                                 5
F8                                 15
F8                                   5
F8                                   15

The reu;lt would return a total of 40 for F8(20 + 15 + 5)

and a total of 45 for F7 (30 + 5 + 10)

Thanks

chris
Teethless mama - 09 May 2008 21:08 GMT
=SUM(IF(FREQUENCY(IF(RngA="F8",MATCH(RngB,RngB,0)),MATCH(RngB,RngB,0))>0,RngB))

ctrl+shift+enter, not just enter

> Hello,
> I am trying to do a vlookup on Group Names and return a sum of the unique
[quoted text clipped - 25 lines]
>
> chris
Mike H - 09 May 2008 21:09 GMT
Hi,

Try this
=SUM(IF(FREQUENCY(IF(A2:A12=C1,MATCH("~"&B2:B12,B2:B12&"",0)),ROW(B2:B12
)-ROW(B2)+1),B2:B12))

Where C1 is the group you want to sum
This is an array so commit with CTRL+Shift+Enter

Mike

> Hello,
> I am trying to do a vlookup on Group Names and return a sum of the unique
[quoted text clipped - 25 lines]
>
> chris
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.