+ Reply to Thread
Results 1 to 4 of 4

Conditional formation between column A or B based on which is closer to C

  1. #1
    Registered User
    Join Date
    02-04-2013
    Location
    Palatine, IL USA
    MS-Off Ver
    Excel 2016
    Posts
    34

    Conditional formation between column A or B based on which is closer to C

    so i have a work sheet filled with data. Im trying to figure which data in cells B1 and C1 is closest to A1 how do i conditional format if my list goes all the way down to A250?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formation between column A or B based on which is closer to C

    Select cells B1:C250 and go to Home|Conditional Formatting>New Rule

    Select "Use a formula to determine which cells to format" and enter formula:

    =ABS(B1-$A1)=MIN(ABS(B1-$A1),ABS(C1-$A1))

    Then go to Format and choose from the Fill tab.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-04-2013
    Location
    Palatine, IL USA
    MS-Off Ver
    Excel 2016
    Posts
    34

    Re: Conditional formation between column A or B based on which is closer to C

    This seems to work, but as im going through data it starts to highlight both data points even when one number is farther away than A1

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formation between column A or B based on which is closer to C

    Watch the $ signs, that make the references absolute... are you changing those?

+ 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 formation
    By NicoleG in forum Excel General
    Replies: 6
    Last Post: 12-08-2016, 05:43 PM
  2. [SOLVED] Conditional Formation by ROW
    By tdsmith14 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-26-2014, 04:00 PM
  3. Conditional formation
    By gbythewood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2013, 06:06 PM
  4. Conditional formation
    By amitkr3855 in forum Excel General
    Replies: 2
    Last Post: 01-12-2013, 01:06 AM
  5. Conditional Formation based on Month
    By GDS in forum Excel General
    Replies: 4
    Last Post: 05-05-2009, 10:01 AM
  6. conditional formation on a formulas
    By bigtonyicu in forum Excel General
    Replies: 4
    Last Post: 06-23-2008, 12:44 PM
  7. Countif & Conditional formation question
    By djfatboyfats in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2008, 11:13 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