+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting On Large Spreadsheet - 4 possible outcomes

  1. #1
    Registered User
    Join Date
    04-16-2019
    Location
    South Dakota, United States
    MS-Off Ver
    2013
    Posts
    50

    Conditional Formatting On Large Spreadsheet - 4 possible outcomes

    Hello all,

    I have a large spreadsheet and I want to create a rule that colors a range of cells into one of four colors, depending on the value of a cell in column "R."

    Please Login or Register  to view this content.
    "Red"
    Please Login or Register  to view this content.
    "Yellow"
    Please Login or Register  to view this content.
    "Green"
    Please Login or Register  to view this content.
    "Orange"

    Applies to following range:
    Please Login or Register  to view this content.
    But as I mentioned, this spreadsheet is 100's of rows long so I need a quick way to apply the following rules above. Also, the cell and ranges change by a factor of 10.

    So values would change like:
    Please Login or Register  to view this content.
    and it repeats like that for a very long time.

    Same thing with the range:
    Please Login or Register  to view this content.
    again and again.

    Is there is a quick way to do this, right now i'm manually adding each rule and changing the references and it is very time consuming.

    Thanks!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Conditional Formatting On Large Spreadsheet - 4 possible outcomes

    1. Assuming you are testing for the name in col R, remove the $.
    2. Highlight the range you nee to apply the CF to 1st, then create the rule
    3. if you are still having a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-16-2019
    Location
    South Dakota, United States
    MS-Off Ver
    2013
    Posts
    50

    Re: Conditional Formatting On Large Spreadsheet - 4 possible outcomes

    This is basically how I am doing it right now. I was really hoping there was a quicker way.

    Attached is what I was expecting, the name in column R could lead to four different colors. The real spreadsheet is significantly longer but I think the spreadsheet I attached gives a good idea of what I am looking for.

    I had a similar issue that someone on this forum helped me with on some IFERRORS that changed by "10s" and I tried to incorporate that into conditional formatting but I couldn't get it to work.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Conditional Formatting On Large Spreadsheet - 4 possible outcomes

    OK so your concern is how to reference just that cell that contains the name in each range?
    Is the range the same size each time?

  5. #5
    Registered User
    Join Date
    04-16-2019
    Location
    South Dakota, United States
    MS-Off Ver
    2013
    Posts
    50
    Quote Originally Posted by FDibbins View Post
    OK so your concern is how to reference just that cell that contains the name in each range?
    Is the range the same size each time?
    Yes & yes.

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

    Re: Conditional Formatting On Large Spreadsheet - 4 possible outcomes

    instead of R3 being fixed you cold get away with one conditional format for each person, applied to the whole sheet range

    instead of =$R$3= "Strum, James"

    =IF(MOD(ROW(A1),10)<>0,OFFSET( $R$3,INT(ROW(A1)/10)*10,0),"")= "Strum, James" and choose a colour

    If there are more than 5 people a vba approach may be possible that chooses the colours

    It assumes the ranges are the same size each time

  7. #7
    Registered User
    Join Date
    04-16-2019
    Location
    South Dakota, United States
    MS-Off Ver
    2013
    Posts
    50

    Re: Conditional Formatting On Large Spreadsheet - 4 possible outcomes

    It works, thank you so much!

+ 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] Conditional formatting coloursand over a large spreadsheet
    By Youngwolfz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-10-2018, 05:18 AM
  2. Conditional formatting each row in a large table
    By jmazo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-12-2015, 11:54 AM
  3. Replies: 7
    Last Post: 06-07-2015, 04:59 PM
  4. Conditional Formatting to Reflect 2 Outcomes
    By Andaw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2014, 07:26 AM
  5. [SOLVED] 3 Outcomes Conditional Formatting based on 4 blank/non blank cells
    By Supraman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2012, 06:21 AM
  6. Advice for auto-formatting large spreadsheet
    By sgordon25 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-26-2011, 03:14 PM
  7. Conditional formating-large spreadsheet
    By PCOR in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-09-2005, 02: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