Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Formula to get values between 8 and 15

I am trying to get a formula that will look in column c8:c250 and will only
give me the number of occurances between two numbers. I have used the
=COUNTIF(C8:C250,"<8") to determine the number of quotes in days of the month
1-7. I have used =COUNTIF(C8:C250,"21") to determine the number of quotes in
days of the month 22 -31. I can't seem to figure out how to get the value for
days 8 thru 14, and days 15-21.

Quotes By Week Number

Days 1 - 7 17

Days 8 - 14

Days 15 - 21

Days 22 - 31 47

Thank you for your help
Sam

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 860
Default Formula to get values between 8 and 15

Hi Sam,

Maybe,

=COUNT(C8:C250)-COUNTIF(C8:C250,"<8")-COUNTIF(C8:C250,"14")

HTH
Martin


"Sam510" wrote in message
...
I am trying to get a formula that will look in column c8:c250 and will only
give me the number of occurances between two numbers. I have used the
=COUNTIF(C8:C250,"<8") to determine the number of quotes in days of the
month
1-7. I have used =COUNTIF(C8:C250,"21") to determine the number of quotes
in
days of the month 22 -31. I can't seem to figure out how to get the value
for
days 8 thru 14, and days 15-21.

Quotes By Week Number

Days 1 - 7 17

Days 8 - 14

Days 15 - 21

Days 22 - 31 47

Thank you for your help
Sam



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Formula to get values between 8 and 15

Try on these formula will do the trick

=COUNTIF(MyRange,{"=8"})-COUNTIF(MyRange,{"14"})
or
=SUM(COUNTIF(MyRange,{"=8","14"})*{1,-1})
or
=SUMPRODUCT(--(MyRange=8),--(MyRange<=14))


"Sam510" wrote:

I am trying to get a formula that will look in column c8:c250 and will only
give me the number of occurances between two numbers. I have used the
=COUNTIF(C8:C250,"<8") to determine the number of quotes in days of the month
1-7. I have used =COUNTIF(C8:C250,"21") to determine the number of quotes in
days of the month 22 -31. I can't seem to figure out how to get the value for
days 8 thru 14, and days 15-21.

Quotes By Week Number

Days 1 - 7 17

Days 8 - 14

Days 15 - 21

Days 22 - 31 47

Thank you for your help
Sam

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Formula to get values between 8 and 15

Thank you all for the replies. Got it working.

Sam


"MartinW" wrote:

Hi Sam,

Maybe,

=COUNT(C8:C250)-COUNTIF(C8:C250,"<8")-COUNTIF(C8:C250,"14")

HTH
Martin


"Sam510" wrote in message
...
I am trying to get a formula that will look in column c8:c250 and will only
give me the number of occurances between two numbers. I have used the
=COUNTIF(C8:C250,"<8") to determine the number of quotes in days of the
month
1-7. I have used =COUNTIF(C8:C250,"21") to determine the number of quotes
in
days of the month 22 -31. I can't seem to figure out how to get the value
for
days 8 thru 14, and days 15-21.

Quotes By Week Number

Days 1 - 7 17

Days 8 - 14

Days 15 - 21

Days 22 - 31 47

Thank you for your help
Sam




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
Build excel formula using field values as text in the formula val kilbane Excel Worksheet Functions 2 April 18th 07 01:52 PM
Zero values in formula Maggie Excel Discussion (Misc queries) 8 November 8th 05 06:51 PM
copy values generated by conditional formula in one sheet to the other work sheet as values ramana Excel Worksheet Functions 1 October 5th 05 01:04 PM
copy values generated by conditional formula in one sheet to the other work sheet as values bobby Excel Discussion (Misc queries) 1 October 5th 05 12:18 PM
Using formula values Kay Excel Discussion (Misc queries) 1 August 8th 05 03:05 PM


All times are GMT +1. The time now is 05:55 PM.

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

About Us

"It's about Microsoft Excel"