+ Reply to Thread
Results 1 to 6 of 6

Verifying Totals with Conditional Formatting

  1. #1
    Registered User
    Join Date
    01-29-2016
    Location
    Missouri
    MS-Off Ver
    Excel Mac 2011
    Posts
    3

    Verifying Totals with Conditional Formatting

    I have created a chart that has a list of names that belong to numbered groups with favorite food. I want to have a chart display the breakdown of favorite food by group number, i.e. how many names in group 1 like apples. I have figured out how to do that with countifs. I then want an extra column to verify that all names have been used, so I want it to countif(names in group 1). If the number does not match the total of all group 1 favorite foods, I want it to turn red. Is there an easy way to do that with Conditional Formatting?

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,743

    Re: Verifying Totals with Conditional Formatting

    It would help if you could post a small sample file illustrating what is required.

    Click "Go Advanced" then "Paper Clip" icon to upload a file.

  3. #3
    Registered User
    Join Date
    01-29-2016
    Location
    Missouri
    MS-Off Ver
    Excel Mac 2011
    Posts
    3

    Re: Verifying Totals with Conditional Formatting

    So I have a list of favorite fruits. I'm counting how many of each fruit are liked by each group.
    Is there a way to add in a cell where the x is a formula to add up the group results, i.e. 6 for group 1,
    and check it against a countif(group 1) from the original chart?

    Question Test.xlsx
    Last edited by LankyOgre; 02-04-2016 at 01:42 PM.

  4. #4
    Registered User
    Join Date
    01-29-2016
    Location
    Missouri
    MS-Off Ver
    Excel Mac 2011
    Posts
    3

    Re: Verifying Totals with Conditional Formatting

    I have a second question. I also want to return a list of students who like apples. Is there an easy way to return just that list?

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Verifying Totals with Conditional Formatting

    Q1: One way, In L2 copied down

    =SUM(G2:K2)=COUNTIF($C$3:$C$11, RIGHT(F2,1)+0)
    TRUE means they match, False means don't match. If you want it as a CF
    =NOT(SUM($G2:$K2)=COUNTIF($C$3:$C$11, RIGHT($F2,1)+0))

    Q2
    An array formula is a quick way to do this
    =IFERROR(INDEX($A$3:$A$11, SMALL(IF($B$3:$B$11=A$13, ROW($A$3:$A$11)-ROW($A$3)+1), ROWS($A$14:$A14))),"")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    See attachment
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Verifying Totals with Conditional Formatting

    Check attached I used pivot table for this, May be helpful to you.
    Attached Files Attached Files
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

+ 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. Running totals with conditional formatting
    By sovero in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-07-2014, 12:35 PM
  2. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  3. [SOLVED] conditional formatting with totals
    By komet12 in forum Excel General
    Replies: 17
    Last Post: 10-17-2012, 01:50 PM
  4. Conditional Running Totals between dates
    By fcb1900 in forum Excel General
    Replies: 5
    Last Post: 05-30-2010, 06:08 AM
  5. Counting and totals with formatting
    By rbmcc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-05-2006, 02:31 PM
  6. [SOLVED] Formatting Totals at Bottom of Page
    By Scott in forum Excel General
    Replies: 7
    Last Post: 09-20-2005, 08:05 PM
  7. Formatting Sub Totals
    By KS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-24-2005, 09:06 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