+ Reply to Thread
Results 1 to 15 of 15

Counting using a formula

  1. #1
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Counting using a formula

    I need to calculate these figures in the order described on the excel spreadsheet.
    However, true to my user name, I need help creating this formula.
    Any help will be greatly appreciated.
    Please check the Excel spreadsheet for the explanation of the problem.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: Counting using a formula

    I have no clue what goes in column F.
    Cell G4 would just be:
    =COUNTIF(C:C,C4)

  3. #3
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Counting using a formula

    Column F would show a count of the number of times the student topped his/her previous top score - stating with the first time the student scored a 50 or above. So for example, John did that 4 times and Mary did that 7 times. But thanks for the COUNTIF suggestion.

  4. #4
    Forum Contributor
    Join Date
    07-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: Counting using a formula

    Quote Originally Posted by Doofus1 View Post
    Column F would show a count of the number of times the student topped his/her previous top score - stating with the first time the student scored a 50 or above. So for example, John did that 4 times and Mary did that 7 times. But thanks for the COUNTIF suggestion.
    Is it going from bottom to top?

  5. #5
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Counting using a formula

    From the bottom to the top.

  6. #6
    Forum Contributor
    Join Date
    07-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: Counting using a formula

    Here you go. I used helper columns.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Counting using a formula

    You are a genius!!! Thank you!!!

  8. #8
    Forum Contributor
    Join Date
    07-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: Counting using a formula

    No problem. If a solution is provided, please mark the thread as solved.

  9. #9
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Counting using a formula

    SlipEternal,
    Question for you on what you solved for me.
    How can the formulas in columns, A, B and E be put together so that I can copy and paste the formula's in columns F and G (without also, having to copy the formula's in column A, B and E also)?
    Any suggestions?
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Counting using a formula

    Try this:

    Helper in Column C

    in C4

    =IF(B4<MAX(IF($A4:$A$100=A4,($B4:$B$100)*($B4:$B$100>=50))),0,MAX(IF($A4:$A$100=A4,($B4:$B$100)*($B4:$B$100>=50))))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.


    Then copy down
    Attached Files Attached Files

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Counting using a formula

    see the attached file
    use below formula in F4 and copy towards down
    Please Login or Register  to view this content.
    the formula is with Subtotal and Offset Function which is a volatile function, which is not suggestible.
    Use helper column as suggested by Jhon which is simple to understand and easy to modify
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  12. #12
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Counting using a formula

    Thanks again Mr Topley!!
    This looks cleaner.

  13. #13
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Counting using a formula

    Dear Samba,
    Thank you will test this formula out too.
    You guys are all a great bunch of teachers.
    Thank you

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Counting using a formula

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  15. #15
    Forum Contributor
    Join Date
    06-04-2014
    Location
    Nevada, USA
    MS-Off Ver
    2010, 2013
    Posts
    342

    Re: Counting using a formula

    Hi Samba or anyone else who feels like offering a suggestion,
    Do you know of how to write a formula that (1) identifies the individual student's highest score and then, (2) display it in the top-most cell, for each student, in column E- like in this example?

    I want to be able to copy and paste the formula down that column (without having to copy additional columns).
    Attached Files Attached Files
    Last edited by Doofus1; 03-08-2018 at 07:32 PM.

+ 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] formula - counting
    By Oncology in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-24-2017, 08:54 AM
  2. [SOLVED] In need of a particular counting formula
    By marcusduton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-13-2015, 12:54 PM
  3. [SOLVED] Counting formula
    By deano3141 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-16-2014, 08:33 AM
  4. [SOLVED] counting formula in VBA
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-21-2013, 11:50 AM
  5. Counting Formula
    By mlott1275 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-14-2013, 05:31 PM
  6. Replies: 6
    Last Post: 02-04-2012, 06:57 PM
  7. Counting formula
    By KINNEY0201 in forum Excel General
    Replies: 1
    Last Post: 10-05-2009, 08:56 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