+ Reply to Thread
Results 1 to 9 of 9

Conditional formatting on cells containing formulas

  1. #1
    Forum Contributor
    Join Date
    03-24-2010
    Location
    North West UK
    MS-Off Ver
    2013
    Posts
    112

    Conditional formatting on cells containing formulas

    Hi,
    I have an issue trying to get a conditional formatting set up on returned values from formulas. I have a worksheet with formulas in it that return values from another worksheet in the same workbook. I want to keep the formulas in the cells but impose a CF based on the value of the percentage that the formulas are bringing back. For example, if he returned value is between 0% and 5% then fill the cell green.

    So far no success. Any ideas out there?
    Last edited by Finalfrontier1976; 06-13-2018 at 10:31 AM.

  2. #2
    Forum Contributor
    Join Date
    06-07-2018
    Location
    Newcastle Upon Tyne, England
    MS-Off Ver
    365
    Posts
    143

    Re: Conditional formatting on cells containing formulas

    Can you upload the spreadsheet to make it easier to understand what you're wanting?

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional formatting on cells containing formulas

    mybe try with ISFORMULA (if exist in 2013 - I don't remember that) as a base

    isformula.jpg

  4. #4
    Forum Contributor
    Join Date
    03-24-2010
    Location
    North West UK
    MS-Off Ver
    2013
    Posts
    112

    Re: Conditional formatting on cells containing formulas

    Quote Originally Posted by davo3286 View Post
    Can you upload the spreadsheet to make it easier to understand what you're wanting?
    I'll do it now. The sheet is called North and it's the percentages that are returned via the formula. I want to conditional format the values but keep the formulas in the cells.

  5. #5
    Forum Contributor
    Join Date
    03-24-2010
    Location
    North West UK
    MS-Off Ver
    2013
    Posts
    112

    Re: Conditional formatting on cells containing formulas

    Quote Originally Posted by davo3286 View Post
    Can you upload the spreadsheet to make it easier to understand what you're wanting?
    Here it is
    Attached Files Attached Files
    Last edited by Finalfrontier1976; 06-13-2018 at 10:44 AM.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Conditional formatting on cells containing formulas

    To start with, your "percentages" are text, not numbers, you need to convert them 1st (if you look in the data sheets, you will see a small green triangle at the top of each cell in F - hover over it to see what the message is)

    You can fix this fairly easily by starting the vlookup with --....
    =IFERROR(--VLOOKUP($A12,INDIRECT("'"&B$11&"'!A:F"),6,FALSE),"")
    Format the cell as %

    Then, you should avoid using full-column references in INDIRECT, it will slow your file down. So maybe consider this, instead...
    =IFERROR(--VLOOKUP($A12,INDIRECT("'"&B$11&"'!A1:F1000"),6,FALSE),"")

    OK now that you have real numbers in your cells, you can apply CF based on those values. I see that your formulas in NORTH go down to row 5000 - do you really need that many? CF tends to become resource- hungry when used in large volumes like that, and will also slow your file down

    1. highlight the range you want to apply the conditional formatting to (say
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =B12<=.05
    format fill as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Conditional formatting on cells containing formulas

    Rule 08: Cross-posting Without Telling Us

    Your post does not comply with Rule 8 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question. If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    If you have less than 10 posts, do not try to copy and paste the link. Instead, type the link out in your thread.

    No further help to be offered, please, until the OP has complied with this request.

  8. #8
    Registered User
    Join Date
    12-23-2017
    Location
    India
    MS-Off Ver
    2010
    Posts
    1

    Re: Conditional formatting on cells containing formulas

    Mr. FDibbins,

    Nicely explained.

    Regards,
    Kaustubh

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Conditional formatting on cells containing formulas

    Quote Originally Posted by kaustubh123 View Post
    Mr. FDibbins,

    Nicely explained.

    Regards,
    Kaustubh
    Thanks for the kind words

+ 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. Conditional formatting to ignore cells with formulas
    By taylorsm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-17-2016, 10:56 AM
  2. [SOLVED] Conditional Formatting Cells containing formulas
    By sandy1977 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-20-2016, 06:40 PM
  3. [SOLVED] conditional formatting in cells with formulas
    By margierichardson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2015, 03:19 PM
  4. Conditional Formatting Cells That Contain Formulas - NO VBA!
    By BrianRomanowski in forum Excel General
    Replies: 2
    Last Post: 03-28-2013, 01:26 PM
  5. [SOLVED] Conditional Formatting on Cells with Formulas
    By rentb23 in forum Excel General
    Replies: 7
    Last Post: 10-31-2012, 08:29 AM
  6. Conditional Formatting for Cells with Formulas
    By cheddarthief in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-14-2011, 01:06 PM
  7. Replies: 3
    Last Post: 04-26-2007, 06:11 AM

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