+ Reply to Thread
Results 1 to 8 of 8

Problem with cell values outside their absolute differences

  1. #1
    Registered User
    Join Date
    04-13-2016
    Location
    London
    MS-Off Ver
    2007
    Posts
    7

    Problem with cell values outside their absolute differences

    Hello,

    Can anyone help me workout what is wrong with the formulas in my attached spreadsheet for checking the performance of some analyzers. I only need to highlight in 'red' any figures that are not within their 'absolute differences' but some cells are highlighting red even though there is no data within them and some cells are highlighting 'red' even though they are within the formulas parameter.

    Any help would be much appreciated.

    Thanks in advance,

    Keith.
    Attached Files Attached Files
    Last edited by CooperHawke; 07-18-2016 at 04:27 AM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Spreadsheet formula problem

    CooperHawke,

    Please exam the outcomes of the conditional formatting I applied to the attached workbook.

    If these appear to work I will explain the steps and the formulas. So far the CFs are applied only to the first 11 day sections of each sheet.

    I took some liberties with the workbook.
    • The sheetnames are all in A1 or each sheet. This is used as a reference for the lookup table B2:Q7.
    • I also changed the HGB in row 11 to Hb in order to match the parameters in the lookup table.
    The CF formula is
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I applied it to C12:Q15 then used Format Painter to apply it to the other day sections. I continued this on the other sheets. Done this way Excel will re-created 31 separate rules for each sheet. It beats hand typing them.

    I suspect the MEDIAN(C12:C15) range will need some attention, but I will wait for your feedback on that.
    Attached Files Attached Files
    Dave

  3. #3
    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,933

    Re: Spreadsheet formula problem

    Kieth, welcome to the forum
    Thanls for the title change

    Hopefully, Dave has answered your question?
    Last edited by FDibbins; 07-18-2016 at 08:02 AM.
    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

  4. #4
    Registered User
    Join Date
    04-13-2016
    Location
    London
    MS-Off Ver
    2007
    Posts
    7

    Re: Spreadsheet formula problem

    Hello Dave,

    I apologize for the late reply. Been doing a lot of night shifts over the last two weeks and not had much time to log on. Thank you so much for your help...

    Is there any chance you could take a look at G33 on the 1st sheet with the value 102.1 (Day 4). This is within the +/- 3 for MCV but it is still being highlighted in red. I need a worksheet that only highlights the cells red if their values are outside the +/- differences. So for cells G30 - G33 they are all within the correct absolute differences and shouldn't be highlighted red.

    Likewise for J33 on the same sheet with the value 272 (Day 4). This is within the +/- 25 for PLT but it is still being highlighted in red. I need a worksheet that only highlights the cells red if their values are outside the +/- differences. So for cells J30 - GJ33 they are all within the correct absolute differences and shouldn't be highlighted red.
    If the value of J33 was, for example 263, then that would be outside the +/- 25 difference (291-25 = 266 ~ okay but anything lower would be highlighted red).

    Is this possible in excel?


    Kind regards,

    Keith

  5. #5
    Forum Contributor
    Join Date
    06-28-2016
    Location
    Pennsylvania, USA
    MS-Off Ver
    2013
    Posts
    308

    Re: Problem with cell values outside their absolute differences

    Do you mind explaining a little for me?

    Please Login or Register  to view this content.
    is applied to C18 and below, but wouldn't dragging it compare it to with the cells below the cell you are "highlighting?"

    It seems dave is having the same issue, looking at the data.

    I believe you need something more like:

    Please Login or Register  to view this content.
    where you lock the range you are looking at, and apply it separately to each "block" of data.

    This can be quite tedious, and I am not 100% sure if that is the problem, but I see discrepancies that look like this is the reason why.

    Using the original code to show where I believe it went wrong, I think Dave's is a lot better, if he locks the range as I just suggested, I believe it will work perfectly.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Problem with cell values outside their absolute differences

    CooperHawke,

    Do you see what TheN is describing? That is exactly what I was concerned about
    I suspect the MEDIAN(C12:C15) range will need some attention, but I will wait for your feedback on that.
    I have not tried absolute referencing those ranges, yet. I suspect that is the answer. I was not ambitious enough to hand type that many separate CF formulas ... one for each day.

    My attendance here has been light lately. I am hopeful to find a one-formula-fits-all-ranges CF. That way it could be Format Painter applied to all the remaining ranges.

    If what TheN proposed does the job I will endeavor to find that formula. Please let me know.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Problem with cell values outside their absolute differences

    CooperHawke,

    I went ahead with a solution (?).

    I took another liberty of putting a helper column in R12:R197 of each sheet. There are merged cells in column A. If you are not aware of it merged cells cause havoc for formulas. This helper column is a way out.

    The formula in R12:R197 of each sheet is
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This enables a consistent ‘Day’ reference for each ‘Day’ range in order to set the MEDIAN range addresses absolute.

    I selected C12:Q15 of sheet X-Check Level 1 and applied this conditional formatting rule. The formula is
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I then used Format Painter to apply the same formatting to each ‘Day’ range in all sheets. That’s 93 separated CF rules.

    I have not done a painstaking check of the results. If I understand the MEDIAN addressing issue correctly the ones that I have checked are all correct.

    Only cells X-Check Level 1 C31 and X-Check Level 2 J75 return positive.

    Is this what you were expecting?
    Attached Files Attached Files

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Problem with cell values outside their absolute differences

    Keith,

    This is a much better CF formula. It needs to be applied to sheet X-Check Level 1 range B12:Q195. (I had to include column B due to some merged cells between the ‘Day’ sub-ranges.) Once applied use format painter to apply to the remaining sheets.

    Here is the replacement formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This reduces the number of CF rules from 93 to 3. The results are the same as before.

    I don’t know why I didn’t think of this before. My apologies.
    Attached Files Attached Files

+ 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. Wage Spreadsheet formula problem
    By Peter Jenkins in forum Excel General
    Replies: 1
    Last Post: 11-09-2015, 05:03 PM
  2. Tracking spreadsheet formula problem
    By marge in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-05-2014, 04:45 PM
  3. Math problem in spreadsheet
    By ccpsc in forum Excel General
    Replies: 6
    Last Post: 02-06-2014, 09:11 AM
  4. Excel 2008 : Spreadsheet problem
    By Lorrdon in forum Excel General
    Replies: 1
    Last Post: 10-31-2011, 03:09 AM
  5. Excel problem (not spreadsheet problem)
    By c991257 in forum Excel General
    Replies: 0
    Last Post: 05-30-2007, 11:18 AM
  6. Spreadsheet Problem?
    By meridianfac in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-21-2005, 10:33 PM
  7. Replies: 1
    Last Post: 02-08-2005, 06:06 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