Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / April 2008

Tip: Looking for answers? Try searching our database.

Font color dipicts which formula to use

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nbaker - 25 Apr 2008 21:46 GMT
Is there a way in Excel to have two different formulas and if the number in
the cell color in black it uses one formula and if the color of the number in
the cell is red it uses a different formula?

Example:
40 hours of payroll multiplies the hourly wage by the 40 hours if
43 hours in red color font the formula would say if 40 > then multiply the
40 hours by the regular hourly wage and the 3 by a differently wage, but if
the font color was still black it would multiply all 43 hours by the regular
wage?
David M - 25 Apr 2008 22:27 GMT
If you are using 2007, when on the "Home" ribbon, go down to "Styles" from
there, go into "Conditional Formatting" Go down all the way to the bottom and
create the new rule.

Of course, you first want to select all the Rows/Columns that you are
wanting to apply the rule to. Hope this has been of assistance!
Dave - 25 Apr 2008 23:48 GMT
Hi,
If you are not using xl2007, it's a bit more complex. You can't change the
formula according to font colour without using a macro. But you can use one
of the criteria that you used to colour the cells in the first place, and put
it into an IF formula.
eg:
IF(criteria_Black,Formula1,Formula2)
This says that if the text is black, use formula1, otherwise use Formula2.
If you need help with the syntax of the IF formula, supply details of the
colour criteria and the formulas you want to use.
Regards - Dave.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.