Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Matrix Lookup Count

I have the following table:

People Jack Jill Fred
Role
Service P B
Support P B
Service C
Operations B P
Operations B C P

I need a function that can sum the number of each (P, B or C) for Role and
People given P = 3, B = 2, C = 1.

Role Sum by People

Role Service Support Operations
People
Jack
Jill 2 3 3
Fred

(Note, I only show Jill's Sum of Roles)

Any help would be appreciated. I am open to replacing P, B and C with 3, 2
and 1. Just need the formula to do the trick.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Matrix Lookup Count

With the data supplied in A1:D7 aso that Jill's data is in C3:C7 and the
table you want in F1:I4 so that the "Service", "Support" and "Operations" is
in G1:I1 then:

=SUMPRODUCT(($A$3:$A$7=G1)*($C$3:$C$7={"P","B","C" })*{3,2,1})

Entered in G3 and dragged across to I3

However, it would be better not to transpose the tables and have - say - the
names in L1:N1 and the "Service", "Support" & "Operations" in K2:K4. With
that arrangement,

=SUMPRODUCT(($A$3:$A$7=$K2)*(B$3:B$7={"P","B","C"} )*{3,2,1})

entered in L2 and dragged across and down will fill in every number without
having to adjust the formula.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"MarkMcG" wrote in message
...
I have the following table:

People Jack Jill Fred
Role
Service P B
Support P B
Service C
Operations B P
Operations B C P

I need a function that can sum the number of each (P, B or C) for Role and
People given P = 3, B = 2, C = 1.

Role Sum by People

Role Service Support Operations
People
Jack
Jill 2 3 3
Fred

(Note, I only show Jill's Sum of Roles)

Any help would be appreciated. I am open to replacing P, B and C with 3,
2
and 1. Just need the formula to do the trick.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Matrix Lookup Count

Sweet Sandy, many thanks.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Matrix Lookup Count

You are very welcome. Thanks for posting back

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"MarkMcG" wrote in message
...
Sweet Sandy, many thanks.



Reply
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
Matrix lookup/mulitple criteria lookup MarkFranklin Excel Discussion (Misc queries) 3 March 31st 08 10:15 AM
Matrix Lookup C Brandt Excel Discussion (Misc queries) 4 May 1st 07 05:07 PM
Reverse Matrix lookup? CLR Excel Discussion (Misc queries) 16 May 20th 06 11:14 AM
lookup in MATRIX Forumchanin Excel Worksheet Functions 2 December 13th 05 01:29 PM
Lookup in Matrix Johannes Excel Worksheet Functions 5 May 4th 05 10:32 AM


All times are GMT +1. The time now is 05:36 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"