+ Reply to Thread
Results 1 to 3 of 3

Filtering Macro Alternative - looking to count how many times X appears

  1. #1
    Registered User
    Join Date
    09-18-2014
    Location
    London, England
    MS-Off Ver
    365 ProPlus
    Posts
    20

    Filtering Macro Alternative - looking to count how many times X appears

    Okay,

    So I know the title didn't explain myself very well, so I'll try again...

    I'm looking for a formula that will count the number of cells marked as "complete" (which is noted in Col J) But only for students who are working on a either of a number of projects, lets say either "project 1", "project 2", or "project 3" (which is noted in Col E).

    Currently I'm filtering Col E to include only the above three projects, copy pasting the results of Col J, naming the range and then using an =countif on the new range to find the "complete".

    I want to move away from Macros and increase my knowledge of formulas, but i can't find one that works. If you can suggest one, and briefly explain the syntax that would be awesome!

    many thanks in advance even if you can't help!

    Si

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Filtering Macro Alternative - looking to count how many times X appears

    Have you tried it with COUNTIFS? This allows you to set up multiple criteria, the syntax being:

    COUNTIFS(range_1,criterion_1,range_2,criterion_2 ...)

    and so on, where you have pairs of parameters, the first of which is the range that the criterion applies to and the second is the criterion itself.

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Filtering Macro Alternative - looking to count how many times X appears

    ProjectSummary.xlsx

    Attached is a basic workbook. If you paste your entire data sheet on the data tab it should start reading it accordingly.


    Go to the Project_Summary tab and look at how the formula is structured.

    Lets breakdown C3

    Please Login or Register  to view this content.
    Here we see that we want to countifs, which means count if it meets multiple criterias.
    First we want to count the number of time J of the data tab has the same information found in C2, in this case currently says NEW (Made assumptions on how you label them)
    But we only count them if they also find a parallel value in E of the data tab that matches B3 (Project 1)

    Now of course you can update the list of projects you have and change the status codes you utilize in J. This is going to give you a breakdown of the projects with the associated status.

    That should be what you need and you should be able to build off of that!

    If so, don't forget to mark solved when done!
    -If you think you are done, Start over - ELeGault

+ 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] VBA/Macro to count number of times the same record appears in different sheets within WBK
    By Hackboss007 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-18-2014, 02:28 PM
  2. [SOLVED] Count the number of times an A appears 5 or more times consecutively
    By CCook310 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 10-02-2013, 04:02 PM
  3. Count occurances when value appears >=3 times
    By Karen311261 in forum Excel General
    Replies: 4
    Last Post: 07-17-2012, 09:30 PM
  4. DDE help need it with count how many times it appears
    By Kevinoldren in forum Excel General
    Replies: 2
    Last Post: 10-10-2011, 01:20 AM
  5. DDE help need it with count how many times it appears.
    By Kevinoldren in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-09-2011, 03:15 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