Using Three Condition For Formatting Color Of Tabs?

Aug 21, 2014

I am using the following code that I got from this forum to color tabs. But I can only get it to do two colors. Is there a way to get three conditional colors of tabs?

Private Sub Worksheet_Change(ByVal Target As Range)
With Me
Select Case .Range("D13").Value
Case Is < 20
.Tab.Color = vbGreen
Case Is > 20, Is < 30
.Tab.Color = vbBlue
Case Is > 30, Is < 100
.Tab.Color = vbRed
End Select
End With
End Sub

View 8 Replies


ADVERTISEMENT

Conditional Formatting :: Condition 1 Override Condition 2?

Feb 29, 2008

I'm having trouble with the two formulas working in conjuction with each other.

Condition 1:
=(MOD(ROW(),2)=0)*(COUNTA(3:3))

Condition 2:
=TODAY()>=A1

"Condition 1" seems to override "Condition 2"? Ever see that?

View 9 Replies View Related

Delete Tabs According To Given Condition

Dec 16, 2009

I have an excel workbook with over 900 tabs included. The tabs are named as LS-XXXXXX Ron, LS-XXXXXX Ollie, etc.

I need a macro so that I can delete all the tabs for which the name is
LS-XXXXX Ron. (XXXXXX defines some numbers).

View 9 Replies View Related

Colouring Tabs Dependant On True / False Condition

Feb 21, 2010

I have "borrowed" the below code from a previous solved post, however am unsure how to adapt it.

View 7 Replies View Related

Sort Tabs By Color And Sort Color Groups Alphabetically

Oct 14, 2012

I've located the following color sort VBA that sorts worksheets by color and it is working well. I'm trying to modify the code to sort each of the "color grouped" sheets alphabetically. That is, sort by color and then each color group sorted alphabetically.

VB:
Sub SortWorksheetsByColor(Optional ByVal SortByAsc As Boolean = True)

Dim i As Long
Dim j As Long
Dim ShtC() As Long
Dim ShtN() As String
Dim t, n As Long
Dim lngSU As Long

[Code] .....

View 5 Replies View Related

Row Conditional Formatting: Different Fill Color (same Color For All)

Apr 8, 2009

I want every even row that has a value in it to have a different fill color (same color for all). how to do it? I am using 2007.

View 5 Replies View Related

Code To Color Excel Sheet Tabs

Apr 14, 2009

I need a macro code to color 31 excel sheet tabs with shade cyan with a click.

View 9 Replies View Related

Count Sheet Tabs Based On Color

Jun 12, 2008

I have a worksheet with like lots of color coded tabs and the tabs increase everyday. The tabs are categorized based on 6 colors. I created a first tab in order to give how many tabs i have another each color. Is that doable in excel. Do I need a macro for this.

All I want is each time i open the excel sheet the first tab will be automatically updated with how many tabs I have under each color instead of me counting the tabs.

View 6 Replies View Related

Tabs To Have Same Formatting?

Feb 1, 2012

How can I get my tabs to collaborate. If I make a change to the main tab I would like it to carry out through the rest of the tabs. Like the table format and formulas.

View 1 Replies View Related

Color Whole Row If Condition Met In A Column

Sep 13, 2007

I have a spreadsheet and in the "I" column, it can read either "OPEN" r "CLOSED". If that reads "OPEN", I want the whole row to turn green, if "CLOSED" I want it to turn red. I have fiddled around with conditional formatting and can seem only to change that one cell!

View 4 Replies View Related

2 Color Conditional Formatting Color

Dec 18, 2013

I have a column of student grades & accumulated credits.

1.) I would like to apply a CF formula which turns the cell GREEN when a score is above 65 else RED below 65.

2.) Also I would like to turn another cell GREEN if a student has accumulated the required # of credits listed in another cell else RED.

View 4 Replies View Related

Change Color Of Part Of Row If Condition Met

Dec 6, 2012

I'm working on a macro to change the color of the row between column W to AN if in column K the value is "FCA" (without quotes).

So far I have this, but it doesn't work:

Code:
Sub Test()
For Each cell In Range("K1", Cells(Rows.Count, "K").End(xlUp))
If InStr(1, cell, "FCA") Then
Range("W" & cell.Row & ":AN" & cell.Row).Interior.ColorIndex = 3
End If
Next cell
End Sub

View 1 Replies View Related

How To Color Excel Cells In Condition

Jan 10, 2014

I want to color cells if it is texted as ULF by green, if it is texted as OS by red in the all row down, it easy but I can't.

View 2 Replies View Related

Change Cell Color On Condition

Oct 3, 2006

I need to change automatically the color of a cell (let say A1) to green if the cell content is YES and to red if content is NO. Which function to use?

View 2 Replies View Related

Color Code -a Specific End Condition

May 12, 2007

I searched through the files and found a macro that works for me to color code my spreadsheets in Excle. Hwoever. How can I set it to stop when Cloumn G = the word "Created"?

Sub prettyPattern2()
Dim lRow As Range
For Each lRow In Range("A6:K500").Rows
Select Case lRow.Row Mod 2
Case Is = 1: lRow.Interior.ColorIndex = 34
Case Else: lRow.Interior.ColorIndex = 35
End Select
Next lRow
End Sub

View 8 Replies View Related

Color Coding Condition Format

May 15, 2007

i'm trying to figure out a conditional formatting that if a cell is greater or equal to another cell - color a cell "GREEn"

otherwise...color the cell "red"

View 7 Replies View Related

Color Entire Row When Cell Condition Met

Sep 15, 2007

Using conditional formatting is it possible shade an entire row when a cell is = to 0. I am currently creating a spreadsheet for a small amount of inventory. I am manually editing the amount of product available.

What I want to happen is when I replace them number with the text ‘Sold Out’ I want then entire row to automatically grey that row out. Is it possible to make this happen using conditional formatting?

View 9 Replies View Related

How To Rename Worksheet Tabs Using Formula And Formatting

Jan 27, 2014

I have a workbook with 30+ worksheets

named 23 Wed, 24 Thur, 25 Fri, etc etc

meaning April 23, 2014 Wednesday, April 24, 2014 Thursday, etc etc

The next project may start on May 19, 2014 Monday - so I have to rename each worksheet beginning with 19 Mon, etc etc

Renaming each worksheet manually takes a long time and is prone to error

I would like to just rename the first worksheet to start date of May 19, 2014 and have the rest renamed automatically.

View 4 Replies View Related

Fill Color Of Autoshapes Condition On Cell Value?

Mar 2, 2013

fill color of autoshapes on condition depend on cell value

View 1 Replies View Related

Find Out Format Condition Cell Color?

Aug 4, 2014

I set format condition in range by tool bar(=if formula is yes then display cell.interior.colorindex=3), but I have no idea how to find out (.address) the red colour cells are displayed in range with VBA?

View 5 Replies View Related

Color Cell If First Character Meets Condition

Aug 4, 2007

I currently have a report that I have code on that will change the color of a cell based on whats in the cell.( Code posted below) However I also need to look at $J and if the first letter of the value in that column is a "z" then I would like to change that whole row to icolor 13 (purple).

For example J14 might be "Z-Thomas". if it does I would like that row 14 to change to purple.

Also I would prefer that the solution be in VB, so that we do not have to do something in VB with the fix below AND do something in Conditional Formatting.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim icolor As Integer

If Not Intersect(Target, Range("$A:$E")) Is Nothing Then
Select Case Target
Case "y", "Y"
icolor = 4
Case "n", "N"
icolor = 3
Case "?"
icolor = 6

View 9 Replies View Related

Cell Color Fill Depending On Condition Of 2 Other Cells

Jun 23, 2009

Afternoon everyone i am having abit of trouble working on an excel 2007 spreadsheet. In cell I1 i have a tab called Color. i want the cells below I1 to be filled with one of 3 colors green, yellow, or red depending on whats in cell F "Status" (closed or open - in progress) and cell G ECD for estimated completion date.

Green - i need it to fill green if status is closed. Yellow - need it to fill yellow if ECD is any date greater than today and if status is open. Red - need it to fill red if ECD is todays date or older and status is open.

View 3 Replies View Related

Change Color Of A Range Of Cells When Condition Is In Just One Cell

Sep 17, 2012

I have a conditional cell that change color or not if condition...OK so far. Now, how can I change the color of a range of cells when condition is in just one cell. Ex:

If C15>=150, change (C3;C20) to yellow.

I really can't find the way to do it.

View 2 Replies View Related

Color Fill Multiple Rows Based On Condition

Mar 22, 2007

Is there a way to color fill an entire row based on a value in a certain column? Say I have a large file and one column is "yes" or "no" If I wanted all of the "yes" rows to be colored -

View 5 Replies View Related

Color Rows For All Cells In 1 Column Meeting Condition

Oct 26, 2007

A friend is trying to change an entire row's color based on a specific cell's value in that row. He cannot use conditional formatting. This is the code he's tried, to no avail:

Sub temp()
totalrows = ActiveSheet.UsedRange.Rows.Count
For Row = totalrows To 2 Step -1
If Cells(Row, 25).Value = 4 Then
Rows(Row).Select
Selection.Font.ColorIndex = 3
End If
Next Row
End Sub

View 2 Replies View Related

Conditional Formatting - Cell Color Based On Range Of Cell Color

Aug 9, 2013

Summary of performance of various products against target is as follows,

Product vs Target
Color Code
Result

CH4OH
Green
1.0

[Code] ........

I need the final result automated as follows,

If 2 green of the 4 products, then final result Gree
If 2 Amber of the 4 products, then final result amber
If 2 Red of the 4 products, final result Red

Is there a way to automate this?

View 8 Replies View Related

Formatting Until A Condition Is Met

Jan 26, 2009

I have the following code which prints the number of time steps required and displays it as t0, t1, t2 etc how can I make all the numbers subscript? i.e until the number of time steps = the total time.

View 2 Replies View Related

Color Table Rows Where Specific Cell In Row Matches Condition

Jul 2, 2008

I have a selection on a worksheet that has 4 consistent columns (A, B, C, and D) each with a variable number of rows all containing string type data. With this data I want to use Conditional Formatting so that when I have a string value of X in column D for any row, that whole row with the X in column D has it's color change to say grey, this should happen regardless of what strings are in Columns A, B, or C.

Below is the way I've been trying to do this thus far and failing, when I run this code below I can only get it to grey out the cell with the X not the whole row.

Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _
Formula1:="=""x"""
Selection.FormatConditions(1) . Interior.ColorIndex = 16

View 4 Replies View Related

Condition Formatting By Percentage?

Jun 29, 2014

I would like to format a number of cells depending on the percentage of another cell.

I have a cell 'Seats" that has a number in it. In other columns, 'Stop1', 'Stop2', 'Stop3', are vaious numbers. I would like to format the Stop cells according to how close (or over) the number is that is in the 'Seats' cell. For example, if Seats is 30, Stop 1 is 15, it would be a medium red. Stop 2 is 30 (or over), it would be red. If Stop 3 is 5, then white. Basically a percentage scale of color depending on the number in the Seats field.

View 1 Replies View Related

Condition Formatting In Cells With No Value

Mar 1, 2010

I have a workbook (column K) set with the following format conditions:-

Cond.1 - =(I3="declined")
Cond. 2 - =(G3>0)
Cond. 3 - =(K3

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved