Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I have some data in A column. for Ex: Column "A" ABC - this is in red color font - For red color 1 DEF - this is in black color font - for Black color 2 GHI - this is in green color font - for Green color 3 JKL - this is in yellow color font - for Yellow color 4 Based on the color of the fonts I need to assign numbers like 1,2,3,4,. Please let me know how can i proceed. Thanks and regards, Igneshwara reddy |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If A1 contains colored values, then
=fontcolor(A1) will return the number of the font. The UDF is: Function fontcolor(r As Range) fontcolor = r.Font.ColorIndex End Function -- Gary''s Student - gsnu200739 "Igneshwara reddy" wrote: Hi, I have some data in A column. for Ex: Column "A" ABC - this is in red color font - For red color 1 DEF - this is in black color font - for Black color 2 GHI - this is in green color font - for Green color 3 JKL - this is in yellow color font - for Yellow color 4 Based on the color of the fonts I need to assign numbers like 1,2,3,4,. Please let me know how can i proceed. Thanks and regards, Igneshwara reddy |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The font colors already have a number which you cannot change so you might as
well use them. Here is a partial list............ 1 Black 2 White 3 Red 4 Bright Green 5 Blue 6 Yellow 7 Pink 8 Turquoise 9 Dark Red 10 Green 11 Dark Blue 12 Dark Yellow 13 Violet 14 Teal 15 Gray-25% 16 Gray-50% See the Student's posting for a UDF to check the font colors you have. For more on colors in Excel see David McRitchie's site. http://www.mvps.org/dmcritchie/excel/colors.htm Gord Dibben MS Excel MVP On Thu, 23 Aug 2007 11:32:04 -0700, Igneshwara reddy wrote: Hi, I have some data in A column. for Ex: Column "A" ABC - this is in red color font - For red color 1 DEF - this is in black color font - for Black color 2 GHI - this is in green color font - for Green color 3 JKL - this is in yellow color font - for Yellow color 4 Based on the color of the fonts I need to assign numbers like 1,2,3,4,. Please let me know how can i proceed. Thanks and regards, Igneshwara reddy |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Lost highlighting and font colors; background colors on web pages | Excel Discussion (Misc queries) | |||
font colors | Excel Discussion (Misc queries) | |||
Reset should give a warning before resetting custom colors. | Setting up and Configuration of Excel | |||
Font Colors | Setting up and Configuration of Excel | |||
Can't format font colors or cell fill-in colors | Excel Discussion (Misc queries) |