+ Reply to Thread
Results 1 to 7 of 7

Counting Problem

  1. #1
    Registered User
    Join Date
    08-06-2015
    Location
    Vienna
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    5

    Counting Problem

    Guys I have a problem.

    I will explain it with fruits.

    I want to count the oranges (each of the rows is in one excel cell)

    apple,orange
    orange
    banana,orange,apple
    apple, banana
    banana
    apple

    I know that i could seperate the data, but as I am dealing with a huge dataset and I dont want to do this.
    COUNTIF() does not work for counting the oranges, it will only give back 1.

    Thanks Guys

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Counting Problem

    How about =Countif(A:A,"*orange*"), have you tried that?

    EDIT: corrected oranges to orange
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    08-06-2015
    Location
    Vienna
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    5

    Re: Counting Problem

    Thank you very much for your reply,

    I have tried it, but there is a problem.

    to be more specific, I am doing a failure analysis. If I use =COUNTIF(A:A;"*CORROSION*"), the function will pick every cell that has the word corrosion in it, but I need to distinguish here further as there is "Corrosion General", "Corrosion Localized", "Corrosion Pores" etc

    an example with fruits would look like this:

    Orange big,Orange small
    Apple, Orange big
    Orange big
    Orange small, Banana
    Banana, Orange big

    How to count the big Oranges?

  4. #4
    Registered User
    Join Date
    01-13-2015
    Location
    Leicester, England
    MS-Off Ver
    2013
    Posts
    42

    Re: Counting Problem

    Like Sambo Kid said, just add "big":
    =Countif(A:A,"*orange big*")

  5. #5
    Registered User
    Join Date
    08-06-2015
    Location
    Vienna
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    5

    Re: Counting Problem

    thanks,
    seems that I stated my problem a little bit wrong. I am sorry.

    Let me please try it again:

    Orange big, Orange small
    Apple, Orange big
    Orange big, Orange
    Orange
    Banana, Orange big
    Orange, Orange big


    I want to count just "Orange" (not "Orange big" and not "Orange small").

    If I use now =COUNTIF(A:A;"*Orange*") I will get back 6. But there are only 3 "Orange". How can I do that?

  6. #6
    Registered User
    Join Date
    08-06-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    68

    Re: Counting Problem

    Might this work?
    =COUNTIF(A:A,"*orange")+COUNTIF(A:A,"orange,*")
    The second COUNTIF uses the fact that all the words in the cell are separated by a comma.

  7. #7
    Registered User
    Join Date
    08-06-2015
    Location
    Vienna
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    5

    Re: Counting Problem

    Thank you,

    that worked out

+ 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. Counting Problem
    By Lazor78 in forum Excel General
    Replies: 2
    Last Post: 01-24-2012, 07:51 AM
  2. Excel 2007 : Counting problem.
    By AdrianS92 in forum Excel General
    Replies: 4
    Last Post: 10-18-2011, 02:32 AM
  3. Counting problem
    By welchs101 in forum Excel General
    Replies: 2
    Last Post: 06-01-2011, 10:36 PM
  4. counting problem
    By SelinaT in forum Excel General
    Replies: 2
    Last Post: 06-29-2009, 01:41 AM
  5. counting problem
    By GarryHearts in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-29-2008, 01:56 PM
  6. [SOLVED] counting problem
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM
  7. [SOLVED] counting problem
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  8. [SOLVED] counting problem
    By philip in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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