+ Reply to Thread
Results 1 to 8 of 8

COUNT certain cells (not range) that contain certain data

  1. #1
    Registered User
    Join Date
    02-05-2015
    Location
    Karratha, Australia
    MS-Off Ver
    2010
    Posts
    15

    Exclamation COUNT certain cells (not range) that contain certain data

    Hi,

    I have a roster which at the bottom calculates who's on R&R, onsite, etc. I need to count the locals (who do not require accommodation) when they're on site (specified by a number), RDO (specified by "RDO"), Other day off (specified by "O") but NOT when they're on R&R (specified by "RR") as this is counted in another row.

    The row containing the local's roster are E21, E49 and E51.

    Any help would be MUCH appreciated, I can't get my head around it!!

  2. #2
    Registered User
    Join Date
    09-29-2014
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    14

    Re: COUNT certain cells (not range) that contain certain data

    Can you please upload the worksheet, or a sample worksheet as this will make finding a solution for you a lot easier. Thanks.

  3. #3
    Registered User
    Join Date
    02-05-2015
    Location
    Karratha, Australia
    MS-Off Ver
    2010
    Posts
    15

    Cool Re: COUNT certain cells (not range) that contain certain data

    OK I've uploaded an edited version as the correct one contains confidential info.

    I need the "Accommodation NOT Required" to count the Local personnel (row 10 and row 12) if the cell displays anything other than "RR". Including a number, HOL, O, RDO.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: COUNT certain cells (not range) that contain certain data

    Are you sure its rows 10 and 12, and not 9 and 11?

    Anyway, looks like you need to use something like =countif(range,"<>RR")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    02-05-2015
    Location
    Karratha, Australia
    MS-Off Ver
    2010
    Posts
    15

    Unhappy Re: COUNT certain cells (not range) that contain certain data

    Yes sorry I mean 9 and 11.

    I'm not counting a range, just two specific cells therefore it comes up with an error when I type that formula..

  6. #6
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: COUNT certain cells (not range) that contain certain data

    You can use this:

    =COUNTIFS($C$8:$C$11,"LOCAL",F8:F11,"<>RR")

    Hope this helps!!!

  7. #7
    Registered User
    Join Date
    02-05-2015
    Location
    Karratha, Australia
    MS-Off Ver
    2010
    Posts
    15

    Re: COUNT certain cells (not range) that contain certain data

    Hi bhenlee, I think you're on the right track but it's not counting correctly.

    Attached is the actual roster I'm working on, see row 80 which is where I need the answer projected.

    If column C equals "Karratha - Local" and column F equals a number >0 I need it to count. I don't want it to count if column F equals R&R as this is already counted in row 76.

    I also need it to count when there is a DV in colum F which is why I have the forumla COUNTIFS(F19:F74,"DV")

    Thanks!
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: COUNT certain cells (not range) that contain certain data

    The <> means not equal to RR.. meaning it will count anything not equal to RR which is what you mentioned in post #3

    anyway this formula should do the trick:

    =COUNTIFS($C10:$C74,"Karratha - Local",T10:T74,">0")+COUNTIFS(F10:F74,"DV")
    If I've helped U pls click on d *Add Reputation

+ 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. How to count blank cells in data range
    By puttu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-11-2013, 01:48 PM
  2. Count a Range of cells if another range of cells meets criteria
    By mjg060468 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-21-2013, 02:57 PM
  3. [SOLVED] Count in a range, where identical adjacent cells count as one instance.
    By the-algebraist in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-05-2013, 11:18 AM
  4. Replies: 9
    Last Post: 02-24-2010, 07:20 AM
  5. Transpose & Paste data based on a count of cells from a range
    By sugondog in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-28-2009, 01:37 PM

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