#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel data sum

I want to add up various responses to a questionnaire by using select rules.
For example if in A2 someone answered 1, I want that to count as 1 point, and
if someone answered 1, I want that to count as 2 points. Anything else would
be a zero. What sort of formula could I use to do that and then add up the
row at the end?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Excel data sum

Please clarify the requirement - you said "if in A2 someone answered 1, I
want that to count as 1 point and if someone answered 1 [again - probably
some other value?], I want that to count as 2 points."

But I think a couple of COUNTIF() statements would do, assume your responses
are in A2:A10
=COUNTIF(A2:A10,1)
will give you a count of 1s in the list, and since 1=1 point, no further
work needed.
Assuming that the second entry you want to count is 4 (to help clarify
things), then
=COUNTIF(A2:A10,4)*2
would give you 2 points for each entry of 4 in the list.

If you need total points, you can add them together as:
=COUNTIF(A2:A10,1) + (COUNTIF(A2:A10,4)*2)

IF you have a one-to-one relationship to entry and points, i.e.
1 = 1pt
2 = 2pts
3 = 3pts

Then you could use SUMIF() as
=SUMIF(A2:A10,1) ' would return 4 for four entries of 1
or
=SUMIF(A2:A10,2) ' would return 6 for 3 entries of 2



"Solais" wrote:

I want to add up various responses to a questionnaire by using select rules.
For example if in A2 someone answered 1, I want that to count as 1 point, and
if someone answered 1, I want that to count as 2 points. Anything else would
be a zero. What sort of formula could I use to do that and then add up the
row at the end?

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
sorting 2 colums of numbers and incremening them down blk&wht Excel Discussion (Misc queries) 10 October 9th 06 10:12 PM
Inputting data to one worksheet for it effect another daedalus1 Excel Discussion (Misc queries) 1 June 25th 06 04:39 PM
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


All times are GMT +1. The time now is 08:27 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"