ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do i set up a complicated IF formula (https://www.excelbanter.com/excel-discussion-misc-queries/243572-how-do-i-set-up-complicated-if-formula.html)

scott

how do i set up a complicated IF formula
 
I have a spreadsheet set up where column A has either Recall, Retail or VSR
in it, and column B has either Yes or No in it. I need to be able to count
how many Recalls have yes beside them.

Can anyone help?

Mike H

how do i set up a complicated IF formula
 
Hi,

=SUMPRODUCT((A1:A20="Recall")*(B1:B20="Yes"))

Mike

"Scott" wrote:

I have a spreadsheet set up where column A has either Recall, Retail or VSR
in it, and column B has either Yes or No in it. I need to be able to count
how many Recalls have yes beside them.

Can anyone help?


Pete_UK

how do i set up a complicated IF formula
 
Try this:

=SUMPRODUCT(--(A1:A100="Recall"),--(B1:B100="yes"))

Adjust the ranges to suit your data.

Hope this helps.

Pete

On Sep 24, 11:43*am, Scott wrote:
I have a spreadsheet set up where column A has either Recall, Retail or VSR
in it, and column B has either Yes or No in it. * I need to be able to count
how many Recalls have yes beside them.

Can anyone help?



Mike H

how do i set up a complicated IF formula
 
Hmm,

After have bought E2007 I should get used to the new functionality so if you
have e2007 try

=COUNTIFS(A1:A20,"Recall",B1:B20,"Yes")

Mike

"Mike H" wrote:

Hi,

=SUMPRODUCT((A1:A20="Recall")*(B1:B20="Yes"))

Mike

"Scott" wrote:

I have a spreadsheet set up where column A has either Recall, Retail or VSR
in it, and column B has either Yes or No in it. I need to be able to count
how many Recalls have yes beside them.

Can anyone help?


scott

how do i set up a complicated IF formula
 
Brilliant, thanks Mike

"Mike H" wrote:

Hmm,

After have bought E2007 I should get used to the new functionality so if you
have e2007 try

=COUNTIFS(A1:A20,"Recall",B1:B20,"Yes")

Mike

"Mike H" wrote:

Hi,

=SUMPRODUCT((A1:A20="Recall")*(B1:B20="Yes"))

Mike

"Scott" wrote:

I have a spreadsheet set up where column A has either Recall, Retail or VSR
in it, and column B has either Yes or No in it. I need to be able to count
how many Recalls have yes beside them.

Can anyone help?



All times are GMT +1. The time now is 01:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com