Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Martin Williams
 
Posts: n/a
Default Can I use a function to detect whether a cell is highlighted?

I want to make the contents of a cell dependant on whether another cell is
highlighted in yellow or not. I can find no way of doing this. I'm using
Excel 2003, but would also like to use on Excel 2000.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Can I use a function to detect whether a cell is highlighted?

Try a UDF

Function CI(rng as range)
if rng.count = 1 then
CI = rng.interior.colorindex
endif
End Function

and use like

=IF(CI(A1)=6,...

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Martin Williams" <Martin wrote in
message ...
I want to make the contents of a cell dependant on whether another cell is
highlighted in yellow or not. I can find no way of doing this. I'm using
Excel 2003, but would also like to use on Excel 2000.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Can I use a function to detect whether a cell is highlighted?

Hi

Have a look he
http://www.cpearson.com/excel/colors.htm
This is one of Chip Pearson's pages - and his site is well worth
bookmarking.

Hope this helps.
Andy.

"Martin Williams" <Martin wrote in
message ...
I want to make the contents of a cell dependant on whether another cell is
highlighted in yellow or not. I can find no way of doing this. I'm using
Excel 2003, but would also like to use on Excel 2000.



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
Reading Cell Function??? roy.okinawa Excel Worksheet Functions 2 December 2nd 05 12:29 AM
IF Function to test formula in a cell Fred Holmes Excel Worksheet Functions 5 November 18th 05 01:04 AM
How do I copy a function with a called cell constant? MitchCarter1957 Excel Worksheet Functions 1 September 6th 05 05:26 PM
copying the function contained within a cell to anouther cell. DMB Excel Worksheet Functions 2 September 1st 05 05:49 PM
Function syntax to compare cell contents ES Excel Worksheet Functions 2 May 18th 05 03:53 PM


All times are GMT +1. The time now is 06:09 PM.

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"