Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
klam
 
Posts: n/a
Default Conditional Summing (Sumif? Countif?)

I would like to count the occurances IF a certain condition is met.

Specifically, there are small, medium and large companies and I want to be
able to count the number of "Yes" responses to a question (say Q1), but only
for the Small companies, then only for the Medium, then only for the large.

Size Q1
Small Yes
Med Yes
Large No

I have tried different versions of Countif and IF but can't get it right.
Seems like it should be simple but it's got me stumped!

Using Excel 2000 on XP. Tia!

cheers,
klam
  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

One of:

(a) Construct a pivot table.

(b) Invoke a formula like:

=SUMPRODUCT(--(SizeRange=Size),--(QuestionRange="Yes"))

klam wrote:
I would like to count the occurances IF a certain condition is met.

Specifically, there are small, medium and large companies and I want to be
able to count the number of "Yes" responses to a question (say Q1), but only
for the Small companies, then only for the Medium, then only for the large.

Size Q1
Small Yes
Med Yes
Large No

I have tried different versions of Countif and IF but can't get it right.
Seems like it should be simple but it's got me stumped!

Using Excel 2000 on XP. Tia!

cheers,
klam


--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
  #3   Report Post  
klam
 
Posts: n/a
Default

Aladin,

Thx a mint! The formula worked like a charm...and greatly appreciated.
(This is part of a larger spreadsheet/project so I didn't use the Pivot
Table.)

I will read up on SUMPRODUCT for my knowledge.

cheers,
klam

"Aladin Akyurek" wrote:

One of:

(a) Construct a pivot table.

(b) Invoke a formula like:

=SUMPRODUCT(--(SizeRange=Size),--(QuestionRange="Yes"))

klam wrote:
I would like to count the occurances IF a certain condition is met.

Specifically, there are small, medium and large companies and I want to be
able to count the number of "Yes" responses to a question (say Q1), but only
for the Small companies, then only for the Medium, then only for the large.

Size Q1
Small Yes
Med Yes
Large No

I have tried different versions of Countif and IF but can't get it right.
Seems like it should be simple but it's got me stumped!

Using Excel 2000 on XP. Tia!

cheers,
klam


--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.

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
Forget SUMIF, COUNTIF and VLOOKUP Pierre Leclerc Excel Worksheet Functions 16 April 27th 23 11:51 AM
problems with sumif and countif Simon Shaw Excel Discussion (Misc queries) 6 July 23rd 05 10:02 PM
adding summed cells in a conditional sumif Tat Excel Worksheet Functions 5 June 12th 05 06:09 PM
Countif and Conditional Formatting Ramiro Espinoza Excel Worksheet Functions 1 February 2nd 05 05:21 PM
Conditional Format With SUMIF Minitman Excel Worksheet Functions 3 November 1st 04 02:58 PM


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