Conditional Formatting - coloring cells

Grizzle33

New Member
Joined
Jul 19, 2011
Messages
34
Hello everyone.

I have a spread sheet that I keep track of freight costs on. I quote four different carriers on each shipment we do, and I would like Excel to highlight the cell with the lowest cost in it. I've been doing this manually, but if it's something that can be done automatically it would be nice.

I found the conditional formatting, but it seems the rule I'm looking for might have to be created? :confused:

Thanks in advance.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi try this
Excel Workbook
ABCDE
3Shipment 1225416494320
4Shipment 222725103406
5Shipment 3349296360202
6Shipment 43702879629
7Shipment 5487421233120
Sheet2
Excel 2007

in conditional format rule:
Code:
=B3=MIN($B3:$E3)
 
Upvote 0
Assuming Column C has the cells with the numbers in them: Highlight The Entire Column and select Conditional Formatting (using a formula)

=C1=MIN($C$1:$C$100) set the formatting to what you want.


Change the Column and data range to match your variables
 
Upvote 0
Ok, I have the current code as follows:

=G2=MIN($G$2:$J$2)

It selects the lowest value in a row of four.

Any secret to dragging that formatting down to say 50 rows? Or do I need to do each one?
 
Upvote 0
Ok, I have the current code as follows:

=G2=MIN($G$2:$J$2)

It selects the lowest value in a row of four.

Any secret to dragging that formatting down to say 50 rows? Or do I need to do each one?

Under Conditional Formatting-->Manage Rules

Change that to your desired range of cells, I would also absolute cell reference ($B$2:$B$51 for example)
 
Upvote 0
Ok, I have the current code as follows:

=G2=MIN($G$2:$J$2)

It selects the lowest value in a row of four.

Any secret to dragging that formatting down to say 50 rows? Or do I need to do each one?
your formula will compare just range $G$2:$J$2
not all ranges
you should change it to $G2:$J2
 
Upvote 0
Ok that worked fine.

Now I have the rule running down to the 50th row, I dont have data going into that row yet, and they are all colored green until I type something, and it will white out the higher ones, and keep the lowest green.

Is there anyway I can make this rule apply only when there's data in the cells?

Maybe I'll just have to edit it each time I add new data?
 
Upvote 0
Just add a second condition to the conditional formula to check that there is at least one entry in the row. For example =AND(SUM($G2:$J2)<>0,G2=MIN($G2:$J2))
 
Last edited:
Upvote 0
Just add a second condition to the conditional formula to check that there is at least one entry in the row. For example =AND(SUM($G2:$J2)<>0,G2=MIN($G2:$J2))

So the complete should look something like this?

=G2=MIN($G2:$J2) =AND(SUM($G2:$J2)<>0,G2=MIN($G2:$J+$A$1:$J$16

Would that all be the same rule, or create two different rules? When I enter that above it colors everything green, but it does check for data in a cell before it colors.:eek:
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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