+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting Over a Large Range Not Working Properly

  1. #1
    Registered User
    Join Date
    03-11-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    30

    Conditional Formatting Over a Large Range Not Working Properly

    Ok...this is my first post on this forum. I tried looking around here and elsewhere for an answer to this but to no avail. I'm hoping someone here can help me!

    I'm trying to apply conditional formatting over a large range of data, based on the parameters below.

    Formatting is applied to columns O through IT. Affected rows are 16 and 17.

    The data in row 16 is a sum of the data in rows 13-15. The data in rows 13-15 is derived from Vlookup formulas.

    Row 17 is derived from a Vlookup formula.

    I am formatting based on three groups. If the data in row 19 is within one of three ranges relative to row 18 it returns different results. I'm using these formatting formulas, in this order, with the "Stop if True" button checked:


    =O17&"">=(0.95*O16&"")

    =O17&"">=(0.85*O16&"")

    =O17&"">=(0.75*O16&"")

    The range of the formatting is =$O$17:$IT$17

    Ok...with that said...my problem is as follows:

    The formatting works exactly as it should from O17 up through FG17. Once I reach column FH it no longer works properly. At that point I'm automatically returning the formatting for the second condition even though none of the data fits in any of the formula groups. For instance, FH17 = 3 and FH 16 = 35.

    I've ensured that the data formatting of Column O through Column IT is exactly the same (via format painter) so that shouldn't be the problem.

    I'm pulling my hair out...any ideas?

    Thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    221

    Re: Conditional Formatting Over a Large Range Not Working Properly

    ANy chance you could upload a sample file David?
    Regards,

    jeversf

  3. #3
    Registered User
    Join Date
    03-11-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Conditional Formatting Over a Large Range Not Working Properly

    Ok I'll put something together and upload tomorrow.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Conditional Formatting Over a Large Range Not Working Properly

    Is there a reason for using &"", I think that's causing the problem?

    By using &"" you are converting the numeric values to text and the data is being compared as text, which isn't the same as a numeric comparison. In your example you say that FH17 =3 and FH16 = 35, so in this formula

    =FH17&"">=(0.85*FH16&"")

    That compares a text formatted "3" with a text formatted 35*0.85 = "29.75" - excel deems "3" as a text value to be > than "29.75" because it only compares the first digit of each.

    I think you should take out the &"" parts and the conditional formatting should work as required, e.g.

    =O17>=0.85*O16

    and similar for your other formulas
    Audere est facere

  5. #5
    Registered User
    Join Date
    03-11-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Conditional Formatting Over a Large Range Not Working Properly

    Yes, I wish that would have worked as well. That was how I had written the formulas initially, but it didn't work. A popup showed up next to the cell that indicated that the data was numbers formatted as text. I selected the option to format as a number, but that didn't fix it either. It was only when I added the &"" that the formatting took hold.

    The unfortunate problem I have with this spreadsheet is that I inherited it from someone else who built it. It does some weird things, such as when I insert a row or column a save box pops up each time...I've not seen that before.

    I'm wondering if these issues stem from how the spreadsheet was originally built. I'm testing that theory by rebuilding the spreadsheet from scratch in another workbook.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Conditional Formatting Over a Large Range Not Working Properly

    OK, if the numbers are text formatted then you probably need to do the opposite in the conditional formatting formulas, convert to numbers. Multiplication (by 0.75 or 0.85 etc.) converts one side and you can use *1 to convert the other without changing the value - try

    =O17*1>=0.85*O16
    Last edited by daddylonglegs; 03-11-2014 at 08:29 PM.

  7. #7
    Registered User
    Join Date
    03-11-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Conditional Formatting Over a Large Range Not Working Properly

    Awesome! That worked like a charm! Thanks for your help. I can get my sanity back...

  8. #8
    Registered User
    Join Date
    03-11-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Conditional Formatting Over a Large Range Not Working Properly

    Any thoughts about the other thing regarding the save box popping up when I add columns/rows?

    That is just more of a nuisance than anything else.

+ 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 Formula Not Working Properly
    By Oscar Martin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2014, 08:59 AM
  2. Conditional formatting not working properly
    By mlucey01 in forum Excel General
    Replies: 4
    Last Post: 01-08-2013, 08:35 PM
  3. [SOLVED] Conditional Formatting using VBA - Code not working properly
    By Tejas.T in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-07-2012, 10:19 AM
  4. Conditional Formatting with LARGE formula not working
    By peri1224 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2010, 09:47 AM
  5. trim macro not working properly on large file
    By bernie1961 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2008, 09:38 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