#### Sumif with two criteria #2

```I need to add column c if column a and column b both meet
my criteria.

example
A      B      C
1   X      Y      3
2   S      Y      1
3   X      Y      2
4   X      F      3
5   F      Y      3

X AND Y           5
```
 0
danperez (3)
10/30/2003 9:06:29 PM
excel.misc 78881 articles. 5 followers.

3 Replies
1147 Views

Similar Articles

[PageSpeed] 30

```On Thu, 30 Oct 2003 13:06:29 -0800, "danperez@joannstores.com"
<anonymous@discussions.microsoft.com> wrote:

>I need to add column c if column a and column b both meet
>my criteria.
>
>example
>    A      B      C
>1   X      Y      3
>2   S      Y      1
>3   X      Y      2
>4   X      F      3
>5   F      Y      3
>
>X AND Y           5

One way:  *array-enter*

=SUM((A="X")*(B="Y")*C_)

To *array-enter* a formula, after typing or copying it in, hold down
<ctrl><shift> while hitting <enter>.  XL will place braces {...} around the
formula.

--ron
```
 0
ronrosenfeld (3122)
10/30/2003 9:29:19 PM
```If you can add another column, the solution below
will work:

COLUMN D FORMULAS =(A1 & B1)

A    B    C    D
1   X    Y    3    XY
2   S    Y    1    SY
3   X    Y    2    XY
4   X    F    3    XF
5   F    Y    3    FY
6
7   5

FORMULA FOR CELL A7 =SUMIF(D1:D5,"XY",C1:C5)

Hope that helps.

Regards,
James S

>-----Original Message-----
>I need to add column c if column a and column b both meet
>my criteria.
>
>example
>    A      B      C
>1   X      Y      3
>2   S      Y      1
>3   X      Y      2
>4   X      F      3
>5   F      Y      3
>
>X AND Y           5
```
 0
10/30/2003 9:40:40 PM
```=sumproduct((rngA="x")*(rngB="Y")*rngC)
NOT necessary to array enter

"danperez@joannstores.com" <anonymous@discussions.microsoft.com> wrote in
message news:056601c39f29\$b04c6ce0\$a101280a@phx.gbl...
> I need to add column c if column a and column b both meet
> my criteria.
>
> example
>     A      B      C
> 1   X      Y      3
> 2   S      Y      1
> 3   X      Y      2
> 4   X      F      3
> 5   F      Y      3
>
> X AND Y           5

```
 0
Don
10/30/2003 11:37:06 PM
 Reply:

Similar Artilces:

2 Questions on Pivot Tables
Any assistance appriciated. (Excel 2003) 1) I have a simple Pivot table showing 6 groups with their totals and a subtotal eg: America 10 UK 15 Oz 22 etc. Grand Total 125 I want to Pivot Graph this data, no problems. I want however an extra line to show the total on the Secondary Axis. I have almost got it by placing the column in a second time as a Running Total and then as a Line on my chart, hiding all the values until the last point. However I would like if possible the Total as a horizontal line across the chart? 2) I h...

Any word on CRM 1.2 release date?
Has anyone heard a firm release date yet for CRM version 1.2? And will CRM 1.2 work with SBS2003 that was just released? -kw "Jim" <jim@nospam.com> wrote in message news:ehxGoPvnDHA.644@TK2MSFTNGP11.phx.gbl... > Has anyone heard a firm release date yet for CRM version 1.2? > > This depends on where you are based. I've just got home from an MS course, and we told that in Australia it will release to the partners at the conference late next month, and will be released to customers on 12/1/04. It was also confirmed that it will run on SBS2003 - it will ru...

Page set up #2
I want to use the paper size of A3, but cannot find it in the paper options. Anyone know where I can find it? Check your printer properties and preferences. If the printers you have installed won't handle A3 you won't have it. And you will need to "install" something that will. Even a "PDF" file printer will do. Alan Badgery wrote: > I want to use the paper size of A3, but cannot find it in the paper > options. Anyone know where I can find it? I've just a home use computer, but the intention was to use the work book between and home and work, w...

Monitoring Exchange 2003 #2
Hello, We are planning to implement MOM 2005. However, we are also concerned about implementing auditing for changes made within ESM. Will there be a tool that will allow management to know a change was completed by a specific UserID? When a mailbox store is dismounted - who dismounted it/date/time? When a change is made to the RUS - who made the change? Thank you, Exchange2003 MOM does not have the ability to monitor this in the shipped Management Pack. You can enable AD auditing on the domain controllers: http://support.microsoft.com/default.aspx?scid=kb;en-us;314955&sd=tech. ...

smtp addresses #2
Exchange 2000. I have 2 smtp addresses under recipient policy. smtp: username@domain.com (set as default) smtp: username@local.domain.com These were created automatically when we migrated from exchange 5.5 to 2000. local.domain.com is our internal domain. domain.com is our Internet address. I unchecked local.domain.com address, and "Apply this policy now", but it did not remove them from each users AD account. So I deleted the local.domain.com address, and "Apply this policy now", but it still did not remove them from each users AD account. We are getting NDR's b...

Exporting emails from Outlook 2003 #2
I have a folder that contains over 500 threads on technical matters on a subject. I have tried to use Export to Exel but this does not transfere all the information over including not giving all the text in the body of the email. A similar problem is saving an email to a folder outside outlook it doesn't show the date so you may have a huge list of items all titled but not dated in the title Please can anybody help? Hi stevtb why do you want to export the emails. What is the target/reson to export the emails? -- Oliver Vukovics Share Outlook without Exchange (Vista Ready): Publi...

Two questions about install packet made by vs2008.
Hi All: I use vs2008 to create an install packet. There are two problems about shortcut. 1.There is a pdf document in my product, and I create a shortcut for this file in start menu. How can I set pdf icon for this shortcut? 2.When I open the property dialog of this shortcut, the "find target" button is disabled. How can I enable this button? Maybe I can use installshield to solve these problems. Thanks! Fiveight ...

training #2
Is there a class offered on Publisher and if so will it ever come to Ohio? Thanks Lots of good training articles available on the Office site. http://office.microsoft.com/en-us/training/CR061832741033.aspx Where in Ohio? -- Mary Sauer MS MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com "Cindy Taylor" <anonymous@discussions.microsoft.com> wrote in message news:0ed301c4f293\$82579a30\$a501280a@phx.gbl... > Is there a class offered on Publisher and if so will it > ever come to Ohio? Thanks On Tue, 4 Jan 2005 19:06:21 -0500, "...

Event ID c0072030 #2
We have an Active Directory Organizational that contain all of our contacts. I have run the delegation of control wizard and given a user full control over the contacts OU. When I log on with that users account and try to update to add an SMTP address to a contact I receive the following error: There is no such object on the server Facility:Win32 ...

Outlook not opening #2
I recently installed Outlook. When I try to open it, I get the error message "Outlook requires Outlook Express 4.01 or greater". I do have OE 5.0 installed. Why am I getting this error? ...

List Boxes #2
Can someone tell me how to correct the following code so that both columns in the listbox will be updated? Only the first column distplays Dim MyArray() ReDim MyArray(mycount, 1) usrGLDist.lstOutput.ColumnCount = 2 For i = 0 To rst.Count - 1 MyArray(i, 0) = rst.Value("descr") MyArray(i, 1) = rst.Value("pcamt") rst.MoveNext Next i 'Load ListBox1 usrGLDist.lstOutput.List() = MyArray Richard wrote : > Can someone tell me how to correct the following code so that both > columns in the listbox will be updated? Only the first col...

How can I line up 2 columns with similar information?
I have 2 columns with names in each and I'd like to line them up next to each other. I think we'll need more information, Kathy. I don't understand what you're trying to do. Can you give exactly what's up? ************ Anne Troy www.OfficeArticles.com "Kathy" <Kathy@discussions.microsoft.com> wrote in message news:A5C0BC96-7E27-4C55-89A3-03513FC0D409@microsoft.com... >I have 2 columns with names in each and I'd like to line them up next to >each > other. Column A has employee number, Column B has the same employee numbers but has addi...

Lost Product Key #2
Wanted to install my publisher deluxe 2002 onto my new computer. I've lost my product key. What can I do? How do I do it? Whistle Britches wrote: > Wanted to install my publisher deluxe 2002 onto my new > computer. I've lost my product key. What can I do? How do > I do it? ================================= Have a look at the following KB article: (823570) How to Obtain a New Product Key for Office Program Setup http://support.microsoft.com/?kbid=823570 -- John Inzer return e-mail disabled ...

RMS POS 2.0 SP1 fails to install
We are running RMS 2.0, and when I tried to install POS SP1 I get the following error" The expected version of the product was not found on your system" I have searched kb and found nothing that may address this. Any ideas would be appreciated. Thanks Sounds like you got the wrong service pack. POS is a different product. You need RMS 2.0 Service Pack 1. Marc "Davidjc52" <Davidjc52@discussions.microsoft.com> wrote in message news:EE74C3F9-0CF6-4693-889C-8CD301CA691F@microsoft.com... > We are running RMS 2.0, and when I tried to install POS SP1 I get the &g...

How do I make a particular column required in Excel? #2
Our NPO is creating a reimbursement chart in Excel. We're trying to make it so that if employees do not fill in one particular column entitled "Projects," they will get an error or will be unable to have a final sum filled in. Is there any way I can make this particular column required so that if it is not filled in, the chart will not complete properly? Thank you in advance for any advice or help--I'm a bit of a novice to this! ...

help with lookup formula (sheet 2, not a double post)
I need to make a formula using a lookup. The first spreadsheet is a inventory (ALO INVENTORY JP). The second (P&G 103) is a chart tha tells number of gallons of alcohol per foot/inch/fraction. On ALO INVENTORY JP I insert the # of feet, inches, and the fraction i cells R5 and T5. I want these numbers to lookup the number of gallon off of the P&G 103 worksheet. For example: P&G 103 (on inventory sheet) is 26ft 4 1/2 inches, i should look-up to be 34572 gal. for the 26'4" and 55 gal. for the 1/2" These two numbers should be added together and multiplied by the numbe ...

Formatting detail section w/two lines
HELP, I'm trying to create the below in a report, but when I align the "title" field below the "name" field and the "background" field is more than one line, the "title" is no longer directly underneath the name. Is there anyway to accomplish this? Name Background Title Thanks for your expertise! Sincerely, Cynteeuh A couple of things to try. 1- Size Backgroundbigger than two lines and set Can Shrik to No. 2- Combine Name and Title into a single text box and set Can Grow to Yes. =[Name] & Chr(13) & C...

SMTP Security #2
Does any know what is the Best Practice for Securing SMTP is? and More importantly do you have the documentation to implement it? http://support.microsoft.com/default.aspx?scid=kb;en-us;193922 http://support.microsoft.com/default.aspx?scid=kb;en-us;324059 http://support.microsoft.com/default.aspx?scid=kb;en-us;319356 http://support.microsoft.com/default.aspx?scid=kb;en-us;836500 Austin Morgan wrote: > Does any know what is the Best Practice for Securing SMTP is? and More > importantly do you have the documentation to implement it? > > You could configure SMTP mail rel...

Date Problem #2
Hi All Please can someone advise me what to do, I have a date in a textbox where I am using the AddDate method to increment the day , but I am getting strange results. Is this because the US date? if so how do I change this to work for the UK date? Any help would be greatly appreciated regards Subs Hiya- i'm not sure what formula you're using- I put a random date in A1 and pasted the following formula in B1 & C1: =DATE(YEAR(A1),MONTH(A1),DAY(A1)+1) it increased the day by 1 in both cells. I then changed the format to UK and it worked just fine. Is this what you're l...

dwbb #2
kjbds --- Posted using Wimdows.net NntpNews Component - Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching. ...

Proper Case #2
I have a column on the worksheet which contains names. I need the name and initials always to be entered in Proper Case. Presently the names are entered by means of an input box. My problem is some names are entered in lowercase and some in uppercase. The name needs to look like this "Black B F". How do force this entry or let the macro (or VB code) convert this to the proper case. Any help would be appreciated Brian An Excel add-in called Excel Manager contains loads of neat utilities, one of which will do exactly what you want. Sorry but I can't remember the link to it ...

excel locks up after selecting a cell #2
excel locks up after selecting a cell. When ever, I select a Cell, that will automatically selects all the cell and this freezes the entire computer. Can any body who would help me resolve this issue? Please help.... ...

two sets of parameters..one query...but how?
I have a query to track when I must renew State Police Clearances AND Child Abuse Clearances. I want to use the "Between [date] and [date]" function on BOTH of the fields in order to bring up BOTH sets of dates for BOTH clearances.The problem I am running into is that when the query results come up, if one date doesn't meet the criteria NONE of the information comes up (even if the other date DOES).Any suggestions!??!?! Thanks in Advance....

RPC Over HTPPS on FE Server with OWA #2
Hi, I have a front end owa server configured as a OWA server using SSL (with a custom made certificate). Can I also utilise this server and the same certificate to make it run rpc over https as well? Thanks in advance. ...

2 seperated cluster of bars on 1 bar graph?
I would like to have the data for the moths of 2004 and then the same months for 2005 on the one bar graph BUT all 2004 together on say the left of the X-axis and then a space and the 2005 group clustered on the right of the x-axis. is that possible? Mike OK - I have got the seperation I needed by reworking the data so that the 2004 months are all together(before each 2004 month had its 2005 partner next to it) and then having a blank column followed by the months 2005 data. BUT how can I het the same colour for the month in 2004 and 2005 the same ?i.e november 2004 and 2005 say red ,...