ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Change FORMAT (https://www.excelbanter.com/excel-discussion-misc-queries/33437-change-format.html)

viddom

Change FORMAT
 
I am just a beginner and I would like to change the format of as cell
according to a condition in another cell.

First example:I have a cell A3 that contains a text, and I want to change it
format to BOLD and change the background to BLUE when A1=M

Second example:I have a cell A3 that contains a text, and I want to change
it format to BOLD and change the background to BLUE when A1 has a GREEN
background

Please help

Dave Peterson

You're gonna need a User defined function to get the value of a color.

See Chip Pearson's site for a nice version:
http://www.cpearson.com/excel/colors.htm
Look for: Returning The ColorIndex Of A Cell

Then you can use that UDF in the conditional formatting's "formula is" box.

viddom wrote:

I am just a beginner and I would like to change the format of as cell
according to a condition in another cell.

First example:I have a cell A3 that contains a text, and I want to change it
format to BOLD and change the background to BLUE when A1=M

Second example:I have a cell A3 that contains a text, and I want to change
it format to BOLD and change the background to BLUE when A1 has a GREEN
background

Please help


--

Dave Peterson


All times are GMT +1. The time now is 10:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com