+ Reply to Thread
Results 1 to 12 of 12

Conditionally counting blank cells in a large table by referencing values in the table

Hybrid View

  1. #1
    Registered User
    Join Date
    01-17-2023
    Location
    Denver, CO
    MS-Off Ver
    O365
    Posts
    6

    Conditionally counting blank cells in a large table by referencing values in the table

    Sample Counting sheet.xlsx

    (Sample sheet attached, and I have thus modified the text below to apply to this attachment.)

    The concept I describe below seems like it should be possible...

    So, I start with Sheet1 with a table of data in cells A2:J21. Row 1 is just headers, so my data is 10 columns * 20 rows of data.

    In column E ("Owners") of that sheet, I have the names of 2 "owners" (Peter, Fred) distributed across the 20 rows, 10 rows for each owner.

    I'm not allowed to modify Sheet1... so, I then go to Sheet2, which I am representing on the right side of my attached sample sheet...

    In the first column of Sheet2, I start with that same list of names (Peter, Fred).

    What I want in the second column of Sheet 2 is a count of all non-blank cells for all rows belonging to each person. For example, Peter has 7 blank cells distributed across his rows in Sheet 1, so I would want Peter's count to = ((10 columns * 10 Peter rows) - (7 blanks in Peter's rows)) = (100 - 7) = 93. And if Fred has 6 blanks in his 10 rows, I want his count value in Sheet 2 to = 94.

    Is there one formula I can use in Sheet 2 that references their Name (sheet 2, first column) to do this kind of cell-counting from Sheet 1?

    Thanks!
    Last edited by Excelerator71; 01-18-2023 at 10:18 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Conditionally counting blank cells in a large table by referencing values in the table

    Hi,
    It will be better if you try to attach a sample file. I'm afraid that is too much for any of us to reconstruct your worksheet.
    See the yellow banner at the top of this page to see how to do this
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    Registered User
    Join Date
    01-17-2023
    Location
    Denver, CO
    MS-Off Ver
    O365
    Posts
    6

    Re: Conditionally counting blank cells in a large table by referencing values in the table

    Thank you for the suggestion! I have modified my original post to attach a sample sheet, and I also changed all the text to apply to that sample.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,741

    Re: Conditionally counting blank cells in a large table by referencing values in the table

    How about in O3 dragged down
    Formula: copy to clipboard
    =ROWS(TOCOL(FILTER($A$2:$J$21,$E$2:$E$21=N3),1))

  5. #5
    Registered User
    Join Date
    01-17-2023
    Location
    Denver, CO
    MS-Off Ver
    O365
    Posts
    6

    Re: Conditionally counting blank cells in a large table by referencing values in the table

    It doesn't seem to recognize the TOCOL() portion of that formula...

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,741

    Re: Conditionally counting blank cells in a large table by referencing values in the table

    Ok, you obviously don't have the new functions yet, try
    Formula: copy to clipboard
    =LET(f,FILTER($A$2:$J$21,$E$2:$E$21=N3),SUM(IF(f<>"",1,0)))

  7. #7
    Registered User
    Join Date
    01-17-2023
    Location
    Denver, CO
    MS-Off Ver
    O365
    Posts
    6

    Re: Conditionally counting blank cells in a large table by referencing values in the table

    It provides the correct values! Thank you!

    It also seems to want to apply a weird format to the results, but I can work around that no problem.

    Thanks again!

    (Now to figure out how to mark this thread as resolved...)

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,741

    Re: Conditionally counting blank cells in a large table by referencing values in the table

    What weird format? It just returns a number

  9. #9
    Registered User
    Join Date
    01-17-2023
    Location
    Denver, CO
    MS-Off Ver
    O365
    Posts
    6

    Re: Conditionally counting blank cells in a large table by referencing values in the table

    It makes it: Courier New, font size 9 or 10, light gray text color, left justified, and a thick black border around the cell.
    The original cell was: Calibri, font size 11, regular black text, middle justified, and a thin black border around the cell.

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,741

    Re: Conditionally counting blank cells in a large table by referencing values in the table

    I can only think that is something to do with copying the formula from the board. The formula itself cannot do that.

  11. #11
    Registered User
    Join Date
    01-17-2023
    Location
    Denver, CO
    MS-Off Ver
    O365
    Posts
    6

    Re: Conditionally counting blank cells in a large table by referencing values in the table

    That was exactly it. I copied the formula text to Notepad first, then copy/pasted that into the sheet, and the formatting was left alone. Thanks again - have a great day!

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,741

    Re: Conditionally counting blank cells in a large table by referencing values in the table

    Glad to help & thanks for the feedback.

+ 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. Replies: 6
    Last Post: 11-22-2018, 05:18 AM
  2. Locate blank cells in large table
    By Davjel in forum Excel General
    Replies: 3
    Last Post: 12-02-2016, 01:24 AM
  3. HELP: Counting the number of cells in with values in a large table
    By tyler3135 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2014, 08:32 PM
  4. Replies: 2
    Last Post: 11-22-2013, 02:52 PM
  5. [SOLVED] Conditionally formatting large table
    By davidman1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2012, 06:39 PM
  6. pivot table counting blank cells in data table
    By nicko54 in forum Excel General
    Replies: 4
    Last Post: 09-23-2008, 11:26 AM
  7. Replies: 2
    Last Post: 09-23-2008, 11:01 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