Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi all
I am not sure if this is possible but I have a spreadsheet with two columns of dates. If the date in one column is less than the one in the other column I want to highlight the column in a different colour. However the dates are all different Example 12/04/05 13/05/05 04/01/05 13/04/05 05/05/05 03/03/05 Therefore I have tried to put an if statement in the conditional formatting but it gives me an error. I could create a separate IF statement column but this becomes a bit clumsy (there's actually loads of dates on different sheets) Therefore in summary I want to create conditional formatting on one column based on the values in another column. Is this possible? any help greatly appreciated Rexmann PS running Excel XP |
#2
![]() |
|||
|
|||
![]() Setup conditional formatting on both columns. In conditional formatting setup as follows: Colum A ... Cell Value is Greater than B1 colum B ... Cell Value is Greater than B1 In each change font colour to say RED. -- PeterG ------------------------------------------------------------------------ PeterG's Profile: http://www.excelforum.com/member.php...o&userid=16485 View this thread: http://www.excelforum.com/showthread...hreadid=381527 |
#3
![]() |
|||
|
|||
![]()
Hi Peter
thanks for the response and I tried to use your method but ut didn't work. Could you be a bit more specific (i'm a bit of an IT novice!) sorry to be a pain Rexmann "PeterG" wrote: Setup conditional formatting on both columns. In conditional formatting setup as follows: Colum A ... Cell Value is Greater than B1 colum B ... Cell Value is Greater than B1 In each change font colour to say RED. -- PeterG ------------------------------------------------------------------------ PeterG's Profile: http://www.excelforum.com/member.php...o&userid=16485 View this thread: http://www.excelforum.com/showthread...hreadid=381527 |
#4
![]() |
|||
|
|||
![]() Hi rexmann I have enclosed an example spreadsheet, its easier to look at that rather than try explain ... unzip it from this file. +-------------------------------------------------------------------+ |Filename: conditional example.zip | |Download: http://www.excelforum.com/attachment.php?postid=3529 | +-------------------------------------------------------------------+ -- PeterG ------------------------------------------------------------------------ PeterG's Profile: http://www.excelforum.com/member.php...o&userid=16485 View this thread: http://www.excelforum.com/showthread...hreadid=381527 |
#5
![]() |
|||
|
|||
![]() Hi rexmann, Try this 12/04/05 in cell a1 13/05/05 in cell b1 If you want to highlight a1 to change colors if it's lower than b1 then do this in cell a1 Format/Conditional Formatting/Formula is/=b1a1/Click Format button/Click Patterns Tab/Pick color/OK if you want to highlight b1 to change colors if its lower than a1 then do this in cell b1 Format/Conditional Formatting/Formual is/=b1<a1/Format/Click Patterns Tab/Pick color/OK Hope this helps -- keithl816 ------------------------------------------------------------------------ keithl816's Profile: http://www.excelforum.com/member.php...o&userid=21287 View this thread: http://www.excelforum.com/showthread...hreadid=381527 |
#6
![]() |
|||
|
|||
![]() Thats exactly how i done it... -- PeterG ------------------------------------------------------------------------ PeterG's Profile: http://www.excelforum.com/member.php...o&userid=16485 View this thread: http://www.excelforum.com/showthread...hreadid=381527 |
#7
![]() |
|||
|
|||
![]() rexmann Wrote: Hi all I am not sure if this is possible but I have a spreadsheet with two columns of dates. If the date in one column is less than the one in the other column I want to highlight the column in a different colour. However the dates are all different Example 12/04/05 13/05/05 04/01/05 13/04/05 05/05/05 03/03/05 Therefore I have tried to put an if statement in the conditional formatting but it gives me an error. I could create a separate IF statement column but this becomes a bit clumsy (there's actually loads of dates on different sheets) Therefore in summary I want to create conditional formatting on one column based on the values in another column. Is this possible? any help greatly appreciated Rexmann PS running Excel XP ASSUMING you want to highlight entries in Column A if the dates are earlier than those on Column B, do the following: 1. Go the cell in Column A (or if you have a range in Column A, highlight the range) 2. Go to "Format/Conditional Formatting" 3. A new window will pop up and on the first box on the left, choose "Formula Is" 4. On the second box to the right, choose "Equal To" 5. On the next box to the right, enter "=A1<B1" (without the quotes) 6. Click "Format" and you can choose the font/color that appeal to you 7. Click OK 8. Click OK If you want to do the reverse, i.e.. highlight Column B entries instead of Column A, change "Column A" in Step 1 outlined above, follow the rest of the steps and on Step 5, enter "=B1<A1" instead. Hope this is what you need. Regards. -- BenjieLop ------------------------------------------------------------------------ BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019 View this thread: http://www.excelforum.com/showthread...hreadid=381527 |
#8
![]() |
|||
|
|||
![]()
Hi all
thanks for the help - much appreciated and got it to work - realised my error (I forgot to put the equals sign in on first attempt - school boy error, I know!!!!) anyway thanks again and have a good weekend Rexmann "BenjieLop" wrote: rexmann Wrote: Hi all I am not sure if this is possible but I have a spreadsheet with two columns of dates. If the date in one column is less than the one in the other column I want to highlight the column in a different colour. However the dates are all different Example 12/04/05 13/05/05 04/01/05 13/04/05 05/05/05 03/03/05 Therefore I have tried to put an if statement in the conditional formatting but it gives me an error. I could create a separate IF statement column but this becomes a bit clumsy (there's actually loads of dates on different sheets) Therefore in summary I want to create conditional formatting on one column based on the values in another column. Is this possible? any help greatly appreciated Rexmann PS running Excel XP ASSUMING you want to highlight entries in Column A if the dates are earlier than those on Column B, do the following: 1. Go the cell in Column A (or if you have a range in Column A, highlight the range) 2. Go to "Format/Conditional Formatting" 3. A new window will pop up and on the first box on the left, choose "Formula Is" 4. On the second box to the right, choose "Equal To" 5. On the next box to the right, enter "=A1<B1" (without the quotes) 6. Click "Format" and you can choose the font/color that appeal to you 7. Click OK 8. Click OK If you want to do the reverse, i.e.. highlight Column B entries instead of Column A, change "Column A" in Step 1 outlined above, follow the rest of the steps and on Step 5, enter "=B1<A1" instead. Hope this is what you need. Regards. -- BenjieLop ------------------------------------------------------------------------ BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019 View this thread: http://www.excelforum.com/showthread...hreadid=381527 |
#9
![]() |
|||
|
|||
![]() Thank you for the feedback ... Regards. -- BenjieLop ------------------------------------------------------------------------ BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019 View this thread: http://www.excelforum.com/showthread...hreadid=381527 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional Formatting Error | Excel Worksheet Functions | |||
difficulty with conditional formatting | Excel Discussion (Misc queries) | |||
conditional formatting question | Excel Discussion (Misc queries) | |||
Determine cells that drive conditional formatting? | Excel Discussion (Misc queries) | |||
Conditional formatting not available in Excel | Excel Discussion (Misc queries) |