+ Reply to Thread
Results 1 to 6 of 6

Compare different cells on one row and highlight the lowest one

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    Bulgaria
    MS-Off Ver
    Excel 365 & Excel 2016
    Posts
    36

    Compare different cells on one row and highlight the lowest one

    Hi there,

    I'm having trouble to figure out how to solve the below. Attaching an example file for reference.

    I have a table with one main Supplier (SUPPLIER1) who can provide me certain tree types (Tree A, Tree B, Tree C) and has a specific quantity of each, offered at a specific single price.

    I also have (or might have) also more Suppliers (Supplier2, Supplier3, Supplier4, Supplier5 max till Supplier6) who can provide me some of the same tree types but on different single price depending on the quantity available.

    My goal is the following = when I enter the single amount for a specific tree (e.g. Tree A, Row11) provided by a certain Supplier or more Suppliers (different than the main Supplier1) to find the lowest single price among all available single prices (and if possible to bold it and highlight it in green color)
    From the file attached this should refer to the following - Row11, Cell H11, Cell M11, Cell Q11, Cell U11, Cell Y11, Cell AY11

    Also it would be good, again when possible the respective Supplier that offers the lowest price to be somehow highlighted.

    (Respectively the highest single price among all to be found and highlighted in red color)

    Any ideas are welcome
    Attached Files Attached Files
    Last edited by Air^Canada; 08-28-2023 at 12:29 PM. Reason: forgot to attach the example file

  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
    81,247

    Re: Compare different cells on one row and highlight the lowest one

    Is this for Excel 365 or 2016? Your forum profile is confusing.
    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
    06-04-2012
    Location
    Bulgaria
    MS-Off Ver
    Excel 365 & Excel 2016
    Posts
    36

    Re: Compare different cells on one row and highlight the lowest one

    I am using both, actually. But the above is for Excel 2016, thanks for pointing it out.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,599

    Re: Compare different cells on one row and highlight the lowest one

    I have made some changes in the table for simplifying the formula and there should be uniformity in data for all suppliers. Still Code1 columns are redundant for each supplier I feel.
    In E11
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In F11
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Registered User
    Join Date
    06-04-2012
    Location
    Bulgaria
    MS-Off Ver
    Excel 365 & Excel 2016
    Posts
    36

    Re: Compare different cells on one row and highlight the lowest one

    Not really working if I am not mistaken. When I enter "50" as a min single price under SUPPLIER2 in cell P11, it only changes the value to "50" in cell E11 which is OK, but cell F11 still says "SUPPLIER1" which is incorrect. It should 'detect' that this is "SUPPLIER2"

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Compare different cells on one row and highlight the lowest one

    Maybe this conditional formatting formula (no layout changes):

    =AND(E$6="Single Price",E11=AGGREGATE(15,6,$E11:$AD11/(($E$6:$AD$6="Single Price")*($E11:$AD11<>"")),1))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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. how to highlight the 3rd lowest number in a group of cells
    By Sheldybro in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-29-2020, 05:51 PM
  2. Replies: 3
    Last Post: 07-28-2014, 06:08 PM
  3. Replies: 1
    Last Post: 12-13-2013, 10:28 PM
  4. Replies: 2
    Last Post: 07-03-2013, 05:23 PM
  5. [SOLVED] compare cells and highlight same
    By shart2k12 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-05-2013, 01:34 PM
  6. How do I compare values of two cells and display the lowest.
    By sherri in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-21-2006, 02:40 PM
  7. How do I compare 4 cells of prices and print the lowest value in .
    By Jerry Foley in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-13-2005, 01:22 PM

Tags for this Thread

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