+ Reply to Thread
Results 1 to 2 of 2

How to create a "what if color is" formula

  1. #1
    Registered User
    Join Date
    03-22-2010
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    46

    How to create a "what if color is" formula

    I want my cell to return "True" if the color of cell is red and "False" if the color of cell is yellow.

    How can I create a formula with this condition?

    IF Column A= red, then Column B= "True"
    IF Column A= yellow, then Column B= "False"

    Thanks in advance!

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: How to create a "what if color is" formula

    How can I create a formula with this condition?
    Excel does not provide a built-in formula to check the color of a cell. You would have to use VBA code.

    However, if your colored cells are having their fill color set using Conditional Formatting then you can use the same condition in a formula.

    Example:

    If cells in column-A turn "red" when they contain the value of 1, then in column-B you could us a formula like: =if(A1=1,"True","")
    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.

+ 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