Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
cdb
 
Posts: n/a
Default Enter a value dependant on the colour of a cell

I have a spreadsheet that has been partially filled by someone else. They
have filled in all cells relating to a certain condition with the background
colour of yellow. Unfortunately this is the only indicator he has used, and I
now need to filter based on the colour selection.

What I am wanting to do is enter a value in a cell dependant on the colour
of a different cell. What I mean by this is that if the background colour of
B2 is yellow, put YES in A2 and so on down the rows.

Can anyone offer me some advice on this?

Cheers,

cdb
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Enter a value dependant on the colour of a cell

You need a simple UDF

Function ColorIndex(rng As Range)
If rng.Cells.Count 1 Then
ColorIndex = CVErr(xlErrRef)
Else
ColorIndex = rng.Interior.ColorIndex
End If
End Function

and use that in the worksheet like so

=If(ColorIndex(B2)=6,"YES","")

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"cdb" wrote in message
...
I have a spreadsheet that has been partially filled by someone else. They
have filled in all cells relating to a certain condition with the

background
colour of yellow. Unfortunately this is the only indicator he has used,

and I
now need to filter based on the colour selection.

What I am wanting to do is enter a value in a cell dependant on the colour
of a different cell. What I mean by this is that if the background colour

of
B2 is yellow, put YES in A2 and so on down the rows.

Can anyone offer me some advice on this?

Cheers,

cdb



  #3   Report Post  
Posted to microsoft.public.excel.misc
Paul Lautman
 
Posts: n/a
Default Enter a value dependant on the colour of a cell

cdb wrote:
I have a spreadsheet that has been partially filled by someone else.
They have filled in all cells relating to a certain condition with
the background colour of yellow. Unfortunately this is the only
indicator he has used, and I now need to filter based on the colour
selection.

What I am wanting to do is enter a value in a cell dependant on the
colour of a different cell. What I mean by this is that if the
background colour of B2 is yellow, put YES in A2 and so on down the
rows.

Can anyone offer me some advice on this?

Cheers,

cdb


I typed excel filter cell color into google and found this link on the first
page:
http://support.microsoft.com/Default.aspx?kbid=213923


  #4   Report Post  
Posted to microsoft.public.excel.misc
cdb
 
Posts: n/a
Default Enter a value dependant on the colour of a cell

Cheers,

Thanks for the help.

"Bob Phillips" wrote:

You need a simple UDF

Function ColorIndex(rng As Range)
If rng.Cells.Count 1 Then
ColorIndex = CVErr(xlErrRef)
Else
ColorIndex = rng.Interior.ColorIndex
End If
End Function

and use that in the worksheet like so

=If(ColorIndex(B2)=6,"YES","")

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"cdb" wrote in message
...
I have a spreadsheet that has been partially filled by someone else. They
have filled in all cells relating to a certain condition with the

background
colour of yellow. Unfortunately this is the only indicator he has used,

and I
now need to filter based on the colour selection.

What I am wanting to do is enter a value in a cell dependant on the colour
of a different cell. What I mean by this is that if the background colour

of
B2 is yellow, put YES in A2 and so on down the rows.

Can anyone offer me some advice on this?

Cheers,

cdb




  #5   Report Post  
Posted to microsoft.public.excel.misc
cdb
 
Posts: n/a
Default Enter a value dependant on the colour of a cell

Thanks for the help

"Paul Lautman" wrote:

cdb wrote:
I have a spreadsheet that has been partially filled by someone else.
They have filled in all cells relating to a certain condition with
the background colour of yellow. Unfortunately this is the only
indicator he has used, and I now need to filter based on the colour
selection.

What I am wanting to do is enter a value in a cell dependant on the
colour of a different cell. What I mean by this is that if the
background colour of B2 is yellow, put YES in A2 and so on down the
rows.

Can anyone offer me some advice on this?

Cheers,

cdb


I typed excel filter cell color into google and found this link on the first
page:
http://support.microsoft.com/Default.aspx?kbid=213923



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Format as a MACRO Gunjani Excel Worksheet Functions 3 March 29th 06 05:22 PM
Stop next cell being selected on Enter Ken G. Excel Discussion (Misc queries) 2 December 6th 05 08:21 AM
Stop next cell being selected on Enter Jeff Stevens Excel Discussion (Misc queries) 0 December 6th 05 07:55 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
enter a time into a cell, have the cell show two times the entry johnp Excel Worksheet Functions 3 May 2nd 05 12:08 AM


All times are GMT +1. The time now is 10:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"