+ Reply to Thread
Results 1 to 20 of 20

which formula should i use to Calculate How many members?

  1. #1
    Registered User
    Join Date
    09-03-2016
    Location
    India
    MS-Off Ver
    2007
    Posts
    2

    which formula should i use to Calculate How many members?

    Hi
    I'm newbie in excel.I have a problem to ask..Hope someone can help me.

    My Data is
    Budgeted amount Spent amount
    My 1517 1836
    Mom 1839 1417
    Dad 1195 1931
    Brother 1718 1822
    Sister 1384 1939
    Aunt 1860 1305
    Uncle 1666 1315

    I know how to calculate how many members are in the list but i'm getting problem to calculate how many members have exceeded the budget.here, we can see that "MY","Dad","Brother" and "Sister" have clearly exceeded the budget but how can i do in excel, i mean which formula i should i use.
    please help me to solve this problem.Thanks in advance to anyone who will take the time to help me..
    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: which formula should i use to Calculate How many members?

    Hello and welcome to the forum.

    One way is with an array formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    enter this with Ctrl-Shift-Enter
    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.

  3. #3
    Banned User!
    Join Date
    10-29-2012
    Location
    Europe
    MS-Off Ver
    2013, 2016
    Posts
    318

    Re: which formula should i use to Calculate How many members?

    It look like a homework...
    In D3 put this formula:

    =IF(C3>B3,"exced","under_budget") then drag down.

  4. #4
    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: which formula should i use to Calculate How many members?

    Quote Originally Posted by Indi_Ra View Post
    It look like a homework...
    In D3 put this formula:

    =IF(C3>B3,"exced","under_budget") then drag down.
    Hi,

    The OP wanted to COUNT the total number of records where actual exceeded budget.

  5. #5
    Banned User!
    Join Date
    10-29-2012
    Location
    Europe
    MS-Off Ver
    2013, 2016
    Posts
    318

    Re: which formula should i use to Calculate How many members?

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    The OP wanted to COUNT the total number of records where actual exceeded budget.
    You are right. I did not read carefully...

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: which formula should i use to Calculate How many members?

    another way, using a normal formula:

    =SUMPRODUCT(--($C$3:$C$9>$B$3:$B$9))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    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: which formula should i use to Calculate How many members?

    ....and another, which I must admit I didn't expect to work given the function help only mentions "criteria1 Required. The criteria in the form of a number, expression, cell reference, or text"

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: which formula should i use to Calculate How many members?

    Quote Originally Posted by Richard Buttrey View Post
    ....and another, which I must admit I didn't expect to work given the function help only mentions "criteria1 Required. The criteria in the form of a number, expression, cell reference, or text"

    =COUNTIF(C3:C9,">"&B3:B9)
    If you get a correct result it's just a coincidence.

    The result you get depends on where you enter the formula.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    Registered User
    Join Date
    09-03-2016
    Location
    India
    MS-Off Ver
    2007
    Posts
    2

    Re: which formula should i use to Calculate How many members?

    yes..it works..Thank you very much sir..thank you very much..

  10. #10
    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: which formula should i use to Calculate How many members?

    Quote Originally Posted by Tony Valko View Post
    If you get a correct result it's just a coincidence.

    The result you get depends on where you enter the formula.
    Hi Tony,

    Funnily enough I'd been thinking about that.

    It's not so much where the formula is entered but the fact that it's the B3 cell only in the B3:B9 criteria range that is used as the criteria - which is sort of what I expected and was suprised when it came up with the 'correct' (but co-incidental) result.

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: which formula should i use to Calculate How many members?

    Quote Originally Posted by Richard Buttrey View Post
    It's not so much where the formula is entered....
    It has everything to do with where the formula is entered.

    Data Range
    B
    C
    D
    E
    1
    2
    Formula Result
    Evaluating As
    3
    66
    36
    3
    =COUNTIF(C$3:C$9,">"&B3)
    4
    85
    38
    1
    =COUNTIF(C$3:C$9,">"&B4)
    5
    39
    68
    4
    =COUNTIF(C$3:C$9,">"&B5)
    6
    14
    59
    7
    =COUNTIF(C$3:C$9,">"&B6)
    7
    45
    82
    4
    =COUNTIF(C$3:C$9,">"&B7)
    8
    87
    93
    1
    =COUNTIF(C$3:C$9,">"&B8)
    9
    83
    20
    1
    =COUNTIF(C$3:C$9,">"&B9)
    10
    11
    0
    =COUNTIF(C$3:C$9,">"&B$3:B$9)
    12
    ------
    ------
    3
    =COUNTIF(C$3:C$9,">"&B3)
    13


    Formula entered in D3 and copied down to D9.

    When the formula is entered in D11 it's no longer within an implicit intersection with the data so the result is 0 as expected.

    When the formula is entered in D12 as an array formula it returns the count evaluating only the first criteria, >B3.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: which formula should i use to Calculate How many members?

    So... the OP should use EITHER the array at Post 2 OR the non-array at Post 6. Or are they only coincidentally correct, too!!????

  13. #13
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: which formula should i use to Calculate How many members?

    Either of those should be just fine.

    Whichever floats your boat!

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: which formula should i use to Calculate How many members?

    The "coincidentally correct" answers that Excel can throw up are a bit of a pain. I just wanted the OP to be aware that not all that glistens is gold...

  15. #15
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: which formula should i use to Calculate How many members?

    Or this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  16. #16
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: which formula should i use to Calculate How many members?

    Quote Originally Posted by Glenn Kennedy View Post
    The "coincidentally correct" answers that Excel can throw up are a bit of a pain.
    That's the reason why I have a "thing" about this inaccurate statement:

    ..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.
    It's possible to get a "coincidentally correct" answer depending on where you enter an array formula that is not CSE'd.

  17. #17
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: which formula should i use to Calculate How many members?

    .. and in agreement with you, I amended my canned reply:
    Array Formulae are a little different from ordinary formulas in that they MUST be 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 the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...

  18. #18
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: which formula should i use to Calculate How many members?

    I think when anything is possible with normal formula, then the best choice must be avoiding array. This problem can be easily solved with this normal formula :
    Please Login or Register  to view this content.

  19. #19
    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: which formula should i use to Calculate How many members?

    Quote Originally Posted by Tony Valko View Post
    It has everything to do with where the formula is entered.
    ..but the stuff you show is not what I was referring to. I was simply saying that the array formula I posed self evidently gives the same answer whichever cell it happens to be entered in.

  20. #20
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: which formula should i use to Calculate How many members?

    Hmmm...

    Quote Originally Posted by Richard Buttrey View Post
    ....and another, which I must admit I didn't expect to work given the function help only mentions "criteria1 Required. The criteria in the form of a number, expression, cell reference, or text"


    =COUNTIF(C3:C9,">"&B3:B9)

+ 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. Hello to every Members
    By vrs_20 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-18-2015, 07:01 AM
  2. [SOLVED] I am in need of a formula, that tells me the attendance of Club members.
    By C21thirlmere in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-22-2015, 11:27 AM
  3. Formula to identify from list team members not playing
    By cph8 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-19-2015, 03:34 PM
  4. Replies: 3
    Last Post: 11-14-2014, 09:39 PM
  5. Replies: 7
    Last Post: 03-29-2013, 04:42 PM
  6. Replies: 3
    Last Post: 10-02-2012, 03:30 PM

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