+ Reply to Thread
Results 1 to 9 of 9

Formula to highlight whether two or more cells in a row have a diffence of 1.5

  1. #1
    Registered User
    Join Date
    02-16-2020
    Location
    Tucson, Arizona
    MS-Off Ver
    2016
    Posts
    5

    Question Formula to highlight whether two or more cells in a row have a diffence of 1.5

    I have a scoresheet and would like to highlight splits in scores of more than 1.5. For example, in the example below how would I get the numbers 7, 9 and 9.5 to highlight because there is a difference of at least 1.5 or greater between them?
    Attached Files Attached Files
    Last edited by darrickd805; 02-16-2020 at 05:08 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,933

    Re: Formula to highlight whether two or more cells in a row have a diffence of 1.5

    Welcome to the forum.

    Instructions about uploading your workbook are at the top of the page.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-16-2020
    Location
    Tucson, Arizona
    MS-Off Ver
    2016
    Posts
    5

    Re: Formula to highlight whether two or more cells in a row have a diffence of 1.5

    Thank you. I don't suppose you know a simple formula to use for the attached spreadsheet and question?

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Formula to highlight whether two or more cells in a row have a diffence of 1.5

    While having D4:H4 selected, go to Conditional Formatting and select "New Rule" and enter this formula:
    =OR(MAX($D$4:$H$4)-D$4>1.5,MIN($D$4:$H$4)-D$4<-1.5)
    Hopefully this works for you.
    I've attached the file.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-16-2020
    Location
    Tucson, Arizona
    MS-Off Ver
    2016
    Posts
    5

    Re: Formula to highlight whether two or more cells in a row have a diffence of 1.5

    Thank you so much I really appreciate the help, I'm not great with more complex formulas. The only other feature I can think of would be if there a way to automate the highlights to only highlight the individual cells that have a split of 1.5 or greater. Then un-highlight if the split between the individual cells is resolved (i.e. less than 1.5 difference)? The current formula highlights the entire row when there is a split of 1.5 or greater, which is a great start. But ideally it would highlight just the individual numbers that met the split criteria. Thank you again for your help.

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Formula to highlight whether two or more cells in a row have a diffence of 1.5

    only highlight the individual cells that have a split of 1.5 or greater. Then un-highlight if the split between the individual cells is resolved
    That's exactly what it does. When you open the file I attached, it only have 3 cells highlighted. If you change the values so that all cells are within 1.5 then the highlighting goes away.

  7. #7
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Formula to highlight whether two or more cells in a row have a diffence of 1.5

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by BMV; 02-17-2020 at 03:03 PM.

  8. #8
    Registered User
    Join Date
    02-16-2020
    Location
    Tucson, Arizona
    MS-Off Ver
    2016
    Posts
    5

    Re: Formula to highlight whether two or more cells in a row have a diffence of 1.5

    Thank you all for your help. I really appreciate all of your examples.

  9. #9
    Registered User
    Join Date
    02-16-2020
    Location
    Tucson, Arizona
    MS-Off Ver
    2016
    Posts
    5

    Re: Formula to highlight whether two or more cells in a row have a diffence of 1.5

    Ahh I see, that works perfectly. Thank you again for your help. You are a lifesaver.

+ 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] Highlight cells without a formula
    By jharvey87 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-12-2018, 11:48 AM
  2. Highlight Cells Associated With a Formula
    By BeHereALot in forum Excel General
    Replies: 3
    Last Post: 11-07-2016, 01:36 AM
  3. Time Diffence Calculations
    By dcs0511 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-24-2014, 01:35 PM
  4. Populate dates diffence
    By expert40 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2013, 11:16 AM
  5. help with formula to highlight cells but not blank cells
    By Brandoneh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2010, 03:03 PM
  6. Formula to highlight cells
    By cooge in forum Excel General
    Replies: 2
    Last Post: 08-11-2007, 03:54 PM
  7. Formula to highlight cells
    By cooge in forum Excel General
    Replies: 1
    Last Post: 08-10-2007, 08:31 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