+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : =sum problem

  1. #1
    Registered User
    Join Date
    08-26-2009
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2003
    Posts
    17

    =sum problem

    I have attached a file.

    I am classifying 45 respondents (M,F) into categories "1" and "0" V2:V46 on gender basis(b2:b)46. I have used =sum formula, but I am not getting account for all 45 respondents. The formula is giving result for 35 respondents only.

    The formulas I have used are:

    =SUM((B2:B46="M")*(V2:V46=1))
    =SUM((B2:B46="F")*(V2:V46="1"))
    =SUM((B2:B46="M")*(V2:V46=0))
    =SUM((B2:B46="F")*(V2:V46="0"))

    I have entered them C+S+E press.

    Please point out my error.
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: =sum problem

    For some reason you have wrapped the 1 in quotes for the Female test.
    Use,

    =SUM((B2:B46="F")*(V2:V46=1))
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: =sum problem

    If as implied by your upload you're running 2007 you should use COUNTIFS (non-array) in preference to CSE, eg

    =COUNTIFS(B2:B46,"F",V2:V46,1)

    However, unlike the Array (or SUMPRODUCT equiv.) the COUNTIFS function is not backwards compatible with earlier versions of XL (it is however more efficient).

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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