Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2014, 08:17 AM
sky474 sky474 is offline How to change the font color of cell values Windows XP How to change the font color of cell values Office 2007
Novice
How to change the font color of cell values
 
Join Date: Mar 2014
Posts: 8
sky474 is on a distinguished road
Default How to change the font color of cell values

I have around 400 values in each cell A2 and A3. Now I want to change the font color of each values in A3 based on values in A2 with some conditions. If the value in A3 is equal to value in A2 then color should be black, if value in A3 is greater than A2 then color should be red and if value in A3 is less than A2 then color should be green.
Can it be done with Conditional Formatting?
If yes, then please tell me how to do it?
Reply With Quote
  #2  
Old 03-04-2014, 12:48 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline How to change the font color of cell values Windows 7 64bit How to change the font color of cell values Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,772
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Hi and welcome do you mean you have 400 values in one cell ?
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 03-05-2014, 08:59 AM
sky474 sky474 is offline How to change the font color of cell values Windows XP How to change the font color of cell values Office 2007
Novice
How to change the font color of cell values
 
Join Date: Mar 2014
Posts: 8
sky474 is on a distinguished road
Default

Sorry for my mistake.
Actually I have values in cell A from A2 to A400 and in cell B from B2 to B400.
Now I want to apply a formatting or formula for cell B2 to B400 with these conditions.

If value in B is equal to value in A then font color is black.
If value in B greater than value in A then font color is red.
If value in B is less than value in A then font color is green.

I want to apply these conditions only on cell B.
I think I have explained my problem clearly this time. I have also attached a sample of my worksheet.
Attached Files
File Type: xls Sample.xls (24.0 KB, 11 views)
Reply With Quote
  #4  
Old 03-06-2014, 08:36 AM
gebobs gebobs is offline How to change the font color of cell values Windows 7 64bit How to change the font color of cell values Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

By cell, you mean column.
Reply With Quote
  #5  
Old 03-06-2014, 08:43 AM
sky474 sky474 is offline How to change the font color of cell values Windows XP How to change the font color of cell values Office 2007
Novice
How to change the font color of cell values
 
Join Date: Mar 2014
Posts: 8
sky474 is on a distinguished road
Default

Yes, I mean B column.
Can anyone please tell me that is it possible with any formula or additional settings or not ?
Reply With Quote
  #6  
Old 03-06-2014, 08:47 AM
gebobs gebobs is offline How to change the font color of cell values Windows 7 64bit How to change the font color of cell values Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Select all the values in column B. Go to conditional formatting and New Rule.

Format Only Cells That Contain

Set condition to "equal to".

For the range, type in "=$A2". If you select the cell to enter this, be sure to delete the $ between the A and the 2.

Set your formatting. Press OK. Repeat for the other rules accordingly.
Attached Files
File Type: xls Sample.xls (25.0 KB, 10 views)
Reply With Quote
  #7  
Old 03-06-2014, 09:03 AM
sky474 sky474 is offline How to change the font color of cell values Windows XP How to change the font color of cell values Office 2007
Novice
How to change the font color of cell values
 
Join Date: Mar 2014
Posts: 8
sky474 is on a distinguished road
Default

Quote:
Originally Posted by gebobs View Post
Select all the values in column B. Go to conditional formatting and New Rule.

Format Only Cells That Contain

Set condition to "equal to".

For the range, type in "=$A2". If you select the cell to enter this, be sure to delete the $ between the A and the 2.

Set your formatting. Press OK. Repeat for the other rules accordingly.
There are 6 type of rule in New formatting rule. Which one I should select and will you please explain more clearly about the range you have written ?
"=$A2" & be sure to delete the $ between the A and the 2. I did not get this one.
Reply With Quote
  #8  
Old 03-06-2014, 09:15 AM
gebobs gebobs is offline How to change the font color of cell values Windows 7 64bit How to change the font color of cell values Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

I attached a copy of you sheet with the formatting rules you specified.

Of the six rule types, use the second: Format Only Cells That Contain

Using the range "=$A2" (don't use the quotes) makes the range relative for rows and absolute for the column. You don't really need the $ before the A either. Since you are only doing this over one column, absolute reference for the column is unnecessary.

See attached screen capture.
Attached Images
File Type: jpg Capture.JPG (42.6 KB, 18 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word macro doesn't change font color Spideriffic Word VBA 8 11-04-2015 03:47 AM
Change Cell Color Based On % Complete jrfoley3 Project 1 05-30-2013 05:24 AM
how to search and replace BOLD text >> font color change? dylansmith Word 4 03-12-2013 09:51 PM
How to change the font color of cell values change default font color to wdRed tinfanide Word VBA 6 06-07-2012 06:48 AM
change values based on cell ubns Excel 1 05-21-2012 06:28 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:30 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft