+ Reply to Thread
Results 1 to 14 of 14

Thread: Problem Counting Text in excel

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

    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 05:52 AM.

  2. #2
    Forum Guru Domski's Avatar
    Join Date
    12-14-2009
    MS-Off Ver
    What does it matter?
    Posts
    3,933

    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
    Excel 2007
    Posts
    6,211

    Re: Countif, sumif

    try with Pivot table
    Attached Files Attached Files
    "Relax. What is mind? No matter. What is matter? Never mind!"

  4. #4
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    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.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    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.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,211

    Re: Countif, sumif

    I don't think changing manualy few thousand names is a good approach :/
    "Relax. What is mind? No matter. What is matter? Never mind!"

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

    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
    106

    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
    106

    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
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    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..
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    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.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,211

    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
    "Relax. What is mind? No matter. What is matter? Never mind!"

  11. #11
    Forum Guru Domski's Avatar
    Join Date
    12-14-2009
    MS-Off Ver
    What does it matter?
    Posts
    3,933

    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
    "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.

  12. #12
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,211

    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
    "Relax. What is mind? No matter. What is matter? Never mind!"

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

    Re: Countif, sumif

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

  14. #14
    Forum Guru Domski's Avatar
    Join Date
    12-14-2009
    MS-Off Ver
    What does it matter?
    Posts
    3,933

    Re: Problem Counting Text in excel

    See Zbor's example.

    Dom
    "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.

+ 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.2.0