A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

excel sum values if cell matches a value



 
 
Thread Tools Display Modes
  #1  
Old March 16th, 2010, 03:49 AM posted to microsoft.public.excel.worksheet.functions
Dennis
external usenet poster
 
Posts: 1,222
Default excel sum values if cell matches a value

I am trying to analyze a survey. Results are like:

A B C D E F G H I J K
Q1 ? 1 1 1 1
Q2 ?
Q3 ? 1
Q4 ?
Q5 ? 1 1 1 1
Q6 ? 1 1 1 1
Q7 ? 1 1 1 1 1

I have about 30 questions and 200 responses (going up to column FR). The
one represents they checked that box.

In column B I want to add up all the responses of that row is they selected
Q6. So in my example Question 1 B should equal 1 because I only would select
the G response.

And then for question 5, I want to sum up the people who selected Question
6, which would give me a total of of 2. Max sense?

Any ideas on how to do this? SUM(IF isn't working.
  #2  
Old March 16th, 2010, 04:43 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default excel sum values if cell matches a value

Try the below formula in cell B1 and copy down as required...

=SUMPRODUCT((C1:FR1=1)*($C$6:$FR$6=1))

--
Jacob


"Dennis" wrote:

I am trying to analyze a survey. Results are like:

A B C D E F G H I J K
Q1 ? 1 1 1 1
Q2 ?
Q3 ? 1
Q4 ?
Q5 ? 1 1 1 1
Q6 ? 1 1 1 1
Q7 ? 1 1 1 1 1

I have about 30 questions and 200 responses (going up to column FR). The
one represents they checked that box.

In column B I want to add up all the responses of that row is they selected
Q6. So in my example Question 1 B should equal 1 because I only would select
the G response.

And then for question 5, I want to sum up the people who selected Question
6, which would give me a total of of 2. Max sense?

Any ideas on how to do this? SUM(IF isn't working.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:48 PM.


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