+ Reply to Thread
Results 1 to 5 of 5

Excel 2003 - Count occurence of word in one column when another criteria is matched

  1. #1
    Registered User
    Join Date
    05-03-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Post Excel 2003 - Count occurence of word in one column when another criteria is matched

    Hello,
    I am new to the forum and have actually spent hours today reading and testing options for this. I really hope someone can help.

    I have a 4000 row set of personnel data. with the following set up
    A_______________________B
    1 attended_________________Band 1
    2 Place booked_____________Band 2
    3 attended_________________Band 1
    4 blank____________________Band 1
    5 attended_________________Band 2
    etc

    I need to create a calculation that counts the number of "attended" against Band 1, Band 2 and so on
    The results would look like this
    Band______Attended Status
    Band 1_____2
    Band 2 ____ 0
    I can use a pivot table to manipulate the results - but I need something to build a dashboard with.

    Many thanks.

    So far, Sumproduct, Countif and various combinations of each have not worked.

    Note - I cannot use countifs.

    Have a lovely day

    C

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Excel 2003 - Count occurence of word in one column when another criteria is matched

    hi claudine, welcome to the forum. maybe:
    =SUMPRODUCT(($A$2:$A$10="Attended")*($B$2:$B$10="Band 1"))

    you can probably refer the red one to a cell reference containing "Band 1"

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    05-03-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Excel 2003 - Count occurence of word in one column when another criteria is matched

    Quote Originally Posted by benishiryo View Post
    hi claudine, welcome to the forum. maybe:
    =SUMPRODUCT(($A$2:$A$10="Attended")*($B$2:$B$10="Band 1"))

    you can probably refer the red one to a cell reference containing "Band 1"
    Hello Back, thank you for the super swift response. I have tried this with some dummy data (in case the master sheet has stray spaces / syntax) and it doesn't work. Must it be absolute values?

    Thanks again,

    C

  4. #4
    Registered User
    Join Date
    05-03-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Excel 2003 - Count occurence of word in one column when another criteria is matched

    .... just to be clear - either using "attended", "Band 1" or the cell references that the words appear in elsewhere gives a #N/A result......note - I am being careful to avoid circular references too...... Many thanks again C

    This is the data looking a "bit" tidier

    A B
    1 Attended Band 1
    3 Place Booked Band 2
    4 Attended Band1
    5 Attended Band 1
    6 Attended Band 1
    7 Attended Band 1
    8 Attended Band 1
    9 #N/A Band 2
    10 #N/A Band 2
    11 #N/A Band 2
    12 Place Booked Band 2
    13 Place Booked Band 2
    14 Place Booked EGU
    15 Place Booked EGU
    16 Place Booked EGU
    17 Place Booked EGU

  5. #5
    Registered User
    Join Date
    05-03-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Excel 2003 - Count occurence of word in one column when another criteria is matched

    Hello - thank you thank you thank you.

    My "attended status" column is the result of a vlookup (copy - paste special - values). Although it is now not a "live" calculation - it does show #n/a in some of my 4000 rows. This is causing the calulcation to error.

    Such an obvious oversight and so many hours wasted!

    Thank you for helping me...

    C

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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