#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default Formula?

I have a spreadsheet with 2 questions with answers in columns b & c. What
formula do I enter to return how many people entered both of the correct
answers of c and a?
Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Formula?

One way

=SUMPRODUCT(--(B2:B100="c"),--(C2:C100="a"))



--
Regards,

Peo Sjoblom



"Kathy" wrote in message
...
I have a spreadsheet with 2 questions with answers in columns b & c. What
formula do I enter to return how many people entered both of the correct
answers of c and a?
Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default Formula?

Thank you peo. What do the --'s signify?

"Peo Sjoblom" wrote:

One way

=SUMPRODUCT(--(B2:B100="c"),--(C2:C100="a"))



--
Regards,

Peo Sjoblom



"Kathy" wrote in message
...
I have a spreadsheet with 2 questions with answers in columns b & c. What
formula do I enter to return how many people entered both of the correct
answers of c and a?
Thank you.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Formula?

they change the logical true false to numeric 1 0

"Kathy" wrote:

Thank you peo. What do the --'s signify?

"Peo Sjoblom" wrote:

One way

=SUMPRODUCT(--(B2:B100="c"),--(C2:C100="a"))



--
Regards,

Peo Sjoblom



"Kathy" wrote in message
...
I have a spreadsheet with 2 questions with answers in columns b & c. What
formula do I enter to return how many people entered both of the correct
answers of c and a?
Thank you.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default Formula?

Thank you.

"bj" wrote:

they change the logical true false to numeric 1 0

"Kathy" wrote:

Thank you peo. What do the --'s signify?

"Peo Sjoblom" wrote:

One way

=SUMPRODUCT(--(B2:B100="c"),--(C2:C100="a"))



--
Regards,

Peo Sjoblom



"Kathy" wrote in message
...
I have a spreadsheet with 2 questions with answers in columns b & c. What
formula do I enter to return how many people entered both of the correct
answers of c and a?
Thank you.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"