+ Reply to Thread
Results 1 to 2 of 2

Excel formulas based upon the color shading of a cell?

  1. #1
    DGBG
    Guest

    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. #2
    Ramakrishnan Rajamani
    Guest

    RE: Excel formulas based upon the color shading of a cell?

    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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1