Conditional Formatting With If Statements

Jun 12, 2007

I have a spreadsheet that has several columns containing names and data. In the first column, is a person's name, in the second, is a client number for that person, and in the third is the "last contact" date. I have a fourth "reference" column that has a conditional statement I was trying to use for formatting. For example, in A1 would be "John Doe," in B1 would be 987, and in C1 would be 06/10/07. The next row would have data for a different person. In column E I have my reference column.

If the last contact date is less than 4 days from the current date (which is in cell K2), the reference column (using an if formula) will produce the number 1. If it is 5 or 6 days from the current date, it produces the number 2, and if it is 7 or more, then it produces the number 3. Here is the exact formula:

=IF($C2+7<=$K$2, "1", IF($C2+5<=$K$2, "2", IF($C2+4>=$K$2, "3")))

What I want to happen is this: if the reference column produces a 1, then I want the corresponding row to turn red. This would only include the name, assigned number, and last contact date. I do not need the entire row to change a certain color. If a 2 is produced, I would like the row to turn yellow, and if a 3 is produced, I would like the row to turn green. This is going to run for many rows (up to 150). How do I do this using VBA? Keep in mind the numbers in the reference column will change if the "last contact date" is updated to a more current date.

View 6 Replies


ADVERTISEMENT

Conditional Formatting With IF/Then Statements

Dec 1, 2008

I need some help with applying some conditional formatting to cells that are populated with logic. I attached a portion of the sheet I am working on.

The cells in rows 41 and 42 will always be there so I am ok with them. The data in cells C43:I43 is loaded if a certain feature is selected on a separate sheet. If it is NOT selected, I need the values to not show up, (this part is already done with the formula in the cells) and i also need the conditional formatting to make all the cells white or blank. The same is true for the data in cells C46:I46

View 10 Replies View Related

Conditional Formatting With Multiple If / Or Statements

Aug 2, 2012

I am having difficulties trying to get some conditional formatting done.

For the below i need to highlight the 2012 YTD Column based on the following conditions, and i cant get the formula correct

GReen = If 2012 YTD meets /beating both 2012 target and 2011 Actual figures =And(D2

View 1 Replies View Related

Can Conditional Formatting Formulas Have Multiple Statements

Aug 20, 2009

Can you have IF and AND statements in Conditional formatting formulas?

I put this and I get an error: =IF(AND($G5=""($H5=<>"")) I was testing the water for adding and OR statment also. I really want if cell G5 is blank and cell H5 or I5 has text, then G5 should be red.

View 12 Replies View Related

Bank Statements - Formatting / Cell Formatting Won't Change?

Mar 22, 2013

I'm trying to analyse all of my bank statenments to see where all my money went!! I've got online banking so I thought it would be a relatively easy process of copying and pasting each month into excel.

Well, that in itself was easy, the problem is with the formatting of the financial numbers. Excel doesn't seem to recognise them as numbers, so at the moment I can't do any manipulation with the numbers. I have tried everything such as:

Format Cells > Number > Number and Currency
Copy and Paste Special > Values only
Copying into Notepad and back into Excel

Even if it appears to have changed the numbers to 'number' or 'currency' formatting by right justifying the numbers, if I try to add up the numbers using the SUM function, it doesn't want to know.

For some reason nothing seems to work - what am I missing?

For an example, I have attached a snippet of the spreadsheet with my starbucks transactions.

View 3 Replies View Related

Conditional Statements Using IFs Together

Aug 14, 2009

Trying to use several ifs together. Not sure, where my end if's need to be. I keep get Next w/o For error.

View 4 Replies View Related

Cell Formatting Using If Statements?

Apr 2, 2013

Is it possible to format a cells properties based on the value of the cell? I want to automatically format numbers that fall within certain ranges. For example, if I enter a number less than x, the number will be bold, in a blue color. If I enter a number greater than y, that number will be bold and red. All numbers outside the specified ranges would remain the default font. I would prefer that this property be set for a specified range of cells prior to entering any data, and automatically format as I enter the values.Can it be done?

View 8 Replies View Related

Conditional Statements Not Holding From Mac To PC

Sep 23, 2009

I have some fairly simple conditional statements to format date fields based on current date and upcoming dates. They work perfect on the mac, but when my co-workers open the excel sheet on their PC's it all whacks out?

how to create or save these so they open properly on both platforms?

View 14 Replies View Related

Conditional Statements To Check

Jan 27, 2010

I have an set of conditional statements to check which i'm not sure whether to use IF or CASE statement. Find below the

View 2 Replies View Related

Conditional Formating: If & And Type Statements

Jun 11, 2009

I have tried a variety of if & and type statements but I cannot get this 2 conditional format to work. Review attached spreadsheet.

View 3 Replies View Related

VBA Run Time Error 13 In Nested Conditional Statements?

Jul 17, 2012

I am using VBA to put a formula into a cell. The formula is

VB: = IFERROR(VLOOKUP(LEFT(A5,11), 'New Quarterly Report'!A$11:E$37,3,FALSE), " - ")

But when I try to put this into a cell using the value option, I get a run time error 13: Type Mismatch. No problems while im compiling it but it comes up only during execution

VB: Sheets("Summation Table Template").range("B4").Value = "= IFERROR(VLOOKUP(LEFT(A5,11),'New Quarterly Report'!A$11:E$37,3,FALSE), " - ")"

When I try to put only the VLOOKUP, it works fine.

VB: Sheets("Summation Table Template").range("B4").Value = "= VLOOKUP(LEFT(A5,11),'New Quarterly Report'!A$11:E$37,3,FALSE)"

But I want the cell to not show #N/A when a value through vlookup is not found. Other formulas Iv tried are to use ISERROR with IF and also to store the formaula in a string and then put it into Range.Value but it still gives me a run time error 13.

View 2 Replies View Related

Extending Previous 'conditional Statements Solution'

Jan 30, 2010

use of SUMPRODUCT and what I believe is called a double unary operator (--). Here's the original post with Paul's solution:

http://www.excelforum.com/excel-gene...-new-post.html

I've since discovered that a previously unknown column of data (I'm transcribing data from paper documents) needs to be included in the calculations. Specifically, the new column of data (shown in yellow in the attached example) has to be taken into consideration when counting product quantities. An explanatory pseudo code statement, also appearing in yellow in the example sheet, describes.

View 2 Replies View Related

To Get Average Or Count Of Column With Conditional Statements For Date

Feb 12, 2009

The data:
There are a number of columns, but we'll use the first 2 first. Column A has the dates from 1/1/2009 to 12/31/2009. Column B will has numbers, mainly 0-100. One cell will have a 'report date' which is just a date.

The formula needed:
I have a few cells labeled wk1, wk2, wk3. Week 1 will start with the 'report' date. wk1 I would like the Average of Column B IF the dates in Column A are within the 'wk'. wk1 = report date TO report date + 6. wk2 = report date + 7 TO report date + 13 and so on.

My goal is to have the formulas all set so that when we move to another report date and the raw data is added, I can just change the 'report date' and everything (the wk numbers) will automatically update with the new raw data.

The furthest I got was this, but it didn't work.
=AVERAGE(IF('A3:A33>=VALUE(D3)

View 9 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

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

Multiple IF Statements (skip The Next Two Statements Or The Result Will Be Changed Again)

Nov 22, 2008

I have three IF statements as below. the problem is if the first statement is true I want it to skip the next two statements or the result will be changed again.

View 2 Replies View Related

If Statements; List Any Date That Has Three Or More True Statements With The Coresponding Name

May 26, 2008

Sheet one will contain the following:

DATE A B C D E
2/22/2008TRUEFALSEFALSEFALSERon
2/23/2008FALSETRUETRUETRUEPhill
2/24/2008FALSETRUEFALSEFALSETracy
2/25/2008FALSEFALSEFALSEFALSESharon
2/26/2008TRUETRUEFALSETRUEBill

On sheet two I need to list any date that has three or more true statements with the coresponding name.

EXAMPLE:
2/23/2008Phill
2/26/2008 Bill

View 4 Replies View Related

Conditional Statements Using IF: Get A Discount (no Discount) Not To Apply The 10%

Dec 22, 2009

I have attached a 2004 excel document that has a conditional statement that says, if an amount is over $400.00 you get a 10% discount, else, the cell says no discount. That is working fine. I also have a absolute cell ready to do the math for the 10% amount. There is also a column that shows the discount amount and column that shows the amount after the discount has been applied. Since I have been just doing one calculation and auto-filling, my problem is, how do I get the record that doesn't get a discount (no discount) not to apply the 10%?

View 4 Replies View Related

Conditional Format - Can"And" Statements Be Used?

Dec 23, 2009

Let's say I have a cell which has a value between 0% and 100% and I want to set three criteria to change colors.

The problem is that I only have three conditions that are able to be set and recognize that I need the first to remain as is, so that it stays white if no data in there. Can it be done without a macro?

For instance:

Condition 1 - Cell Value Is - ("") - the result is shaded white (this works)

Condition 2 -Formula is - =F8>=(0.95),(and(F8<(0.99) - I want this green, but it isn't taking it? Can you put multiple statements in a conditional format if the answer is either true or false?

Condition 3 - Cell Value Is - <95% - Turn Red (This Works)

View 10 Replies View Related

Nested IF Statements: Combine The Two Statements

Oct 14, 2009

How can I combine the two below statements like these to make one "Or Statement"? Sorry...I haven't done excel and/or's in forever?

=IF(('Proj Info'!L10="main")*AND('Proj Info'!L9="CT"),"BMSVC",'Proj Info'!L9)

OR

=IF(('Proj Info'!L10="serv")*AND('Proj Info'!L9="CT"),"BMSVC",'Proj Info'!L9)

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







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