Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DGBG
 
Posts: n/a
Default Excel formulas based upon the color shading of a cell?

Is there a way to execute a formula in Excel that references the current
color shading of a cell so that I can place a value in a corresponding cell?

Example:

If cell A1 is shaded green the cell A10=8
  #2   Report Post  
Ramakrishnan Rajamani
 
Posts: n/a
Default

Try this. Might work

If Range("A1").Interior.ColorIndex = 4 Then
Range("A10").Value = 8
ElseIf Range("A1").Interior.ColorIndex = 5 Then
Range("A10").Value = 10
ElseIf Range("A1").Interior.ColorIndex = 6 Then
Range("A10").Value = 12
Else
-- -- -- -- --
End If


"DGBG" wrote:

Is there a way to execute a formula in Excel that references the current
color shading of a cell so that I can place a value in a corresponding cell?

Example:

If cell A1 is shaded green the cell A10=8

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
excel formulas tony Excel Worksheet Functions 1 March 27th 05 11:24 PM
can you place an alarm or tickler mechanism within excel based on. Bob K Excel Worksheet Functions 0 March 23rd 05 08:31 PM
can you place an alarm or tickler mechanism within excel based on. jetz Excel Worksheet Functions 0 March 23rd 05 08:29 PM
How Excel & ACCPAC 6.1 calculate formulas???? Bass Mama1 Excel Worksheet Functions 1 February 9th 05 03:25 PM
Excel Formulas albebach Excel Discussion (Misc queries) 1 February 2nd 05 09:52 PM


All times are GMT +1. The time now is 01:25 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"