LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
is there any logic HOWE you determine this range. A better way might be
using SUMPRODUCT with multiple crieria.

"Jurry" wrote:


I would like to use the COUNTIF function with a range which consists of
multiple areas (which are determined during runtime of a VBA script) as
in the following example:

testrange=A1:A3,A5:A6 <- Determined during runtime!
B1=COUNTIF (testrange,"5")

The above does not work. Does anyone have a workaround?

Thanks in advance,
Jurry.


--
Jurry
------------------------------------------------------------------------
Jurry's Profile: http://www.excelforum.com/member.php...fo&userid=8664
View this thread: http://www.excelforum.com/showthread...hreadid=278230


 
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
How to Link named ranges from multiple Workbooks into a single Wo. PMAP_HELP Excel Discussion (Misc queries) 1 December 14th 04 05:51 PM
"countif" from multiple worksheets within workbook Excel Discussion (Misc queries) 2 December 10th 04 06:59 PM
compare unique identifiers in multiple ranges bawilli_91125 Charts and Charting in Excel 1 November 30th 04 06:34 PM
countif() help for multiple rows ob3ron02 Excel Worksheet Functions 2 November 10th 04 06:18 PM
CountIF across multiple sheets in a workbook Al Excel Worksheet Functions 1 October 29th 04 01:15 PM


All times are GMT +1. The time now is 06:42 AM.

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"