#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default COUNTIF FUNCTION

What would the sytax be to do a countif() function with a dynamic range? For
instance: =CountIf($H$3:$J$(value of cell A3),"=1")
Thank You very much
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default COUNTIF FUNCTION

You can use the INDIRECT function for this:

=COUNTIF(INDIRECT("H3:J"&$A$3),"=1")

Note that cell references placed in quotes "" within the INDIRECT function
will not increment when the formula is copied, thus no need for absolute
referencing ($). But, since the A3 reference is outside of the quotes, it
will increment if the $ symbols are not present.

HTH,
Elkar


"falcon491" wrote:

What would the sytax be to do a countif() function with a dynamic range? For
instance: =CountIf($H$3:$J$(value of cell A3),"=1")
Thank You very much

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default COUNTIF FUNCTION

Thank You Very Much! Worked Great!!

"Elkar" wrote:

You can use the INDIRECT function for this:

=COUNTIF(INDIRECT("H3:J"&$A$3),"=1")

Note that cell references placed in quotes "" within the INDIRECT function
will not increment when the formula is copied, thus no need for absolute
referencing ($). But, since the A3 reference is outside of the quotes, it
will increment if the $ symbols are not present.

HTH,
Elkar


"falcon491" wrote:

What would the sytax be to do a countif() function with a dynamic range? For
instance: =CountIf($H$3:$J$(value of cell A3),"=1")
Thank You very much

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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
CountIf Function Question Josh in Indy Excel Discussion (Misc queries) 4 April 6th 06 08:28 PM
CountIF Function On Linked Spreadsheet Josh in Indy Excel Discussion (Misc queries) 0 April 5th 06 05:09 PM
can you use countif function for noncontiguous cells rutledbr Excel Worksheet Functions 2 November 13th 05 09:15 PM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM


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