+ Reply to Thread
Results 1 to 14 of 14

Problem Counting Text in excel

  1. #1
    Forum Contributor
    Join Date
    11-08-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    279

    Problem Counting Text in excel

    HI

    Must be one of those mornings I do this task on a regular basis but for some reason the weekend must of been too long and I can’t seem to do it, Started to stress me out, so I thought I would see if anyone could help refresh my brain.

    I have two columns, One with the name of the person and one with whether they made the sale yes or no, I want to add up all the knows no's and yes's against each person.

    Please see the attached example

    Thanks
    Attached Files Attached Files
    Last edited by skate1991; 02-13-2012 at 06:52 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Countif, sumif

    A pivot table would be the most straightforward.

    Dom
    Attached Files Attached Files
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Countif, sumif

    try with Pivot table
    Attached Files Attached Files

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Countif, sumif

    Hi

    Try with SUMPRODUCT.

    =SUMPRODUCT(($A$1:$A$29="Joe")*($B$1:$B$29="No"))

    =SUMPRODUCT(($A$1:$A$29="Joe")*($B$1:$B$29="Yes"))

    Same for the others.

    Hope to helps you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Countif, sumif

    I don't think changing manualy few thousand names is a good approach :/

  6. #6
    Forum Contributor
    Join Date
    11-08-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    279

    Problem Counting Text in excel

    HI

    Must be one of those mornings I do this task on a regular basis but for some reason the weekend must of been too long and I can’t seem to do it, Started to stress me out, so I thought I would see if anyone could help refresh my brain.

    I have two columns, One with the name of the person and one with whether they made the sale yes or no, I want to add up all the knows no's and yes's against each person.

    Please see the attached example

    Thanks

  7. #7
    Forum Contributor
    Join Date
    11-08-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Countif, sumif

    Sorry didnt mean to re post, Was trying to change the title of the post,

  8. #8
    Forum Contributor
    Join Date
    11-08-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Problem Counting Text in excel

    And is there a way using a countif or sumif function, I think thats what I use to use to get the information

    Thanks

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Countif, sumif

    @zbor

    No this is not good idea. But if you have a list with the names(and in this case must be a list), then it's easily to do this..

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Countif, sumif

    Maybe this with COUNTIFS function:

    In first row you have filter so you can filter out each name.
    Attached Files Attached Files

  11. #11
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Problem Counting Text in excel

    Are you using Excel 2010 or 2003? If the latter then you could use COUNTIFS rather than SUMPRODUCT. Personally though I think the Pivot Table is by far the best approach for something like this.

    Dom

  12. #12
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Countif, sumif

    I agree with Domski. PT is best way to go.

    But if you don't want to use it here is 3rd approach, with new list:
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    11-08-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Countif, sumif

    I'm using excel 2010, Any idea what the countifs formula would be thanks

  14. #14
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Problem Counting Text in excel

    See Zbor's example.

    Dom

+ 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