+ Reply to Thread
Results 1 to 3 of 3

Using Formatting as the Condition in an IF statement

  1. #1
    Registered User
    Join Date
    01-04-2014
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    15

    Using Formatting as the Condition in an IF statement

    Is there a way to use the color fill in a cell to return a value to that cell or an adjacent one? IE if the cell is filled green value should be 1, if blue value should be 2?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Using Formatting as the Condition in an IF statement

    No, NAFAIAA. You could maybe use VBA but, as formatting isn't data, you might find that any formulae don't respond to changes immediately.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Using Formatting as the Condition in an IF statement

    As TMS said, not without VBA. But if there is any logic as to why the cells are colored the way they are, you may be able to use that same logic in a formula.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA for IF CONDITION STATEMENT
    By RAJ008 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2018, 11:34 AM
  2. Condition for IF Statement
    By ihaque in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-21-2016, 04:50 AM
  3. Condition formatting of multiple condition formatted cells
    By merrin84 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-22-2015, 05:08 PM
  4. if statement with and condition
    By gasniger in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-24-2015, 08:54 PM
  5. condition:IF statement
    By MAHMUZ in forum Excel General
    Replies: 4
    Last Post: 10-08-2010, 02:46 PM
  6. [SOLVED] IF statement and color formatting for cell B1 for condition in A1
    By Rossta in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-26-2006, 07:40 PM
  7. [SOLVED] Condition Statement
    By Django in forum Excel General
    Replies: 5
    Last Post: 08-26-2005, 02:05 PM

Tags for this Thread

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