#### Count if based on 2 criteria

```I am attempting to summarize some data based on the values in 2 different
cells.  Example Count the number of rows where column A = xyz and column U =
"this is a test"

I know the countif statement can't do multiple criteria, but is it possible
to use nested countif statements, or use some combination of AND or IF
statements?

Thank you

```
 0
Scruff57 (12)
7/18/2003 2:39:36 AM
excel 39879 articles. 2 followers.

3 Replies
345 Views

Similar Articles

[PageSpeed] 15

```Answered in microsoft.public.excel.worksheetfunctions.  Please do not
post the same question separately to multiple newsgroups.  It fragments

Jerry

nobody wrote:

> I am attempting to summarize some data based on the values in 2 different
> cells.  Example Count the number of rows where column A = xyz and column U =
> "this is a test"
>
> I know the countif statement can't do multiple criteria, but is it possible
> to use nested countif statements, or use some combination of AND or IF
> statements?
>
> Thank you

```
 0
7/18/2003 3:17:03 AM
```Create a new column, say AA = column A concatenated with column U. Then
countif AA="xyzthis is a test"

"nobody" <Scruff57@notreallyhotmail.com> wrote in message
> I am attempting to summarize some data based on the values in 2 different
> cells.  Example Count the number of rows where column A = xyz and column U
=
> "this is a test"
>
> I know the countif statement can't do multiple criteria, but is it
possible
> to use nested countif statements, or use some combination of AND or IF
> statements?
>
> Thank you
>
>

```
 0
7/20/2003 10:52:24 PM
```Try the following array formula:

[=SUM((A1:A100="xyz")*(U1:U100="this is a test"))]

Remember to use Ctrl-Shift-Enter after typing the formula in the desired
cell.

/i.

"nobody" <Scruff57@notreallyhotmail.com> wrote in message
> I am attempting to summarize some data based on the values in 2 different
> cells.  Example Count the number of rows where column A = xyz and column U
=
> "this is a test"
>
> I know the countif statement can't do multiple criteria, but is it
possible
> to use nested countif statements, or use some combination of AND or IF
> statements?
>
> Thank you
>
>

```
 0
ismits (18)
7/20/2003 11:04:59 PM

Similar Artilces:

the criteria pane and table panes have disappered.
In my excel file I can't see the criteria and table panes and the functions will not reappear. ...

How can I insert a cell reference in a footer (eg for variable foo #2
Any ideas on how to do this? I'm trying to create a template with the doc reference number in the footer However, I'm trying to avoid users having to edit the footer (because this just wont get done). Private Sub Workbook_BeforePrint(Cancel As Boolean) With ActiveSheet .PageSetup.LeftFooter = .Range("A1").Text End With End Sub This code should go in the ThisWorkbook code module. -- HTH RP (remove nothere from the email address if mailing direct) "wngg001" <wngg001@discussions.microsoft.com> wrote in message news:8A0F9D9E-269F-45CF-A6E3...

Testing NNTP Client, Please ignore message Thanks ...

Is is possible when you have a drop down menu, to have excel short list the menu as you type in more charcaters of the text. For example a have a list of several hundred customers. I start inputting the first few letters of the customers name, I would like that list of several hundred to be shortened to only include thaise customers that begin with the letters I have typed in. Thanks Think this previous post by Debra Dalgleish would be of help: "Although data validation doesn't support autocomplete, there's a sample file here that provides a combobox from which you can se...

Associated external Account #2
Dear all, Just got some of our exch2k users migrated to another org exch2k3. Found that associated external account rights which never seen before in 2k. Wish to know the purpose of this account and when is the best time to use it. Please help and thousand thanks. regards Granting Access to External Accounts http://www.microsoft.com/technet/prodtechnol/exchange/guides/WorkingE2k3Store/8c4befe3-3815-4b6b-a759-1e5a2878499d.mspx -- Bharat Suneja MCSE, MCT -------------------------------- "Elton Seng Yan Thung" <sengy01@pd.jaring.my> wrote in message news:enFBAvpwFHA...

virus scanning #2
I really get prompted for "requesting virus scan", and I don't know ho to disable it; the warning is located beside ready, in Excel bar -- Gerbati ----------------------------------------------------------------------- Gerbatin's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=1523 View this thread: http://www.excelforum.com/showthread.php?threadid=27651 What antivirus software do you use? I think/hope the solution will involve a setting that you can toggle in that program. (maybe you missed an option???) The antivirus program doesn't have t...

2 questions about Exchange Server 2000
1. How, or where, do I find out where Service Pack level I have installed? I see that I downloaded SP3, but I can't tell if it was ever installed. 2. Clients have Outlook 2000. Inbox is open. Last message is selected. No new mail. Then, if you click on a different message, you get the "new mail has arrived..." message. It seems to only deliver new mail when you change messages. Any thoughts? 1. In Exchange System Manager, highlight the Servers container. It should show you all servers in the right pane along with their service pack level. 2. Sounds like something is b...

Turn data #2
Is there a way to turn the data in an Excel spreadsheet so that what is on the top is now on the side and what is on the side is now on top? I need to export my spreadsheet into Access but, I can't get it to format correctly in its current orientation. ~Make a backup copy of your data to work from (just in case, so you don't lose data) ~Highlight the entire range of data; click >Edit >Copy ~Choose a new location, on a different sheet perhaps; click >Edit >Paste Special and select the Transpose box; click OK Does that do it for you? thank you so much. You are a genius...

Only 1 taskbar button when i open 2 excel documents
Hi all. When i open 2 excel documents i have only 1 taskbar button on the taskbar even though i did not choose the option to group similar taskbar buttons under taskbar properties. Hence when i want to switch between the 2 documents i need to go to window and select them. Hence how do i solve this so that i can have 2 taskbar buttons of the excel documents on the taskbar? Thks in advance. Tools>Options>View, check Windows In taskbar -- HTH Bob Phillips "inenewbl" <inenewbl@discussions.microsoft.com> wrote in message news:6F715432-2EB2-47AC-B737-56D63F37537A@mi...

Pivot Table fields #2
Is there a way to format multiple pivot table fields at one time and have them refresh that way, rather than having to select each column and choose the format options? Thanks CLou: I think the solution for you is to open the Pivot Table Toolbar and select the Field Settings icon. This sets the format for all results for that particular field. One limitation that I haven't found a way around is getting a preferred column size to "stick" and not reset after a table refresh. Bruce >-----Original Message----- >Is there a way to format multiple pivot table fields at ...

I am trying to create business cards using Microsoft Publisher 2002 on XP. Where would I find the template for Avery 8397, or for any of the Avery business card products. In page setup, select business cards, click Change copies per sheet and adjust the margins to fit your template. Avery has blank templates for downloading, choose Cards, there will be a list to select from. Your number was not among them but generally business cards are pretty much alike. http://www.avery.com/us/Main?action=software.BlankTPLHierarchy&catalogcode=WEB01&node=0 -- Mary Sauer MS MVP http://office.mi...

diable command button based on field value
I have a command button which I would like to disable based on the following rules: If A = 1 then button is disabled If B = 2 then button is enabled Where you put the code depends on how the form works. If this needs to be checked for each record, use the form current event: If A = 1 Then Me.Button.Enabled = False ElseIf B = 2 Then Me.Button.Enabled = True End If But, what if A is not 1 and B is not 2? -- Dave Hargis, Microsoft Access MVP "barrynichols@gmail.com" wrote: > I have a command button which I would like to disable based on the >...

RMS 2.0 Can not create Matrix Item please Help When trying to create any new items I receive error message This is the message (-2147217864) Row Cannot be located for updating. Some values may have been change since it was last read. Manger still creates standard items but still receives message with out this number in message -2147217864 ...

default mail format based on domain
Greetings - After 20_ years of Eudora and Thunderbird (in that order), I'm looking at Outlook for the first time (we're moving to an Exchange backend, so...worth a look, for obvious reasons). In Thunderbird, if I want to set a default HTML format for emails sent to a certain domain, I can specify that. For any other domain(s), plain text. Is there an easy way to do that in Outlook (I'm using 2007)? Basically, I want emails sent to my enterprise domain (i.e., my place of employment) to be in HTML or perhaps RTF, but mail sent to other domains to be plain text only. Again, I want ...

Macro Recorder #2
I have a very basic question( I think). When you are recording a Macro how do you stop and then restart where you left off? For example I have a repetitive task that moves columns from one spreadsheet to another. The problem is that there are about 40 columns I am required to move. As I record the macro can it be stopped and then restarted if I have to close Excel and return later? I can't find the answer to my question documented anywhere. Thank You, Greg You can stop it, but when you start again it will create a new subprocedure, you can go in and copy/paste the second after the firs...

2 mirror files with :1 and :2
Not sure how, but have 1 excel file, lets call it FILEA.xls and when I open it, it opens a FILEA:1 and a FILEA:2 workbook. Any change made to FILEA:1 gets repeated in FILEA:2 and vice versa. Looks like some sort of mirroring, or changes being tracked, but track changes is turned off. Any help is appreciated! Hi you've opened two windows of the same workbook (from the window /new window menu) - just close one and then save - this should solve the problem Cheers JulieD "DJR" <DJR@discussions.microsoft.com> wrote in message news:F0F6BDF5-9DC2-486E-947C-ABBB6C4544...

Date Range #2
Hi, Can someone please assist me with the following issue: I am currently using the formula noted below to direct another application ( Bloomberg ) to select prices from the previous 6th business day. My question is> Is there any way to revise the formula to exclude US holidays for successive years (i.e. for 2005, 2006...) without having to manually change the date entries each year, in the formula? =WORKDAY(Today(),-6, {"5/31/04","7/5/04","9/6/04","11/25/04","12/25/04","1/1/05" }) Thank you I'd recommend listing...

Uninstalling Office 2003 Service Pack 2
I have installed the Service Pack 2 for Office 2003 and have decided that it causes too many problems with Outlook 2003. For example, it sees certain emails as "Junk Mail" and (evidently) believes them to be "phishing". Even after placing these emails in my Inbox and adding the sender to the white list, it refused to allow me to open links from any web page link within the email. I understand that I cannot simply uninstall Service Pack 2, that I must install Office 2003 and then reinstall, without, of course, reinstalling the Service Pack. But if I do that, I wonder...

Comparing Worksheets #2
I have 2 worksheets that should be identical. One I know has been changed. Is there any way to compare the 2 to track changes. Darryll One way is to use a third sheet. In A1 type =Sheet1A1=Sheet2A1 This will return TRUE or FALSE. Fill this across and down as many as you need Andy. "Darryll" <Darryll_lamb@hotmail.com> wrote in message news:2618f01c38e4c\$0c390cf0\$a601280a@phx.gbl... > I have 2 worksheets that should be identical. One I know > has been changed. Is there any way to compare the 2 to > track changes. Thanks for your help Andy. All seems ok. >-----...

Money 2004 crash on startup #2
just find that it only crash when i use my current user, not happening when i logon as another user, seems my profile has some problem, maybe more startup & program installed. any idea on how to troubleshoot ? =========== just install in my WinXP SP1, which has IE6.0 SP1 installed already. Money2004 Std keep crashing on startup after install. with error dialog of "restart Money - Send / don't send report" any idea ? a further findings, i run Money2004 using "run as" another user, it works ! using local adm or domain userwith local adm right also run correctly....

Change print driver from PS level 1 to level 2
When printing in Publisher 2003 only, on and HP business inkjet 1100 I'm told that I need to set the PostScript language level to level 2 or higher. Following the instructions, I can't make the changes as directed in corrections from the error message, nor can I find any other way to change it.. You receive a Publisher cannot print this publication error message when you print as CMYK composite in Publisher 2003 http://support.microsoft.com/default.aspx?scid=kb;en-us;819594 -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.co...

outlook won't connect to server #2
I have just installed Outlook 2003. I haven't used Outlook before. I have a Hotmail plus account. I have set up outlook to use this Hotmail account, but I cannot connect to the server to do so. I am fully connected to the internet when I try, through my ADSL broadband connection. hoo22 <hoo22@discussions.microsoft.com> wrote: > I have just installed Outlook 2003. > I haven't used Outlook before. > I have a Hotmail plus account. > I have set up outlook to use this Hotmail account, but I cannot > connect to the server to do so. > I am fully connected to the...

gridlines print over text #2
When printing an Excel document with gridlines, some of them print over the text, and they don't line up properly. I've checked my text and spacing settings, and everything seems fine. Am I missing something? It sounds like the rows and/or columns are not big enough for the data - you could try the Autofit option Sheila "martikaih" wrote: > When printing an Excel document with gridlines, some of them print over the > text, and they don't line up properly. I've checked my text and spacing > settings, and everything seems fine. Am I missing something? ...

Cash Receipt Error #2
I entered a Cash Receipt to the wrong customer, posted it, made the deposit and posted that. Is there an easy way for me to get the funds out of the one customer's account into the correct customer? Thanks Angie Angie, You could enter a credit memo for the 'right' customer and a debit memo for the 'wrong' customer. The only downside to this if that if you ever print a report or look at a list of payments for either of these customers they won't be quite right. Another option is to void the cash receipt and re-enter it correctly. Since it's already p...

Purchase Order Printing #2
We are using V7.5 GP, Is there a way to massively print Drop ship Po's (for 1 vendor) and to email/send them in one shot? or does each PO have to be individually printed to adobe and sent? Any Help is appreciated. Thx! Joe. ...