LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Extract value from formating

You can use the CHOOSE() function. See Excel Help. CHOOSE can handle up to
29 different picks.
--
Gary's Student


"tjack13" wrote:

Thanks, that did it. Since there were 8 colors, I was able to get by
with the seven levels of IF nesting. Do you know of a way to deal with
more color options?

Todd

Gary''s Student wrote:
First enter a little function to return the color of a cell:

Function colorcode(cell As Range) As Integer
colorcode = cell.Interior.ColorIndex
End Function

Then if you want to set the value of A1 based upon its color, enter the
formula:

=if(colorcode(A1)=15,"CANCELLED","")

You will probably need to re-calculate the worksheet if you change cell
colors because Excel may not realize the function colorcode will have to be
re-executed.


 
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
Extract 7 and 30 day max West22 Excel Discussion (Misc queries) 2 December 5th 07 12:55 AM
How can I extract each Max key value ? diglas1 via OfficeKB.com New Users to Excel 2 May 31st 06 11:06 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM
Extract Unique Values, Then Extract Again to Remove Suffixes Karl Burrows Excel Discussion (Misc queries) 23 June 25th 05 10:37 PM


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

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

About Us

"It's about Microsoft Excel"