+ Reply to Thread
Results 1 to 3 of 3

Macro to insert COUNTIF with a variable range

  1. #1
    Registered User
    Join Date
    08-10-2013
    Location
    Gold Coast Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macro to insert COUNTIF with a variable range

    Hi everyone, this is my first post and I hope I can get some help. I am trying to write a macro that inserts a COUNTIF function that has a variable range in a worksheet. The range starts at E4 on the sheet but has variable number of columns and a variable number of rows to count. I get #Name? error, or get 'Expected End of Statement / Expected Separator errors whenever I add double quotes and "&".

    Please Login or Register  to view this content.
    All help and suggestions are greatly appreciated.

    Jim
    Last edited by Jim.Kelly; 08-20-2013 at 04:14 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Macro to insert COUNTIF with a variable range

    Hi and welcome to the forum

    THis looks like a VBA question, so I will move it to that forum for better exposure
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-10-2013
    Location
    Gold Coast Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro to insert COUNTIF with a variable range

    Problem solved:

    Issue was with the line:
    Please Login or Register  to view this content.
    Thanks to all who gave it some thought.

    Regards

    Jim

+ 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. [SOLVED] COUNTIF Variable Range.
    By Hegel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-27-2013, 08:38 PM
  2. Macro to Insert defined integer into range defined by variable criteria
    By stereofeedback in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2013, 12:33 PM
  3. Countif and Variable Date Range
    By neilfleming in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-26-2012, 11:48 AM
  4. [SOLVED] Excel 2007 : Variable Range in Countif
    By themaster25 in forum Excel General
    Replies: 6
    Last Post: 04-09-2012, 06:30 AM
  5. variable range in a COUNTIF statment
    By Sabean in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2006, 08:10 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