Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dale
 
Posts: n/a
Default count a number that is less than a number and greater than a numbe

How do i do this? I want to count numbers is a range of cells that is greater
than 19 and less than 29.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default count a number that is less than a number and greater than a numbe

Will something like this work for you?

=COUNTIF(A1:A100,"<29") -COUNTIF(A1:A100,"<=19")

€¢€¢€¢€¢€¢€¢€¢€¢€¢€¢
Regards,
Ron


"Dale" wrote:

How do i do this? I want to count numbers is a range of cells that is greater
than 19 and less than 29.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bernard liengme
 
Posts: n/a
Default count a number that is less than a number and greater than a numbe

Assuming you really mean COUNT and not ADD;
a) =COUNTIF(A1:A100,"19") - COUNTIF(A1:A100,"29")
b) =SUMPRODUCT(--(A1:A10019), --(A1:A100<29))

but if you do want to sum:
a) =SUMIF(A1:A100,"19") - SUMIF(A1:A100,"29")
b) =SUMPRODUCT(--(A1:A10019), --(A1:A100<29), A1:A100)

best wishes
Bernard


"Dale" wrote in message
...
How do i do this? I want to count numbers is a range of cells that is
greater
than 19 and less than 29.

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default count a number that is less than a number and greater than a numbe

From the spec, that should be =29.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"bernard liengme" wrote in message
...
Assuming you really mean COUNT and not ADD;
a) =COUNTIF(A1:A100,"19") - COUNTIF(A1:A100,"29")
b) =SUMPRODUCT(--(A1:A10019), --(A1:A100<29))

but if you do want to sum:
a) =SUMIF(A1:A100,"19") - SUMIF(A1:A100,"29")
b) =SUMPRODUCT(--(A1:A10019), --(A1:A100<29), A1:A100)

best wishes
Bernard


"Dale" wrote in message
...
How do i do this? I want to count numbers is a range of cells that is
greater
than 19 and less than 29.

Thanks





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
I want the greater number of 2 cells to show in a separate cell cfiser Excel Discussion (Misc queries) 2 November 16th 05 10:32 PM
I want the greater number of 2 cells to show in a separate cel cfiser Excel Discussion (Misc queries) 0 November 16th 05 10:03 PM
I want the greater number of 2 cells to show in a separate cell Ron Coderre Excel Discussion (Misc queries) 1 November 16th 05 09:22 PM
Need to Count number of occurrences and get percentage of total JennLee Excel Worksheet Functions 3 June 21st 05 09:56 PM
Count number to reach a cumulative value Bruce Excel Worksheet Functions 5 January 25th 05 05:14 PM


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