#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Sum(if not working

=SUM(IF(C2:C500="Bell",IF(F2:F500="Yes",1,0)))


I have a spreadsheet that housing a list of providers and a list survey
questions. Columns F2 - F500 can be every "Yes" to "No". I tried to pick
out all the "Yes" answers for this provider and keeps getting a "1".

What am I doing wrong?


--
Beverly C.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Sum(if not working

=SUMPRODUCT(--(C2:C500="Bell"),--(F2:F500="Yes"))

This will return the count of records for which C2:C500 = "Bell" AND F2:F500
= "Yes" which is what I think you're trying to do.

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"Beverly C" wrote:

=SUM(IF(C2:C500="Bell",IF(F2:F500="Yes",1,0)))


I have a spreadsheet that housing a list of providers and a list survey
questions. Columns F2 - F500 can be every "Yes" to "No". I tried to pick
out all the "Yes" answers for this provider and keeps getting a "1".

What am I doing wrong?


--
Beverly C.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Sum(if not working

Beverly,

The formula you have will work if you array enter it (enter using Ctrl-Shift-Enter).

For a regular (non-array-entered) formula, try

=SUMPRODUCT((C2:C500="Bell")*(F2:F500="Yes"))

HTH,
Bernie
MS Excel MVP


"Beverly C" wrote in message
...
=SUM(IF(C2:C500="Bell",IF(F2:F500="Yes",1,0)))


I have a spreadsheet that housing a list of providers and a list survey
questions. Columns F2 - F500 can be every "Yes" to "No". I tried to pick
out all the "Yes" answers for this provider and keeps getting a "1".

What am I doing wrong?


--
Beverly C.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Sum(if not working

thank you so much -- I will try this.
--
Beverly C.


"Dave F" wrote:

=SUMPRODUCT(--(C2:C500="Bell"),--(F2:F500="Yes"))

This will return the count of records for which C2:C500 = "Bell" AND F2:F500
= "Yes" which is what I think you're trying to do.

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"Beverly C" wrote:

=SUM(IF(C2:C500="Bell",IF(F2:F500="Yes",1,0)))


I have a spreadsheet that housing a list of providers and a list survey
questions. Columns F2 - F500 can be every "Yes" to "No". I tried to pick
out all the "Yes" answers for this provider and keeps getting a "1".

What am I doing wrong?


--
Beverly C.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Sum(if not working

Did you complete the formula with ENTER or CTRL+SHIFT+ENTER since it is an
array formula?
But why not use SUMPRODUCT ?
=SUMPRODUCT(--(C2:C500="Bell"),--(F2:F500="Yes"))
and use just ENTER to complete it
For more info see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Beverly C" wrote in message
...
=SUM(IF(C2:C500="Bell",IF(F2:F500="Yes",1,0)))


I have a spreadsheet that housing a list of providers and a list survey
questions. Columns F2 - F500 can be every "Yes" to "No". I tried to pick
out all the "Yes" answers for this provider and keeps getting a "1".

What am I doing wrong?


--
Beverly C.





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Sum(if not working

Entered as and array formula (CTRL + Shift + Enter) you are counting the
number of times Bell and Yes appear in the same row. Are you trying to do
something different?

"Beverly C" wrote:

=SUM(IF(C2:C500="Bell",IF(F2:F500="Yes",1,0)))


I have a spreadsheet that housing a list of providers and a list survey
questions. Columns F2 - F500 can be every "Yes" to "No". I tried to pick
out all the "Yes" answers for this provider and keeps getting a "1".

What am I doing wrong?


--
Beverly C.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
amount of working days per month Nigel Excel Discussion (Misc queries) 2 November 29th 05 10:41 AM
Calculation with Working day of the year Box666 Excel Discussion (Misc queries) 4 November 10th 05 06:33 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
Working time and days Nortos Excel Worksheet Functions 5 May 6th 05 04:17 PM
Working time and days Nortos Excel Discussion (Misc queries) 1 May 6th 05 03:47 PM


All times are GMT +1. The time now is 03:25 PM.

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"