Conditional formula to show cheaper price

dpbarry

Board Regular
Joined
Feb 10, 2003
Messages
214
Office Version
  1. 2016
Platform
  1. Windows
Hi all..

I'm looking at trying to set up a spreadsheet that will compare prices between 3 computer suppliers. (all supplier calculation on same spreadsheet)

Basically, what I want it to do is, after I enter in the prices for a product into each suppliers column, I want to change the colour of the cell (to red) that has the cheapest price for that particular product so that I can see what I have to order from each supplier that has the best price.

Is that possible?

Regards

Declan Barry :o
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hello,

One way is to have another column with =MIN(A1:C1)

Then in A1 use conditional formatting

CELL VALUE IS equal to D1

Is this any use or do you not want to add another column?

NO, just found it

CELL VALUE IS less than or equal to = MIN($A$1:$C$1)

change cell refs as required,

use the format painter to format other cells
 
Upvote 0
Hi..

Yes, that would partly do the trick but is there also a way of telling the =min function that if the cell is zero (maybe don't have a price for or don't sell it) exclude it from the test.

0.00 is cheaper than £74.12.

Regards

Declan
 
Upvote 0
Hi Barry,

It can be done by Conditional Formate

Follow the steps in my example:

1) Select your range
2) From menu choose Format | Conditional Formatting
3) Select Formula is and enter the following formula (adjust to yor range)
=A2=MIN($A2:$C2)
4)Select Format | Patterns and choose the red color
5) Finish with OK

Hope you'll manage,

Eli
Book1
ABCD
1ABC
2102030
312227
4454042
5
6
Sheet1
 
Upvote 0
dpbarry said:
Hi..

Yes, that would partly do the trick but is there also a way of telling the =min function that if the cell is zero (maybe don't have a price for or don't sell it) exclude it from the test.

0.00 is cheaper than £74.12.

Regards

Declan

No prblem.

MIN function doesnt take into account Blank cells.
 
Upvote 0
IS there a way of filtering out 0.00 prices so that the equation only checks prices that are greater than 0.00

Regards

Declan
 
Upvote 0
dpbarry said:
IS there a way of filtering out 0.00 prices so that the equation only checks prices that are greater than 0.00

Regards

Declan
Turn all 0 to empty cells
 
Upvote 0
Another solution to avoide 0 is to ARRAY ENTER the formula:

{=A2=MIN(IF(A2:C2<>0,A2:C2))}

in my previous example

Eli
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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