Highlight Cells Based on Value Least to Greatest

srallen3

New Member
Joined
Feb 26, 2016
Messages
32
Office Version
  1. 2019
Platform
  1. Windows
I am trying to track lumber prices between 5 different companies. I want to highlight the lowest price green, next lowest blue, then yellow, orange, and finally the highest price red.

Cells A2:I2 have the titles for each column

Cells A3:I86 is where the actual values begin being listed

A2: Product
B2: Quantity
C2: My name
D2: Friends name
E2: 1st Lumber Company
F2: 2nd Lumber Company
G2: 3rd Lumber Company
H2: 4th Lumber Company
I2: 5th Lumber Company


I want to do a conditional formatting rule that will highlight the lowest priced cell-greatest priced from E3:I3 the colors above, and then it will do the same on E4:I4, and continuing like that until the last row on 86 is highlighted so that I can see which lumber company is most consistent with their prices. I have tried to use the Large formula but might not be the best way or I am doing it incorrectly.


Thank you in advance!
 

Attachments

  • Screenshot (51).png
    Screenshot (51).png
    134.9 KB · Views: 18

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
You need one rule for each color. You will apply these rules to E3:I86. LARGE works but maybe your formula wasn't right.

lowest price green
Excel Formula:
=E3=SMALL($E3:$I3,1)

next lowest blue
Excel Formula:
=E3=SMALL($E3:$I3,2)

And so on for yellow 3, orange 4, and finally the highest price red 5.

You could also use LARGE going from 5, 4, 3, 2, 1. It doesn't matter.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top