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

Hi,

I am trying to sort a massive excel sheet (information from surveys) when I
try to put in a formula to count how many people "agree, disagree, strongly
agree, stronly disagree" it double adds for the agree and disagree, etc.

I tried using the formula =SUMIF(A2:A350, "Agree") and also formula
=COUNTIF(A2:A350, "*agree*") but like I said, get the numbers doubled when I
put formula =COUNTIF(A2:A350, "*strongly disagree*"). Tells me the agree has
1345 and the stronly agree has 130 and the disagree has 27 and the stronly
disagree has - can't be when there is only 350 surveys. (Only adding one
column)

I tried using the "=" but gives me an error. PLEASE HELP!

Thank You

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Formula Help

If you create a list of options in B2:B5

agree
disagree
strongly agree
strongly disagree

then this formula in C2 (filled down to C5) returns the No of matching
replies in A2:A350

=COUNTIF($A$2:$A$350,B2)

Regards,
Stefi


€žDarc€ť ezt Ă*rta:

Hi,

I am trying to sort a massive excel sheet (information from surveys) when I
try to put in a formula to count how many people "agree, disagree, strongly
agree, stronly disagree" it double adds for the agree and disagree, etc.

I tried using the formula =SUMIF(A2:A350, "Agree") and also formula
=COUNTIF(A2:A350, "*agree*") but like I said, get the numbers doubled when I
put formula =COUNTIF(A2:A350, "*strongly disagree*"). Tells me the agree has
1345 and the stronly agree has 130 and the disagree has 27 and the stronly
disagree has - can't be when there is only 350 surveys. (Only adding one
column)

I tried using the "=" but gives me an error. PLEASE HELP!

Thank You

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Formula Help

COUNTIF(A2:A350, "agree")

COUNTIF(A2:A350, "disagree")

and so on...


"Darc" wrote:

Hi,

I am trying to sort a massive excel sheet (information from surveys) when I
try to put in a formula to count how many people "agree, disagree, strongly
agree, stronly disagree" it double adds for the agree and disagree, etc.

I tried using the formula =SUMIF(A2:A350, "Agree") and also formula
=COUNTIF(A2:A350, "*agree*") but like I said, get the numbers doubled when I
put formula =COUNTIF(A2:A350, "*strongly disagree*"). Tells me the agree has
1345 and the stronly agree has 130 and the disagree has 27 and the stronly
disagree has - can't be when there is only 350 surveys. (Only adding one
column)

I tried using the "=" but gives me an error. PLEASE HELP!

Thank You

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

That does not work - it will combine the disagree and strongly disagree in
the same column ... for example: if I have 30 disagree and 45 strongly
disagree and put this formula in the column where I want to only add disagree
=COUNTIF(A2:A350, "disagree") I will get the combined total of 75 instead of
only 30. There needs to be more to the formula to only pull what I want

Another example - I have 150 females and 100 males ... if I put
=COUNTIF(A2:A250, "males") or =COUNTIF(A2:A250, "males*")... it will say
there is 250 males when actaully I only have 100. Vise versa for females.

Tried SUMIF and SUM and everything - nothing works - gives errormessage

Looking for a more detailed formula.
------------------------------------------------------------------------------------------------

"Teethless mama" wrote:

COUNTIF(A2:A350, "agree")

COUNTIF(A2:A350, "disagree")

and so on...

------------------------------------------------------------------------------------------------
"Darc" wrote:

Hi,

I am trying to sort a massive excel sheet (information from surveys) when I
try to put in a formula to count how many people "agree, disagree, strongly
agree, stronly disagree" it double adds for the agree and disagree, etc.

I tried using the formula =SUMIF(A2:A350, "Agree") and also formula
=COUNTIF(A2:A350, "*agree*") but like I said, get the numbers doubled when I
put formula =COUNTIF(A2:A350, "*strongly disagree*"). Tells me the agree has
1345 and the stronly agree has 130 and the disagree has 27 and the stronly
disagree has - can't be when there is only 350 surveys. (Only adding one
column)

I tried using the "=" but gives me an error. PLEASE HELP!

Thank You

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

Your a life saver (don't have to individually count 350 entries) - it worked
:)



"Stefi" wrote:

If you create a list of options in B2:B5

agree
disagree
strongly agree
strongly disagree

then this formula in C2 (filled down to C5) returns the No of matching
replies in A2:A350

=COUNTIF($A$2:$A$350,B2)

Regards,
Stefi


€žDarc€ť ezt Ă*rta:

Hi,

I am trying to sort a massive excel sheet (information from surveys) when I
try to put in a formula to count how many people "agree, disagree, strongly
agree, stronly disagree" it double adds for the agree and disagree, etc.

I tried using the formula =SUMIF(A2:A350, "Agree") and also formula
=COUNTIF(A2:A350, "*agree*") but like I said, get the numbers doubled when I
put formula =COUNTIF(A2:A350, "*strongly disagree*"). Tells me the agree has
1345 and the stronly agree has 130 and the disagree has 27 and the stronly
disagree has - can't be when there is only 350 surveys. (Only adding one
column)

I tried using the "=" but gives me an error. PLEASE HELP!

Thank You



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Formula Help

You are welcome! Thanks for the feedback!
Stefi


€žDarc€ť ezt Ă*rta:

Your a life saver (don't have to individually count 350 entries) - it worked
:)



"Stefi" wrote:

If you create a list of options in B2:B5

agree
disagree
strongly agree
strongly disagree

then this formula in C2 (filled down to C5) returns the No of matching
replies in A2:A350

=COUNTIF($A$2:$A$350,B2)

Regards,
Stefi


€žDarc€ť ezt Ă*rta:

Hi,

I am trying to sort a massive excel sheet (information from surveys) when I
try to put in a formula to count how many people "agree, disagree, strongly
agree, stronly disagree" it double adds for the agree and disagree, etc.

I tried using the formula =SUMIF(A2:A350, "Agree") and also formula
=COUNTIF(A2:A350, "*agree*") but like I said, get the numbers doubled when I
put formula =COUNTIF(A2:A350, "*strongly disagree*"). Tells me the agree has
1345 and the stronly agree has 130 and the disagree has 27 and the stronly
disagree has - can't be when there is only 350 surveys. (Only adding one
column)

I tried using the "=" but gives me an error. PLEASE HELP!

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 02:15 PM.

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

About Us

"It's about Microsoft Excel"