Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default count variable in range

What is the best way to count the number of times a variable is in a range of
cells?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default count variable in range

Something like this...

Application.WorksheetFunction.CountIf(range("A1:A1 00", MyVar)
--
HTH...

Jim Thomlinson


"ranswert" wrote:

What is the best way to count the number of times a variable is in a range of
cells?
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default count variable in range

Thank You

"Jim Thomlinson" wrote:

Something like this...

Application.WorksheetFunction.CountIf(range("A1:A1 00", MyVar)
--
HTH...

Jim Thomlinson


"ranswert" wrote:

What is the best way to count the number of times a variable is in a range of
cells?
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
Multiple Criteria, Count If, Sum Product to get count across range Jonathan Excel Worksheet Functions 5 January 9th 08 11:32 PM
Count in a variable range Ron@Buy Excel Worksheet Functions 4 September 27th 07 08:24 AM
count number of rows (variable range) Acid-Sky Excel Programming 3 August 23rd 05 10:06 AM
setting a range variable equal to the value of a string variable Pilgrim Excel Programming 2 July 1st 04 11:32 PM
Problem trying to us a range variable as an array variable TBA[_2_] Excel Programming 4 September 27th 03 02:56 PM


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