LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default conditional sum macro

Hello - I am trying to generate a report based on some usage reports. I
have three columns, one with user names, one with usage description and
the final with corresponding usage quantity. Some of the usage
descriptions are synonymous so the usage quantity will be a sum of
synonymous categories. For example:

A B C
Green X 4
Green Y 10
Green Z 5
Smith X 3
Smith Y 5
Smith Z 2

In this example, column B has the usage description and for our report
we see X & Y as synonymous -- we would like to see usage results that
are the sum of these. E.g.

Green X/Y 14
Green Z 10
Smith X/Y 8
Smith Z 2
Etc.

This seems like a pretty straightforward =SUMIF problem
[=SUM(IF(A1:A$="Smith",IF(B1:B$="X,Y",C1:C$,0),0))] BUT there is of
course a caveat... The list of names is over 100 and I'd prefer to NOT
declare each one. Is there a way that I can use this formula where I
look for unique values in column A to groupby and then sum accordingly?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Macro Stacey Excel Discussion (Misc queries) 2 March 7th 07 05:31 PM
[B]Conditional Macro?[/B] Heydilbert Excel Discussion (Misc queries) 1 November 11th 05 10:07 PM
conditional sum and macro Francine Otterson Excel Discussion (Misc queries) 1 June 22nd 05 09:44 AM
conditional macro eofeapr Excel Programming 4 April 3rd 05 10:41 AM
Conditional Macro Shelley Shepherd via OfficeKB.com Excel Worksheet Functions 1 February 1st 05 05:32 PM


All times are GMT +1. The time now is 05:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"