+ Reply to Thread
Results 1 to 6 of 6

Count words referenced to a number.

  1. #1
    Registered User
    Join Date
    06-18-2010
    Location
    Bournemouth, UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Count words referenced to a number.

    Here's a tricky one I'm really struggling to get the syntax right on.

    I have a number of columns (I:O) that are either "Yes" or blank on a summary sheet.

    On another sheet within the same workbook I have the raw data.

    On the sheet with the raw data is a column with school numbers, each occurring multiple times.

    I need to count the number of times that "Yes" occurs for each school with it being on a different sheet (Schools!) to the summary (Summary!).

    There are also other columns with "Yes" and blank so it needs to reference the correct column as opposed to the entire sheet.

    e.g.

    Col A Col I
    No. Yes/ Blank

    2000 Yes
    2000
    2001 Yes
    2003 Yes
    2000
    etc

    Many thanks
    Adam

  2. #2
    Registered User
    Join Date
    06-18-2010
    Location
    Bournemouth, UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Count words referenced to a number.

    As an addendum, the formula I have been working around is:

    {=IF(VLOOKUP($A12,Schools!$A:$O,15,FALSE)="Yes",1)}

    The problem with this is that I'm getting a 1 if "Yes" occurs, but not how many instances.

    I'm stumped.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Count words referenced to a number.

    hard to visualise ,perhaps a sumproduct will do it . post a sample workbook
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    06-18-2010
    Location
    Bournemouth, UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Count words referenced to a number.

    This is an example of the sheet. I hope this covers what you need. If not, I'll try again.

    Adam
    Attached Files Attached Files

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Count words referenced to a number.

    not quite sure but perhaps this may help
    Attached Files Attached Files
    Last edited by martindwilson; 06-18-2010 at 08:03 AM.

  6. #6
    Registered User
    Join Date
    06-18-2010
    Location
    Bournemouth, UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Count words referenced to a number.

    That's great. The formula there appears to work for the whole sheet correctly.

    Many thanks
    Adam

+ 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