Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpliskow
 
Posts: n/a
Default Calculating Sum with Multiple Field Criteria


I have a spreadsheet with the following values:

A B
01-JAN-06 John Smith
01-JAN-06 Jane Doe
01-FEB-06 John Smith
09-FEB-06 John Smith
etc.

Either in the same or new worksheet, I want to calculate the number of
times "John Smith" and "JAN" appear in the same row, "Jane Doe" and
"JAN", "John Smith" and "FEB", etc.

The expected results would appear as follows:

January
John Smith 1
Jane Doe 1

February
John Smith 2
Jane Doe 0

What is the formula needed to accomplish this?


--
bpliskow
------------------------------------------------------------------------
bpliskow's Profile: http://www.excelforum.com/member.php...o&userid=31645
View this thread: http://www.excelforum.com/showthread...hreadid=513351

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default Calculating Sum with Multiple Field Criteria


SUMPRODUCT will work.

=SUMPRODUCT(--(MONTH($A$1:$A$4)=1),--($B$1:$B$4="John Smith"))

Just change the condition for MONTH to equal the correct month number
as needed. (i.e. Jan=1, Feb=2, March =3 etc...). You could refer to
the names in cells rather than typing in the text ="John Smith" also.

Does that help?

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=513351

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpliskow
 
Posts: n/a
Default Calculating Sum with Multiple Field Criteria


Yup, that helps. Found the answer in the Microsoft Support Forum in
between my post and your reply.


--
bpliskow
------------------------------------------------------------------------
bpliskow's Profile: http://www.excelforum.com/member.php...o&userid=31645
View this thread: http://www.excelforum.com/showthread...hreadid=513351

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
Counting Using Multiple Criteria mhall5 Excel Worksheet Functions 4 January 3rd 06 11:47 PM
Retrieving a Value from List that meets multiple Criteria mamalik Excel Discussion (Misc queries) 3 January 2nd 06 02:28 PM
Multiple criteria LOOKUP Leon Excel Worksheet Functions 2 December 22nd 05 01:13 PM
Multiple Criteria (add or subtract) MJSlattery Excel Discussion (Misc queries) 1 June 11th 05 05:38 PM
Multiple Criteria IF Nesting BethB Excel Worksheet Functions 2 May 17th 05 12:14 AM


All times are GMT +1. The time now is 04:05 AM.

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"