+ Reply to Thread
Results 1 to 3 of 3

If function based on a conditional format

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    78

    If function based on a conditional format

    Hi all,

    I'm hopeful of being able to do this without a macro if possible.

    I have a conditional format that evaluates a range of cells and, for each cell where the condition is true, the cell next to it is filled in red.

    What I want to do is, where the cell is filled in red, have the text result of that formula display.

    For example.

    In cell G3 the actual result for April was $406,313.
    In cell H3 the budget was $306,297.
    In cell I3 the variance of $100,016.
    Because the variance is greater than 25% of the original budget figure, cell J3 is filled red as a result of the conditional formatting that I've put in place.

    What I would like is for the actual variance of 32.7% to be displayed in cell J3. But I only want the result of this formula to be displayed if the fill is red. If the fill is blank I don't want anything to display in the cell.


    Not sure if this is possible but, if so, please let me know.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,412

    Re: If function based on a conditional format

    Try:
    J3=I3/H3
    then format cell J3 with font colour: White
    Quang PT

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: If function based on a conditional format

    Thanks Bebo - that solution was almost disappointingly simple.


    Works perfectly though.

+ 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. Replies: 1
    Last Post: 08-19-2016, 03:57 PM
  2. [SOLVED] Conditional format based on other conditional formats?
    By TPDave in forum Excel General
    Replies: 4
    Last Post: 10-23-2014, 01:48 PM
  3. Conditional format based on Even/Odd????
    By farmerTom in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 02-16-2013, 04:11 PM
  4. Replies: 2
    Last Post: 09-26-2012, 04:43 AM
  5. Replies: 0
    Last Post: 05-20-2011, 02:33 PM
  6. Conditional Format based on a Conditional Format
    By purdue7997 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2010, 07:40 PM
  7. Conditional format based on VBA
    By Sharp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-08-2008, 07:05 AM

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