+ Reply to Thread
Results 1 to 6 of 6

coloring cells and conditional formatting at the same time

  1. #1
    Registered User
    Join Date
    10-10-2020
    Location
    Pune
    MS-Off Ver
    2019
    Posts
    10

    coloring cells and conditional formatting at the same time

    I have an excel here.
    These are vehicles casanova,gokia,orbit.
    Different vehicles have different averages.
    So a vehicle in category casanova falls in red zone if its average is between 5-7.
    I want to count the number of such vehicles who fall in red category for casanova
    and at the same time color them.
    I came to know about a formula COUNTIFS(F4:F45,"casanova",F4:F45,">=5",F4:F45,"=<7")
    but this kind of formula will just count the vehicles which will fall in category RED for casanova.
    I want to color also at the same time.
    I have to do this for all the vehicles and each category and multiple ranges.
    Here is my excel.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: coloring cells and conditional formatting at the same time

    You need to read the help description for COUNTIFS and understand how it works so you can modify it, one formula for each combination of car and count (12 rules).

    Also your ranges don't make sense because they overlap. For casanova, is a count of 7 red, or yellow?

    For casanova yellow
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For orbit red
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and so forth.

    I would put your ranges in two separate cells instead of using "5-7". That way if the ranges change, you don't have to change the formulas. For example put 5 in D48 and 7 in E48, then the formula for casanova red is
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-10-2020
    Location
    Pune
    MS-Off Ver
    2019
    Posts
    10

    Re: coloring cells and conditional formatting at the same time

    Yes I understand what you say by ranges overlapping. The concerned person whom I asked has little understanding of what I am saying so they do not give clarity of what needs to be done.
    My current problem is ,is it possible to color at the same time by some formula the given ranges. So that I select cells in a column and if they meet
    some criteria let's say >5 AND <7 then color it red by a formula or script.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: coloring cells and conditional formatting at the same time

    Yes. Use Conditional Formatting using formulas as I described.

    Your title says "conditional formatting" so I assume you are familiar with it. Do you need detailed instructions for how to implement those formulas in conditional formatting?

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: coloring cells and conditional formatting at the same time

    Unless I am being silly
    COUNTIFS(F4:F45,"casanova",F4:F45,">=7",F4:F45,"=<8")

    will never happen as the value needs to be Casanova and >=7 and <=8

    note I have not opened the spreadsheet as no access to excel on phone
    Last edited by davsth; 10-14-2020 at 08:10 AM.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: coloring cells and conditional formatting at the same time

    Quote Originally Posted by davsth View Post
    Unless I am being silly
    COUNTIFS(F4:F45,"casanova",F4:F45,">=7",F4:F45,"=<8")

    will never happen as the value needs to be Casanova and >=7 and <=8

    note I have not opened the spreadsheet as no access to excel on phone
    That is a good point that I completely missed. The car names are in column C.

+ 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: 07-21-2020, 02:07 AM
  2. Conditional Formatting - coloring cells between dates
    By HabsFan89 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-22-2014, 03:42 PM
  3. [SOLVED] Conditional Formatting - Coloring Cells based on Values
    By desibabuji in forum Excel General
    Replies: 8
    Last Post: 11-22-2013, 12:31 PM
  4. [SOLVED] Conditional formatting - coloring cells across array if value exists in a list
    By mudder12 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-05-2012, 12:38 PM
  5. [SOLVED] Conditional Formatting - Coloring entire row
    By malnahar in forum Excel General
    Replies: 3
    Last Post: 11-29-2012, 03:32 PM
  6. Conditional Formatting - Coloring Cells in Rows according Text in it
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2012, 01:28 AM
  7. Conditional formatting coloring dates
    By Capslock in forum Excel General
    Replies: 2
    Last Post: 09-27-2007, 12:19 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