ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   What function(s) to use? (https://www.excelbanter.com/excel-worksheet-functions/34759-what-function-s-use.html)

Barguast

What function(s) to use?
 
Sorry about the vague title but I've really got no idea how to describe this.
Instead I'll try to explain my problem by example.

http://img284.imageshack.us/img284/9...elquery2jk.png

If you take a look at the above picture, you'll see that there are two rows
of data. What I want to do is have Excel work out how many 'A' items have
'Yes' next to them (and similarity, how many B's do)

Can someone tell me what the formula for that would be?

Thanks in Advance

Roger Govier

Try
=SUMPRODUCT(--(A1:A10="A"),--(B1:B10="YES"))

--
Regards
Roger Govier
"Barguast" wrote in message
...
Sorry about the vague title but I've really got no idea how to describe
this.
Instead I'll try to explain my problem by example.

http://img284.imageshack.us/img284/9...elquery2jk.png

If you take a look at the above picture, you'll see that there are two
rows
of data. What I want to do is have Excel work out how many 'A' items have
'Yes' next to them (and similarity, how many B's do)

Can someone tell me what the formula for that would be?

Thanks in Advance




JE McGimpsey

One way:

=SUMPRODUCT(--(A1:A10="A"),--(B1:B10="Yes"))

In article ,
"Barguast" wrote:

Sorry about the vague title but I've really got no idea how to describe this.
Instead I'll try to explain my problem by example.

http://img284.imageshack.us/img284/9...elquery2jk.png

If you take a look at the above picture, you'll see that there are two rows
of data. What I want to do is have Excel work out how many 'A' items have
'Yes' next to them (and similarity, how many B's do)

Can someone tell me what the formula for that would be?

Thanks in Advance


Bob Phillips


"Roger Govier" wrote in message
...
Try
=SUMPRODUCT(--(A1:A10="A"),--(B1:B10="YES"))


:-)



Barguast

I have no idea how that works... but it does! Thanks :)

"Roger Govier" wrote:

Try
=SUMPRODUCT(--(A1:A10="A"),--(B1:B10="YES"))

--
Regards
Roger Govier



All times are GMT +1. The time now is 11:23 PM.

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