+ Reply to Thread
Results 1 to 2 of 2

if cell color is red, then fail, if not then pass. Any formula? VBA code

  1. #1
    Registered User
    Join Date
    09-26-2014
    Location
    South Africa
    MS-Off Ver
    2010
    Posts
    2

    if cell color is red, then fail, if not then pass. Any formula? VBA code

    Looking at an excel formula or VBA code to look at the color of each cell in column C. If color is RED, then put Fail in Column D. If color is not RED, then put Pass in column D.
    Please help. See attached file.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: if cell color is red, then fail, if not then pass. Any formula? VBA code

    Your example doesnt contain any colours however to check the colour of a cell you reference the .Interior.ColorIndex

    so a function to return the colour would be:

    Please Login or Register  to view this content.
    then check for any that return 3

+ 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. [SOLVED] Formula for pass,fail,credit(if,and,or)
    By cathal1292 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-02-2016, 06:01 AM
  2. [SOLVED] Need help with formula to return value of Pass or Fail
    By bearligirl89 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-15-2013, 01:06 PM
  3. [SOLVED] Need a formula for pass/fail based on no. of Y answers but automatically fail if 3a is N
    By Researcher1111 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-15-2013, 10:20 PM
  4. Help with Pass / Fail Formula
    By milovisk in forum Excel General
    Replies: 4
    Last Post: 03-20-2012, 02:57 PM
  5. Formula Help with Pass/Fail function
    By Spyroviper in forum Excel General
    Replies: 3
    Last Post: 02-04-2009, 01:02 PM

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