+ Reply to Thread
Results 1 to 20 of 20

Count of Cell Highlighting over Multiple Columns per Name

  1. #1
    Registered User
    Join Date
    12-11-2021
    Location
    Zurich, Switzerland
    MS-Off Ver
    Office 365
    Posts
    25

    Count of Cell Highlighting over Multiple Columns per Name

    Dear all

    Thank you so much for this forum.

    I have a list of about 1000 rows which contains Names (the name of the person entering information) and the information entered per row, over 75 columns.
    Based on the data entered, some cells are highlighted red (this is the only type of highlighting), but the data and condiitons for the highlighting may vary (all the same in the example).
    I would like to know how many cells per Name are highlighted, counting/summing all of the highlights of a Name's row(s).
    The result is to be provided on another tab - see example. Note I have not filled the result, hope this is self-explanatary.

    Can this be done with Excel FUNCTIONS only? I do not want to use VBA.

    Many thanks.

    Kind regards,
    Claus.
    Attached Files Attached Files
    Last edited by MacClaus; 07-19-2022 at 12:26 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count of Cell Highlighting over Multiple Columns per Name

    If all the names on the Result sheet are in the same order as the Source Sheet then

    B2

    =COUNTIF(Source!B2:BX2,">"&96)

    However since they're not

    =COUNTIFS(OFFSET(Source!$A$1:$A$1001,MATCH(A2,Source!A:A,FALSE)-1,0,1,75),">"&96)
    Last edited by Richard Buttrey; 07-19-2022 at 12:25 PM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-11-2021
    Location
    Zurich, Switzerland
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Hi Richard

    Thanks for your reply, but I can not rely on the data - only the highlighting - as mentioned:

    Based on the data entered, some cells are highlighted red (this is the only type of highlighting), but the data and condiitons for the highlighting may vary (all the same in the example).

    Sorry, but this solution will not work.

    Kind regards,
    Claus.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Just realised the order is not the same. See my addendum in #2

  5. #5
    Registered User
    Join Date
    12-11-2021
    Location
    Zurich, Switzerland
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Hi Richard

    Thank you, but again, I can NOT rely on the data in the cells, ONLY the highlighting.
    In that case I believe your solution will not work.

    Kind regards,
    Claus.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,772

    Re: Count of Cell Highlighting over Multiple Columns per Name

    If the cells are highlighted, then the cell value is over 96, so for Emma:

    =SUMPRODUCT((Source!$B$2:$BX$1001>96)*(Source!$A$2:$A$1001=A2))

    Copy down.

    If this isn't it, you are going to need to explain in more detail.

    In future, please provide sample datasets of no more than 20 rows of data.
    Attached Files Attached Files
    Last edited by AliGW; 07-19-2022 at 12:42 PM. Reason: Added example workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    12-11-2021
    Location
    Zurich, Switzerland
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Dear all

    Please, you can not rely on the DATA - as the title says, COUNT OF CELL HIGHLIGHTING.
    I want to count the cells that are highlighted, not the cells that contain a cetain value (i.e. greater than 96).

    Hope that is clear.

    Many thanks.

    Kind regards,
    Claus.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,772

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Just seen this:

    condiitons for the highlighting may vary (all the same in the example).
    This makes me fume - sorry. PLEASE provide REALISTIC sample data!!!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,772

    Re: Count of Cell Highlighting over Multiple Columns per Name

    I want to count the cells that are highlighted,
    You can't with a formula.

  10. #10
    Registered User
    Join Date
    12-11-2021
    Location
    Zurich, Switzerland
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Hi AliGW!

    Yesterday you asked me to make sure that the data set (sample file) is represnettaive of the live data set - I had not informed that the matrix can be huge and we hit the 37'400 character limit.
    Today I create a more representative set, now you tell me to not make it so big.
    How can I win?

    Kind regards,
    Claus Steffen.

  11. #11
    Registered User
    Join Date
    12-11-2021
    Location
    Zurich, Switzerland
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Hi AliGW

    I appreciate your support, but please, this reply is unnecessary. I EXPLAINED IT MANY TIMES, and I USED the CORRECT TITLE.
    Please just read the request.

    Kind regards,
    Claus.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,772

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Yesterday you asked me to make sure that the data set (sample file) is represnettaive of the live data set
    However, you have NOT made it representative.

    I USED the CORRECT TITLE.
    I have said nothing about your title!

    How can I win?
    By giving us data that we can actually work with. If the REAL data has differing values assigned in the conditional formatting, then the SAMPLE data needs to reflect that. We cannot provide working solutions with half-baked data!

    this reply is unnecessary.
    Which reply? The one where I expresed my frustration or the one where I told you it can't be done with a formula?

    Please just read the request.
    I did read the request.

  13. #13
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Quote Originally Posted by MacClaus View Post
    Hi Richard

    Thank you, but again, I can NOT rely on the data in the cells, ONLY the highlighting.
    In that case I believe your solution will not work.

    Kind regards,
    Claus.
    The highlighting is BASED on the data in the cells. If you can't rely on the data then you can't rely on the highlighting.

    Please clarify what you are saying. Are you suggesting that the highlighting of values over 96 is not consistent and some cells that are not >96 are nevertheless highlighted?

    Or are you saying that with other worksheets the value being tested for highlighting is something other than 96. If so just build in a cell that contains the mumber and use that cell in the formulae given.
    Last edited by Richard Buttrey; 07-19-2022 at 01:07 PM.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,772

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Richard - the OP said this in the opening post (which I did not fully appreciate on first reading):

    condiitons for the highlighting may vary (all the same in the example).
    I understand from this that the real data contains multiple CF rules, but the sample data contains only one.

  15. #15
    Registered User
    Join Date
    12-11-2021
    Location
    Zurich, Switzerland
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Dear all

    Thanks, but let's get back to reading the request.
    The reqeust was to COUNT the DATA HIGHLIGHTING and I stated that the data is NOT representative.

    Kind regatds,
    Claus.

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,772

    Re: Count of Cell Highlighting over Multiple Columns per Name

    As I have already told you, you cannot count highlighting with a formula. This is why your helpers are trying to find something else to use, as you have said you do not wish to use VBA.

    The sample data SHOULD be representative - there is no point whatsoever in suppling sample data that isn't.

    EDIT: you have marked the thread as solved. Do you not require further help with this?

  17. #17
    Registered User
    Join Date
    12-11-2021
    Location
    Zurich, Switzerland
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Hi AliGW

    I have marked the thread as SOLVED.

    Kind regards,
    Claus.

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,772

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Why? Do you not want any further help with this? We are trying very hard to help you.

  19. #19
    Registered User
    Join Date
    12-11-2021
    Location
    Zurich, Switzerland
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Count of Cell Highlighting over Multiple Columns per Name

    Hi AliGW

    I really appreciate the help, but you said it's not possible with FUNCTIONS - hence I closed it.

    Kind regards,
    Claus.

  20. #20
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,772

    Re: Count of Cell Highlighting over Multiple Columns per Name

    I said that using the highlighting in a formula won't work, but if you were to share properly representative data, we might be able to find another way.

    Thanks for letting us know.

+ 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] Highlighting multiple duplicates based on two columns
    By cologg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-11-2021, 03:11 AM
  2. [SOLVED] highlighting repeated for specific values on multiple columns not rows
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-28-2020, 12:56 AM
  3. [SOLVED] highlighting duplicates if the cells match between multiple columns
    By R.Sloan in forum Excel General
    Replies: 4
    Last Post: 07-25-2017, 08:01 AM
  4. Scroll while highlighting multiple columns
    By Snaxx in forum Excel General
    Replies: 3
    Last Post: 12-06-2014, 02:05 PM
  5. Referencing a cell to count multiple columns in another sheet
    By sh55174 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-06-2014, 10:08 PM
  6. Replies: 9
    Last Post: 07-31-2012, 04:37 PM
  7. Replies: 8
    Last Post: 01-19-2012, 07:53 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