+ Reply to Thread
Results 1 to 9 of 9

Counting specific occurrences of data in a row

  1. #1
    Registered User
    Join Date
    06-27-2014
    Location
    South Tyneside
    MS-Off Ver
    2013
    Posts
    23

    Counting specific occurrences of data in a row

    Hi there

    I'm hoping someone can steer me on the right path with this.

    I'm pretty much a novice at Excel and I'm struggling with the following:

    I am working at putting together a rota and want it to do several calculations for me to make life a little easier! Here is a screenshot to show how it looks:

    Rota Screenshot.jpg

    I want the occurrences of the following letters to be counted up from B2:Z2 (and so on) and the total divided by 2 (to give an hourly figure): M, TB, T, L, U, C, 1

    I want the total to be included in column AE.

    Can someone share their wisdom please?

    Any help is really appreciated.

    Cheers

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Counting specific occurrences of data in a row

    Without copying your chart, here is something that will work. Just fill in your data and headings.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    06-27-2014
    Location
    South Tyneside
    MS-Off Ver
    2013
    Posts
    23

    Re: Counting specific occurrences of data in a row

    That's great.

    How would I get all of those letter occurrences to add together into column AE in one formula? So all the occurrences of the letters given are counted and added together.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Counting specific occurrences of data in a row

    Do you mean count all the cells in the range that have letters in them? If so, this will work:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    06-27-2014
    Location
    South Tyneside
    MS-Off Ver
    2013
    Posts
    23

    Re: Counting specific occurrences of data in a row

    Not quite Glenn. I am trying to count all letters listed at the start of the thread, excluding A, S and H, and get them to total in column AE.

    Example:

    A A A T T A L L L L

    I want the T's and L's counted, added together then divided by 2 (to give an hourly figure).

    Hope this makes sense.

    Cheers

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Counting specific occurrences of data in a row

    So, in the sheet posted by Newdoverman, what is your expected result? (It is MUCH easier when a question is accompanied with a sheet).

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Counting specific occurrences of data in a row

    Here, try this out...

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    06-27-2014
    Location
    South Tyneside
    MS-Off Ver
    2013
    Posts
    23

    Re: Counting specific occurrences of data in a row

    That looks to have done the trick Glenn. I tweaked it to get row by row total.

    It's a good point about posting the sheet. I will do this in future as it no doubt won't be the last time I look for help!

    Cheers

    Iam

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Counting specific occurrences of data in a row

    OK, you're welcome. It's MUCH easier to use than a blurry screenshot...

    If that's it, can you mark the thread as solved & (preferably) say thanks to those that helped by clicking the Add Reputation button at the foot of their posts.

+ 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. [SOLVED] counting occurrences
    By kri54sub in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-11-2013, 01:01 PM
  2. Replies: 8
    Last Post: 11-08-2012, 02:26 PM
  3. Counting Occurrences of Data in Multiple Columns
    By jgray in forum Excel General
    Replies: 3
    Last Post: 12-13-2010, 03:44 PM
  4. Counting occurrences
    By HaydenB in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-30-2010, 04:26 PM
  5. Counting occurrences of text
    By pinkgoldfish in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-27-2007, 04:48 AM

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