Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CP CP is offline
external usenet poster
 
Posts: 64
Default COUNTIF(range,=range_name)

I'm working on interest rate scenarios. I have a range defined by cells
($n$20:$n$2000) with a formulas that chooses the lower of the current
interest rate or a named range (a singe cell) of "IR". Now I want to find
out how many are still below IR. I've tried
countif($n$20:$n$2000,"<IR")
but it returns 0.

It DOES work if instead of IR I enter the actual new rate (say, "4%"), but
since IR can change with the scenario, that doesn't seem efficient.

I appreciate your time and help!

-- cp
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default COUNTIF(range,=range_name)

Hi,

the syntax is like this

=COUNTIF($N$20:$N$2000,"<"&IR)

Mike

"cp" wrote:

I'm working on interest rate scenarios. I have a range defined by cells
($n$20:$n$2000) with a formulas that chooses the lower of the current
interest rate or a named range (a singe cell) of "IR". Now I want to find
out how many are still below IR. I've tried
countif($n$20:$n$2000,"<IR")
but it returns 0.

It DOES work if instead of IR I enter the actual new rate (say, "4%"), but
since IR can change with the scenario, that doesn't seem efficient.

I appreciate your time and help!

-- cp

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default COUNTIF(range,=range_name)

Try it like this:

=COUNTIF($N$20:$N$2000,"<"&IR)

--
Biff
Microsoft Excel MVP


"cp" wrote in message
...
I'm working on interest rate scenarios. I have a range defined by cells
($n$20:$n$2000) with a formulas that chooses the lower of the current
interest rate or a named range (a singe cell) of "IR". Now I want to find
out how many are still below IR. I've tried
countif($n$20:$n$2000,"<IR")
but it returns 0.

It DOES work if instead of IR I enter the actual new rate (say, "4%"), but
since IR can change with the scenario, that doesn't seem efficient.

I appreciate your time and help!

-- cp



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CP CP is offline
external usenet poster
 
Posts: 64
Default COUNTIF(range,=range_name)

That works! Thanks so much!

"cp" wrote:

I'm working on interest rate scenarios. I have a range defined by cells
($n$20:$n$2000) with a formulas that chooses the lower of the current
interest rate or a named range (a singe cell) of "IR". Now I want to find
out how many are still below IR. I've tried
countif($n$20:$n$2000,"<IR")
but it returns 0.

It DOES work if instead of IR I enter the actual new rate (say, "4%"), but
since IR can change with the scenario, that doesn't seem efficient.

I appreciate your time and help!

-- cp

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default COUNTIF(range,=range_name)

You're welcome!

--
Biff
Microsoft Excel MVP


"cp" wrote in message
...
That works! Thanks so much!

"cp" wrote:

I'm working on interest rate scenarios. I have a range defined by cells
($n$20:$n$2000) with a formulas that chooses the lower of the current
interest rate or a named range (a singe cell) of "IR". Now I want to
find
out how many are still below IR. I've tried
countif($n$20:$n$2000,"<IR")
but it returns 0.

It DOES work if instead of IR I enter the actual new rate (say, "4%"),
but
since IR can change with the scenario, that doesn't seem efficient.

I appreciate your time and help!

-- cp



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
Countif on Range gtslabs Excel Worksheet Functions 5 November 28th 08 01:22 AM
COUNTIF with age range NitaMax Excel Worksheet Functions 1 October 2nd 07 08:10 PM
Countif with range name gabch Excel Worksheet Functions 1 May 16th 06 12:21 PM
countif and sum if over a range. Michael Excel Discussion (Misc queries) 2 November 3rd 05 05:30 PM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM


All times are GMT +1. The time now is 08:45 AM.

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"