+ Reply to Thread
Results 1 to 5 of 5

Countif problems

  1. #1
    Registered User
    Join Date
    10-20-2013
    Location
    Exeter, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Countif problems

    Hi fellow excel lovers!

    I am having some problems with VBA Countif. It doesnt seem to want to work. I have tried all manor of different solutions.

    I want the count to count values in a certain range within the sheet, but it only seems to work when the range is very small or the entire sheet. I have now tried to set the range but I still cannot get it working. Can anyone see what is wrong with it. The massage box displays correctly and multiplies the value by 12 as I want it to but the code does not want to use the cells I (think I) have told it too.

    Please Login or Register  to view this content.

    Thank you in advance

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Countif problems

    Hi,

    I'm surprised you don't error on that code as the worksheet function COUNTIF will not accept range unions.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Countif problems

    You must loop for this range:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  4. #4
    Registered User
    Join Date
    10-20-2013
    Location
    Exeter, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Countif problems

    Thank you for your help, it now works!

    Thanks Again.

  5. #5
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Countif problems

    You are welcome.

    Please remember to select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. COUNTIF Problems!!
    By Katym01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-19-2012, 02:51 AM
  2. Countif problems
    By harleyotis in forum Excel General
    Replies: 2
    Last Post: 02-01-2012, 10:12 AM
  3. countif problems
    By statenja in forum Excel General
    Replies: 3
    Last Post: 06-09-2011, 03:13 PM
  4. countif problems...
    By moshmoshon in forum Excel General
    Replies: 2
    Last Post: 07-28-2007, 02:01 AM
  5. Problems With =COUNTIF()
    By Kenshyou in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-25-2006, 10:50 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1