Multiple conditions with an array formula

Mansfiep

New Member
Joined
May 6, 2002
Messages
3
In order to provide a summary of performance against about 3000 rows of data, I wish to sum the number of rows in a sheet where several conditions are met.The summary is provided on a separate sheet within the same workbook. This summary sheet also holds the priorities, the target response times and the target response percentages.
The conditions are:
Entry in column A (Priority) is 1 (or 2, 3 or 4)
Entry in column N (Target response time) is greater than a value held in cell B3 in
summary sheet,
Entry in column Q is less than a value held in cell C3 in the summary sheet.

I am trying without success to put together an array formula of the form:
=sum(if(and(condition1 on A1:A9999,condition2 on N1:N9999, condition3 on Q1:Q9999),1))

Can anyone help?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
On 2002-05-07 02:32, Mansfiep wrote:
In order to provide a summary of performance against about 3000 rows of data, I wish to sum the number of rows in a sheet where several conditions are met.The summary is provided on a separate sheet within the same workbook. This summary sheet also holds the priorities, the target response times and the target response percentages.
The conditions are:
Entry in column A (Priority) is 1 (or 2, 3 or 4)
Entry in column N (Target response time) is greater than a value held in cell B3 in
summary sheet,
Entry in column Q is less than a value held in cell C3 in the summary sheet.

I am trying without success to put together an array formula of the form:
=sum(if(and(condition1 on A1:A9999,condition2 on N1:N9999, condition3 on Q1:Q9999),1))

Can anyone help?

It looks like you want to do multiconditional counting. You didn't tell where the condition1 is, but try:

=SUMPRODUCT((A1:A9999=condition1)*(B1:B9999>B3)*(Q1:Q9999<C3))

normally entered.

Consider also using Pivot Tables to summarize your data.
This message was edited by Aladin Akyurek on 2002-05-07 07:24
 
Upvote 0
On 2002-05-07 03:03, Aladin Akyurek wrote:
On 2002-05-07 02:32, Mansfiep wrote:
In order to provide a summary of performance against about 3000 rows of data, I wish to sum the number of rows in a sheet where several conditions are met.The summary is provided on a separate sheet within the same workbook. This summary sheet also holds the priorities, the target response times and the target response percentages.
The conditions are:
Entry in column A (Priority) is 1 (or 2, 3 or 4)
Entry in column N (Target response time) is greater than a value held in cell B3 in
summary sheet,
Entry in column Q is less than a value held in cell C3 in the summary sheet.

I am trying without success to put together an array formula of the form:
=sum(if(and(condition1 on A1:A9999,condition2 on N1:N9999, condition3 on Q1:Q9999),1))

Can anyone help?

It looks like you want to do multiconditional counting. You didn't tell where the condition1 is, but try:

=SUMPRODUCT((A1:A9999=condition1)*(B1:B9999>B3)*(Q1:Q9999<C3))

normally entered.

Consider also using Pivot Tables to summarize your data.
Many thanks for your suggestions - they work exactly as required. I have not seen the multiconditioning counting before.
 
Upvote 0

Forum statistics

Threads
1,214,392
Messages
6,119,255
Members
448,879
Latest member
oksanana

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top