Conditional Formatting From Separate Pages

Jan 9, 2008

Is there a formula I can enter into the conditional formula palette that will allow me to format cells on one sheet based on a match found on a second sheet? ....or do I have to use VBA to do this?

Here, specifically, is what I am trying to do:

Sheet1 A1:AA200 contains a list of names.
Sheet2 A1:A200 consists of a Range named MALE.
Sheet2 B1:B200 consists of a Range named FEMALE.

Consider, first...that some of the cells in BOTH named ranges may be blank.

I want to format all of the cells in Sheet1 A1:AA200 to turn green if a match is found in the Range named MALE....and turn the cells red if a match is found in the Range named FEMALE.

When I try to use the Range names in my formula...I get various errors.

if I need to use VBA to accomplish this. Writing VBA to do this should be relatively simple...but I would appreciate some sample code to use as a model, since my VBA coding skills are still in their infancy.

View 12 Replies


ADVERTISEMENT

Conditional Formatting Over Multiple Pages

Dec 17, 2012

I need setting up a conditional rule over 2 pages.

Page 1 displays a list of countries.

Page 2 pulls in the RSS feed from the BBC World News website.

I need to find a way to set a rule that will highlight the country on page 1 if it is mentioned anywhere in page 2.

View 7 Replies View Related

Conditional Formatting That References Two Separate Conditions

Aug 15, 2008

I am trying to use conditional formatting in Excel 2003 to indicate when certain tasks are overdue (by highlighting the cell in red). My problem is that I have multiple criteria. If my line item is a "priority" item, it is considered aged if not resolved after 2 days; if the line item is "routine", the item is not considered aged until after two weeks (14 days). My goal is:

1) I would like the "status" cell in column D (which says "open" or "closed") to turn red if the item is aged.

2) Aging depends on the "priority" status in column A .......

View 9 Replies View Related

Copy And Paste Conditional Formatting In Separate Columns?

Sep 23, 2011

I'm trying to figure out how to copy & paste the following conditional formatting down the column.

The conditional formatting I'm using is in cell A1, D1, G1, J1, M1 (so I have to Ctrl click each cell manually & I then choose to "format the values that rank in the:" "bottom 1" & format it green.

I want to copy and paste that all the way down column A, D, G, J, & M and have the conditial formatting pick for each row, not the whole column. eg. A2, D2, G2, J2, M2... A3, D3, G3, J3, M3...

View 7 Replies View Related

Print Sorted Parts Of Selection On Separate Pages

Mar 28, 2013

I have a macro that copies my selected area on one workseet, for example B2:M120 on Sheet 1, over to A10 on sheet 2, then prints sheet 2 and then clears the data that was just added leaving sheet 2 as a "clean" template for next use.

Is it possible to add code to the print macro that would look at column G of my selected area and print all rows that had say "cat" in column G on one sheet, all rows with "dog" on another set of sheet 2's, and repeats until all rows of my original selection have been printed?

I thought maybe paste the whole selection then filter, hide unwanted rows, print, repeat but I can't figure out how to repeat and alternate what rows are hidden.

I'm open to any way of doing this, we currently do it by repeating the "select area" but as my real life use replaces "cat" and "dog" with a 9 digit number we are having issues with some rows getting skipped while others get doubled up.

View 1 Replies View Related

Print Macro For Multiple Ranges And Graphs On One Worksheet To Separate Pages

Mar 26, 2014

There were 2 macros. One printed all of the defined ranges (40) on separate pages, and the other printed all the graphs ("charts" - 39) on separate pages. I tried to combine the VBA code to print each range and then the corresponding graph. Everything is still on separate pages, but it saved time because I didn't have to collate after printing. It seemed to work. Then I tried figure out if I could print them all to a specific tray of the printer as set in the workbook or as the printer default. Now both the combined macro and the original macro are giving errors.

Is the code I have correct to do what I am trying to do (print each range and then the graph all on separate pages)? Is there any way to put the output tray choice into the macro?

Sub Load_Data_Report()
'
' Load_Data_Report Macro (print all tables & graphs)
' Macro recorded 12/21/00 by xxx
'
' Keyboard Shortcut: Ctrl+j
'

[Code] ........

View 1 Replies View Related

Conditional Formatting - Two Different Fields Affect One Cells Formatting For Date?

Sep 16, 2013

A little background on what i am doing. I have a spreadsheet that tracks when i have blown the dust out of our computers. I have set up conditional formatting so that the text turns red after 300 days and the cell turns yellow after 600 days. However, some computers are in high dust environments. I would like the spreadsheet to tell me to blow the dust out of these sooner. see the attached sheet.

dust 1.xlsx

View 2 Replies View Related

Conditional Formatting Based On Another Cell Conditional Format

Mar 20, 2013

Is it possible to change the format of cell AI3 based on the format of cell C3 and D3? I have C3 and D3 set to turn red based on what is in cell C2 and D2. I would like the following done:

If AI3=C3 & C3 is red, format AI3 blue
If AI3=D3 & D3 is red, format AI3 blue
Otherwise, leave AI3 unformatted.

Possible???

View 3 Replies View Related

Macro Won't Execute Code To Put Focus On "print To X Pages Wide By X Pages Tall"

Feb 20, 2009

I'm trying to execute a macro and it won't put the focus (radio button) to select x pages wide by x pages tall in the Page Setup/Page/Scaling Area. I looked at the macro and can't find a setting in the code but yet the focus won't change. What can I do about this? In other words the radio button stays selected as "adjust to "" % of normal size. Here's the code...

View 2 Replies View Related

Conditional Statement In Vb For Two Separate Workbooks

Feb 20, 2009

I am trying to find a way where I can just enter the information into one and have it flood to the other.

worksheetA is the master sheet which contains data on all accounts - the order and number of entries on this account changes monthly.
worksheetB shows data only on a single account.

What I am looking to do is to take the account name from worksheetB find the data I entered in worksheetA and have that flow to the apporitate cells in worksheetB.

Something like this

cell on worksheetB displaying number of vehicles - if worksheetB(cell with the account name) = worksheetA(range of cells with multiplenames) if the two match somewhere on the list then display the number of vehicles from a cell in another coloum same row.

sorry if its confusing, tried my best to explain it. I'm sure it can be done with VB but just don't know that one much, is the syntax and language similar to the old ms basic?

View 7 Replies View Related

IF Statement Using Formatting Criteria (NOT Conditional Formatting)

May 5, 2009

Is there "code" for different formatting in a spreadsheet so you can use an IF statement to do something like:

if(A1=blue background,"Yes","No")

or

if(A1=red text,"Yes","No")

etc.?? But replace "blue background" and "red text" with some sort of number code? I want to compile a list of the items that are formatted with certain background colors and/or text colors and then organize only those items into a chart.

View 5 Replies View Related

VBA To Convert Conditional Formatting To Fixed Formatting?

Jul 5, 2013

Any VBA that I can put into a macro that will convert conditional formatting into fixed formatting..? So when the cell contents/formulas are deleted the formatting remains. Assume that the range I want to convert is A1:D200...

View 9 Replies View Related

Looping & Conditional Format: Finds A "J" It Will Apply Conditional Formatting To A Row Of 4 Cells Directly Adjacent?

Feb 9, 2009

I need to run a loop through a column of values (attachment col B) and when it finds a "J" it will apply conditional formatting to a row of 4 cells directly adjacent. The attachment is a theoretical before & after.

View 2 Replies View Related

Conditional Formatting - More Than 3

Dec 9, 2008

In a column, there are 4 option for each cell -
"PAYMENT DUE"
"PAID"
"UNDERPAID BY..."
'OVERPAID BY..."

These are filled in by a formula

I would like to make them 4 different colours but excel only allows 3 options

View 14 Replies View Related

If Then Or Conditional Formatting??

Mar 5, 2009

I have a hard time when it comes to "If then" statements and conditional formatting. I have some data that I am collecting and entering into a spreadsheet for a couple different companies. Once I receive paperwork from those companies for the data collected I mark the data with a blue colored text. I would like to have a second sheet that generates what companies have not sent me their paperwork. "If the data is black text, then generate <name of company> on second sheet." The list is small right now, but as the project continues it will grow very large and it will become difficult to track. I will attach a copy of the spreadsheet for you to see the situation. I would like to learn how to do these types of formulas, is there a tutorial geared towards these types of situations?

View 2 Replies View Related

Conditional Formatting With Vba...?

Dec 23, 2009

I seem to have a problem using conditional formatting with Vba in Excel 2003
When I run -

View 3 Replies View Related

Conditional Formatting As $D8 And The RC4 As $C8 In VBA

Nov 11, 2009

Must admit the R1C1 still confuses me, but somehow I have this working. Currently the RC4 displays in conditional format as $D8 and the RC4 as $C8, but I'm confused at how it knows to start at R8? Is there any way to make the formulas read ="=$D8=""No""" instead?

View 2 Replies View Related

Conditional Formatting More Than Once

Feb 3, 2010

I have two spreadsheet "book1" with data in it, "book2" that takes all the information from "book1" the cells are linked in "book2" from "book1" so when someone updates "book1" the information is viewable in "book2"

In "book2" where I am getting stuck is as follows,

Column A contains data "break time" that is formatted in HH:MM:SS column B contains a "total duration" in HH:MM:SS. what I need to do is if column A data is = to or more than 4% of column B then I want to turn the cell in column A "red" if it is less then turn it "green". I have tried conditional formatting and it appears to work the once only, I dont no if this is because its 2003 and not 2007??

What I need is to repeat the conditional format over and over again forever is there any code for this I can use?

View 9 Replies View Related

Conditional Formatting A Row

Oct 31, 2008

I have used conditional formatting various ways to format an individual cell. I was wondering does anyone know if it is possible to conditionally format a row? Eaxmple: If D7=Manager, then format A7 through Z7. If so, how would I go about setting that up?

View 3 Replies View Related

If/then/else Or Conditional Formatting?

Dec 15, 2009

I'm wanting to create a formula in column B that will return a value of 10 if column A is any value between 70% -100%, will return a value of 5 if column A is any value between 50% - 69%, and will return a value of 1 if column A is any value between 1% - 49%. Can you help me?

View 6 Replies View Related

If And Conditional Formatting?

Oct 29, 2013

I want to do an if (I think I do??) command so that if a1=b1, then the cell turns blue and if a1=0, the cell turns red, with the false statement just being blank.

View 3 Replies View Related

Conditional Formatting In VB

Apr 21, 2014

I have data in column B.

And if the below mentioned values are present in column "B" then the cell colour should change to "RED Colour"

Bombay
Mumbai
Bangalore

if any other values other than the above mentioned then the cell format should remain as is.

View 1 Replies View Related

Conditional Formatting To Get Rid Of #DIV/0!

Jun 11, 2008

I have my formulas in place and they are working. The reason why some are coming up with #DIV/0 is because I do not have the data to complete the calculation.

Is there a way to make the #DIV/0 error go away until I imput the data to complete the calculation? I was thinking there might be a way to do it with conditional formatting.

View 9 Replies View Related

Conditional Formatting Through VBA

Jun 30, 2008

Sub Macro1()
With Range("A1")
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:="=A1=B1"
.FormatConditions(1).Interior.ColorIndex = 3
.FormatConditions.Add Type:=xlExpression, Formula1:="=A1B1"
.FormatConditions(2).Interior.ColorIndex = 50
.AutoFill Destination:=Range("A1:A29"), Type:=xlFillDefault
End With
End Sub

If my active cell is NOT A1, the formula entered into conditional formatting is off. The range references get all messed up. For example, if my active cell is Say D5

Condition 1 is
=IT65533=IU65533
Condition 2 is
=IT65533IU65533

But if I run the code with A1 as my active cell, it gets entered correctly as
Condition 1
=A1=B1
Condition 2
=A1B1

View 9 Replies View Related

Set Conditional Formatting Via VBA

Jul 18, 2008

I would like to add conditional formatting for the whole row based on whether the value of cells in column A is "CON".

For Each c In r
If c.Value = "CON" Then
c.EntireRow.FormatConditions.Delete
c.EntireRow.FormatConditions.Add Type:=xlExpression, Formula1:=c.Address = "OK"
c.EntireRow.FormatConditions(1).Interior.ColorIndex = 35
end if
next c
the "CON" is a formula and can later take the value "OK".

The conditional formatting should highlight the whole row as green when that happens.

View 9 Replies View Related

Conditional Formatting / VBA

Feb 25, 2009

I am not sure if this requires conditional formatting/vba function

If I enter something in cell A1 and leave blank in cell c1, in cell c1 it should print the message "Required Entry, Please Fill up". and this condition should be applied to entire column, where ever in column A there is some values and column c is empty this condition should apply.

View 9 Replies View Related

Conditional Formatting

Apr 27, 2006

I don’t know if it is possible in Excel 2000 but I have a simple IF formula in a cell that gives "" on certain conditions.The problem I have is that in another cell I apply conditional formatting – green >100%, red<100% e.g.

Is it possible to have a third conditional format that gives a blank if the cell is ""?

At the moment it just turns out green as it doesn’t seem to recognise the cell as actually been blank as it has a formula within it.I have tried ISBLANK etc.

View 3 Replies View Related

Conditional Formatting > 3

Jun 30, 2006

Conditional Formatting > 3

Private Sub Worksheet_Change(ByVal Target As Range)
Dim icolor As Integer
Dim cr As Date
cr = Today()
If Not Intersect(Target, Range("C5:M44")) Is Nothing Then
Select Case Target
Case "X"
icolor = 10
Case "N/A"
icolor = 2
Case cr.Value >= Today()
icolor = 6
Case cr.Value <= Today()
icolor = 3
Case "DATE?"
icolor = 8
Case Else
icolor = 2
End Select
Target.Interior.ColorIndex = icolor
End If

End Sub

View 7 Replies View Related

Conditional Formatting With Vba

Oct 12, 2006

I've written a macro that copies a range of cells (size varies) from Sheet1 to Sheet2, deletes the conditional formatting already there, and applies fresh conditional formatting to Sheet2 on the new range. But, the expression in the FormatConditions is way different than what I specified in the code. Here's my Conditional Formatting

Set mt1 = tData.Columns(1). Find(What:="", After:=tData.Range("A1"), LookIn:=xlValues)
tData.Range("A2:A" & mt1.Row - 1).FormatConditions.Delete
With tData.Range("A2:A3" & mt1.Row - 1).FormatConditions _
.Add(xlExpression, , "=A2=A1")
.Font.ColorIndex = 2
End With

When I look in cell A2, I see this for the expression: "=A65301=A65300". Any idea why it isn't starting with "=A2=A1" as I specified in the code?

View 7 Replies View Related

Apply Conditional Formatting Using VBA And UDF?

Sep 14, 2012

I am trying to create a macro (which will go in an add-in, using Excel 2007) which will apply a custom format to any selected cells which have their formulae hidden (Format Cells, Protection, Hidden). A similar macro works fine for locked cells.

Here is the UDF I wrote, which returns True/False based on the Hidden status of a cell:


VB:
Public Function Hidden(Check_Cell As Range)
Hidden = Check_Cell.FormulaHidden = True
End Function

[Code]....

just place all three pieces of code into a module, and change the first line of the two macros to a standard "Sub Macro1()" type format.

View 9 Replies View Related







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