+ Reply to Thread
Results 1 to 7 of 7

Counting disjointed cells

  1. #1
    Registered User
    Join Date
    10-05-2015
    Location
    Peterborough
    MS-Off Ver
    2007
    Posts
    5

    Counting disjointed cells

    Evening all,

    I apologise if the answer to this is so incredibly easy and obvious that you'll all have a laugh at my expense . . .but, I keep tripping up on this.

    I need to count the number of cells in a specified range, They aren't all in an easy column (e.g. B24,B25,B28,B31 etc).

    I want to count the cells if they are empty of if they have a value. I just want the total number of cells whatever is in them - even blank.

    I'll make another formula for counting the number of these cells that have a specific value - to then work out the %.
    If anyone can help I will be eternally grateful.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Counting disjointed cells

    Hi and welcome to the forum.

    Can you just clarify? Do you want help with this:

    Quote Originally Posted by Milgod View Post
    I want to count the cells if they are empty of if they have a value. I just want the total number of cells whatever is in them - even blank.
    or this:

    Quote Originally Posted by Milgod View Post
    I'll make another formula for counting the number of these cells that have a specific value - to then work out the %.
    or both?

    The first is straightforward, e.g.:

    =AREAS((B24,B25,B28,B31))

    The second is a little more complex, particularly since your cells are not equally spaced apart, e.g.:

    =SUM(COUNTIF(INDIRECT({"B24","B25","B28","B31"}),YourValue))

    where you should replace YourValue as required.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    10-05-2015
    Location
    Peterborough
    MS-Off Ver
    2007
    Posts
    5

    Re: Counting disjointed cells

    Hi there.

    Help with the first one mainly. I was hoping that I'd have a moment of inspiration for the second one.

    The first one looks great. Thank you.

    I'll try out the second one as well. I might need to have to count different values (any cell that contains 11 or 22 or 33)

    Is AREAS the general thing to use to count a range that isn't continuous?

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Counting disjointed cells

    Quote Originally Posted by Milgod View Post
    Is AREAS the general thing to use to count a range that isn't continuous?
    It's one option, and will work whether those cells are empty or not.

    Regards

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Counting disjointed cells

    Quote Originally Posted by Milgod View Post
    I might need to have to count different values (any cell that contains 11 or 22 or 33.
    You could use:

    =SUM(COUNTIF(INDIRECT({"B24","B25","B28","B31"}),{11;22;33}))

    though it's preferable to have your values (11, 22 and 33) in a contiguous range within the actual worksheet, e.g. E1:E3, after which the above becomes:

    =SUMPRODUCT(COUNTIF(INDIRECT({"B24","B25","B28","B31"}),E1:E3))

    Regards

  6. #6
    Registered User
    Join Date
    10-05-2015
    Location
    Peterborough
    MS-Off Ver
    2007
    Posts
    5

    Re: Counting disjointed cells

    I'll get on these again tomorrow.

    Thanks for the help.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Counting disjointed cells

    Sure. You're welcome.

    Cheers

+ 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. condensing a disjointed table, with lookups
    By mgolay in forum Excel General
    Replies: 2
    Last Post: 10-16-2012, 09:07 PM
  2. Replies: 0
    Last Post: 05-08-2012, 12:42 PM
  3. Replies: 3
    Last Post: 03-01-2012, 06:17 AM
  4. Excel 2007 : Data Disjointed Labels to Table Form
    By Makybe05 in forum Excel General
    Replies: 0
    Last Post: 02-17-2012, 03:09 AM
  5. Counting the non-null cells in a range with noncontinguous cells in a round-robin
    By StudentTeacher in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-08-2011, 07:28 AM
  6. Disjointed Information to Table
    By Xrull in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-22-2010, 06:04 AM
  7. Fill Series of Disjointed Selection across Rows & Columns?
    By mariecpu in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-01-2008, 01:04 PM
  8. counting cells with data without counting duplicates
    By labettis in forum Excel General
    Replies: 2
    Last Post: 11-05-2007, 12:10 PM

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