+ Reply to Thread
Results 1 to 9 of 9

Excel 2007 : counting the number of times an identifier being called in a column

  1. #1
    Registered User
    Join Date
    02-13-2009
    Location
    sg
    MS-Off Ver
    Excel 2007
    Posts
    36

    counting the number of times an identifier being called in a column

    Hi
    I have a cell which is suppose to count the number of times the weighted score is being called in all the cells in the column.

    For example
    Col A Cell 1
    i am a boy and i like fishing.

    Col A cell 2
    The boy is running. Oh boy, he's fast.

    Col A cell 3
    The boy is the girls brother.

    Suppose the identifier for Col A is boy.

    The result should display 4

    Any idea on how to do this?

    Thank you
    Last edited by superkid; 02-15-2009 at 12:50 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: counting the number of times an identifier being called in a column

    it could be done, with some complexity, with formulas, and more easily with VBA. What's your level of familiarity?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: counting the number of times an identifier being called in a column

    tRY:

    =SUM(LEN(A1:A3)-LEN(SUBSTITUTE(A1:A3,"boy","")))/LEN("boy")

    which must be confirmed with CTRL+SHIFT+ENTER not just ENTER.

    You can place "boy" in another cell and reference it instead, if desired.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    02-13-2009
    Location
    sg
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: counting the number of times an identifier being called in a column

    wow i learnt something new what is there a difference between ctrl shift enter and enter?

    thanks

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: counting the number of times an identifier being called in a column

    CTRL+SHIFT+ENTER is used with Array Formulas...

    See here for a good tutorial on these types of formulas

  6. #6
    Registered User
    Join Date
    02-13-2009
    Location
    sg
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: counting the number of times an identifier being called in a column

    one small problem

    For example
    Col A Cell 1
    i am a [+3, boy] and i like fishing.

    Col A cell 2
    The [+2,boy] is running. Oh [+3, boy], he's [-1,fast].

    Col A cell 3
    The [+1, boy] is the girls brother.

    Suppose the identifier for Col A is still boy and now I would like to count the number of times +3 is being called for the identifier. Any solution for this.

    Answer should be now be 2

    thanks

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: counting the number of times an identifier being called in a column

    Are you putting the identifiers in other cells? If so, how are you entering them?

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: counting the number of times an identifier being called in a column

    Since I will be going to bed soon... I thought I would attempt a guess...

    I will assume you have "+3" in cell D1 and "boy" in cell E1 (both without quotes and entered as text strings).

    Then, assuming the format [+3, boy] is consistent...

    Try:

    Please Login or Register  to view this content.
    Again confirmed with CTRL+SHIFT+ENTER.

  9. #9
    Registered User
    Join Date
    02-13-2009
    Location
    sg
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: counting the number of times an identifier being called in a column

    thank you so much look like it works :D

+ 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