+ Reply to Thread
Results 1 to 6 of 6

Find and Count?

  1. #1
    Registered User
    Join Date
    04-07-2017
    Location
    Exeter, England
    MS-Off Ver
    365
    Posts
    12

    Find and Count?

    excel_example.png

    So, I have a question: I have a document in which various essays marked are assigned to a 'Mark Band' (e.g. 40-50%, 50-60%, etc.). I would like Excel to look through the 'Mark Band' column, and whenever it finds what I am looking for, increment a counter by +1.

    For example, in this picture, there are Mark Bands ranging from 1 to 5. What I would like to do is create 5 separate fields, one for telling me how many '1's were found, one for the '2's, and so forth.

    I thought it would be as simple as telling Excel through the IF command to add 1 (+1) (ie =IF(D5:D18=1,1,0) where whenever '1' is found, Excel adds 1 to the counter, otherwise does nothing).

    Can someone help me fix this formula? I am aware of basic formulas and commands, but for the most part I have never had to do something involving more complex logic.
    Last edited by grcd; 04-07-2017 at 12:51 PM. Reason: Typo fix

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Find and Count?

    If your mark bands are in column B

    =COUNTIF(B:B, 1) returns a count of all 1's. Is that what you are looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Find and Count?

    sounds like you want a countif formula, something like =COUNTIF(B:B,"1") if they show up as text or =COUNTIF(B:B,1) if they are numbers. or =COUNTIF(B:B,D1) if you put the reference like 1 or 2 etc in cell D1.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    04-07-2017
    Location
    Exeter, England
    MS-Off Ver
    365
    Posts
    12

    Re: Find and Count?

    Yes, both of you helped me a lot here! I was confused because I was trying to make this work with the IF function, and I did not know exactly how to use COUNTIF. Many thanks!

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Find and Count?

    Glad we could help. If that takes care of your issue don't forget to mark the post as solved using the thread tools dropdown at the top of the post.

    Oh, and thanks for the rep!

  6. #6
    Registered User
    Join Date
    04-07-2017
    Location
    Exeter, England
    MS-Off Ver
    365
    Posts
    12

    Re: Find and Count?

    No worries! Thank you for being such lifesavers! I would have spend hours trying to figure out a solution using IF

+ 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. Find match and count
    By Tivert15 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-16-2015, 07:15 PM
  2. Find and count the patterns
    By malladiram in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 10-08-2015, 06:11 PM
  3. Spreadsheet find & count
    By DSB_1958_GEOMAN9 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-06-2015, 10:56 AM
  4. [SOLVED] Last Column count based on find.row count
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-23-2014, 11:01 PM
  5. FIND subtext and SUM corresponding count
    By zarlengp in forum Excel General
    Replies: 5
    Last Post: 09-21-2010, 02:56 PM
  6. Find and count occurrances
    By jmoss in forum Excel General
    Replies: 2
    Last Post: 08-04-2006, 05:50 AM
  7. How do i count numbers and letters to find a total count of all
    By Linda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2005, 12:55 PM

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