A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count with two criteria



 
 
Thread Tools Display Modes
  #1  
Old March 18th, 2010, 05:39 PM posted to microsoft.public.excel.worksheet.functions
LisaK
external usenet poster
 
Posts: 143
Default Count with two criteria

I am working in Excel 2003, I am trying to count with two criteria and
multiple sheets.
I am using this formula: =SUMPRODUCT(('Sum 1Q10'!A2:A4="BKD")*('Sum
1Q10'!F2:F4="Open")) my result is 0. It should be 1.

Is there another way to do this? I really need help.

Ads
  #2  
Old March 18th, 2010, 05:50 PM posted to microsoft.public.excel.worksheet.functions
ker_01
external usenet poster
 
Posts: 87
Default Count with two criteria

Lisak- There are a couple of approaches to do this; I'll give you the one I
use out of habit.

The sumproduct conditions evaluate to true or false. You have to force them
back to a numeric format. Some folks do that with a leading double negative
on each condition. I tend to multiply each condition (the ones that have an
evaluation step, not just raw numbers) by 1.
Also, sumproduct separates conditions with a comma.

Example:
=SUMPRODUCT(('Sum 1Q10'!A2:A4="BKD")*1,('Sum 1Q10'!F2:F4="Open")*1)

Hope that helps,
Keith

"LisaK" wrote:

I am working in Excel 2003, I am trying to count with two criteria and
multiple sheets.
I am using this formula: =SUMPRODUCT(('Sum 1Q10'!A2:A4="BKD")*('Sum
1Q10'!F2:F4="Open")) my result is 0. It should be 1.

Is there another way to do this? I really need help.

  #3  
Old March 18th, 2010, 05:51 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Count with two criteria

Just check that you do have "BKD" and "Open" in those cells, and that
there are no extra spaces (or non-breaking space characters) in there
- use =LEN(A2) to find out how many characters you have in A2, and
apply this to the other cells.

Hope this helps.

Pete

On Mar 18, 4:39*pm, LisaK wrote:
I am working in Excel 2003, I am trying to count with two criteria and
multiple sheets.
I am using this formula: *=SUMPRODUCT(('Sum 1Q10'!A2:A4="BKD")*('Sum
1Q10'!F2:F4="Open")) my result is 0. It should be 1.

Is there another way to do this? *I really need help.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 OfficeFrustration.
The comments are property of their posters.