+ Reply to Thread
Results 1 to 2 of 2

How to put COUNTIFS formula in Macro

  1. #1
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    How to put COUNTIFS formula in Macro

    Hello Guys,

    I need a help in putting a CountIFS formula into Macro.

    There are 2 sheets (“Data” and “Summary”) in the attached file. I am using a CountIFS formula in Column C of “Summary” sheet which check the dealer name present in Column A of same sheet and then count the no. of entries of same dealer name present in Column E of “Data” sheet with value as "Escalated to level 2" in column D.

    I want to insert this CountIFS formula into Macro which count the no. of used rows in column A and automatically insert the formula in column C against used rows of column A in "Summary" sheet.

    Or if this can be do directly through a Macro that will also solve my problem.

    Thanks,
    MG
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to put COUNTIFS formula in Macro

    Hi,

    This is one way

    Please Login or Register  to view this content.
    But have you considered a Pivot Table which is arguably preferable and certainly more flexible. See attached.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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] Need a macro instead of SUMIF & COUNTIFS formula
    By Keyvan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-30-2013, 01:26 PM
  2. Macro to add range & criteria in COUNTIFS Formula
    By wspettus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2011, 03:34 AM
  3. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  4. converting COUNTIFS formula to macro
    By batjl9 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-14-2011, 03:37 AM
  5. Countifs Macro
    By DanMurphy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-02-2010, 10:52 AM

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