Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default countif - I want to enter 2 parameters - how?

I have a spreadsheet where I want a total if the # is 9 and <20. How do I
write this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default countif - I want to enter 2 parameters - how?

Hi,

This will give SUM of value 9 and < 20. Replacing SUMIF with COUNTIF will
give count of entries 9 and < 20

=SUMIF($A$1:$A$50,"9")-SUMIF($A$1:$A$50,"=20")

hth

"NancyP192" wrote:

I have a spreadsheet where I want a total if the # is 9 and <20. How do I
write this?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default countif - I want to enter 2 parameters - how?

You can use sumproduct something like this

=SUMPRODUCT((A2:A509)*(A2:A50<20))

Here is a link to everything you ever wanted to know about sumproduct. It is
a very useful function...

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
HTH...

Jim Thomlinson


"NancyP192" wrote:

I have a spreadsheet where I want a total if the # is 9 and <20. How do I
write this?

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
Macro to select cells in column enter data then press enter NP New Users to Excel 1 February 20th 08 04:21 PM
Enter multiple numbers in a cell so total shows when enter keypres newbie Excel Worksheet Functions 2 August 19th 07 12:23 PM
Enter info in one sheet, auto enter in another based on one field The BusyHighLighter[_2_] New Users to Excel 1 August 1st 07 10:54 PM
What does hitting Ctrl + Shift + Enter to enter a formula do??? Help a n00b out. qwopzxnm Excel Worksheet Functions 2 October 20th 05 09:06 PM
Visual Studio Tools for Office - CountIf, Ctrl-Shift-Enter, Array Bob Sullentrup Excel Programming 6 September 29th 05 01:19 AM


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