+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    06-28-2006
    Posts
    24

    Cool =IF (cell color) then?

    Two part question:

    1. How do I structure an IF statement based on a specific cell color (e.g. if a cell is yellow, then perform function x)

    2. How do I know what color is what? Is there a pantone reference? A color "name" that excel uses?

    Thanks

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: =IF (cell color) then?

    why is the cell coloured?
    you can use conditional format to colour the cell then use the same criteria in a function
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    06-28-2006
    Posts
    24

    Re: =IF (cell color) then?

    The cells are not conditionally formatted...it is a manual process based on non-conditional input.

  4. #4
    Forum Guru Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007
    Posts
    3,441

    Re: =IF (cell color) then?

    Excel does not have a built in function to determine cell color. You would need to use VBA code to determine cell color.

    If you can use a VBA solution, search the Forum using terms like: Count cells by color, or Sum cells by color, etc.

    To martin's point, what logic are you using to determine cell color? If the fill color selection is a random process (no logic or consistency), then it will be a bit difficult to determine which cells to reference in any formula.

    Sum/Count Cells By Fill Or Background Color in Excel
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  5. #5
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130

    Re: =IF (cell color) then?

    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  6. #6
    Registered User
    Join Date
    06-17-2011
    Location
    Maine
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: =IF (cell color) then?

    I could use help with this also, to be specific, I am taking data and assigning it a confidence level. The confidence level is going to be indicated by the use of cell background color, ie a green cell indicates a +/- 10% confidence level and therefore my expected data rande is X+(X*.1) and X-(X*.1) and so on (X being my measured sampled.

    How do I create function so that IF the cell is one it uses one confidence level, if its another then a different one, etc?

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.2.0