Ranking Prices and Colour Coding

dpbarry

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

With the current economics regarding pricing on foods, our canteen staff have asked me if there was a way I could set up a spreadsheet with a list of suppliers in column format so they could enter a price for particular items and it rank it in terms of price across the list of supplier - cheapest to dearest and colour coded from Red to Green so they can see at a glance what has changed.

I was thinking along the lines of using the Rank function but I'm not sure how to set it up to compare the 4 suppliers in this mock setup.

Basically they would like if a 'price' changes in any of the supplier, it is compared with the price in the other 3 suppliers and if its the cheapest, it goes Green. If it's the dearest, it goes Red and if it's in between, its in a different shade of yellow.

Hope this makes sense.

Regards

Declan

Canteen Supplier Price Comparison.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXY
1 Supplier 1 Supplier 2 Supplier 3 Supplier 4
2Item DescriptionRank Quantity Weight (gms) Price Unit Price Rank Quantity Weight (gms) Price Unit Price Rank Quantity Weight (gms) Price Unit Price Rank Quantity Weight (gms) Price Unit Price
3Brakes Garlic & Parsley Bread Slices8524£8.00£0.098524£7.00£0.088524£9.00£0.118524£6.00£0.07
Sheet1
Cell Formulas
RangeFormula
F3,X3,R3,L3F3=E3/C3
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
See if it works for you - Added few helper columns Y:AB

All Records.xlsb
ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1 Supplier 1 Supplier 2 Supplier 3 Supplier 4 S1S2S3S4
2Item DescriptionRank Quantity Weight (gms) Price Unit Price Rank Quantity Weight (gms) Price Unit Price Rank Quantity Weight (gms) Price Unit Price Rank Quantity Weight (gms) Price Unit Price
3Brakes Garlic & Parsley Bread Slices2852480.093852470.081852490.114852460.070.090.080.110.07
Sheet6
Cell Formulas
RangeFormula
B3B3=RANK(Y3,$Y$3:$AB$3)
F3,X3,R3,L3F3=E3/C3
H3H3=RANK(Z3,$Y$3:$AB$3)
N3N3=RANK(AA3,$Y$3:$AB$3)
T3T3=RANK(AB3,$Y$3:$AB$3)
Y3Y3=F3
Z3Z3=L3
AA3AA3=R3
AB3AB3=X3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H3,B3,N3,T3Other TypeColor scaleNO
 
Upvote 0
See if it works for you - Added few helper columns Y:AB

All Records.xlsb
ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1 Supplier 1 Supplier 2 Supplier 3 Supplier 4 S1S2S3S4
2Item DescriptionRank Quantity Weight (gms) Price Unit Price Rank Quantity Weight (gms) Price Unit Price Rank Quantity Weight (gms) Price Unit Price Rank Quantity Weight (gms) Price Unit Price
3Brakes Garlic & Parsley Bread Slices2852480.093852470.081852490.114852460.070.090.080.110.07
Sheet6
Cell Formulas
RangeFormula
B3B3=RANK(Y3,$Y$3:$AB$3)
F3,X3,R3,L3F3=E3/C3
H3H3=RANK(Z3,$Y$3:$AB$3)
N3N3=RANK(AA3,$Y$3:$AB$3)
T3T3=RANK(AB3,$Y$3:$AB$3)
Y3Y3=F3
Z3Z3=L3
AA3AA3=R3
AB3AB3=X3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H3,B3,N3,T3Other TypeColor scaleNO
Apologies sanjay for the delay in responding. Bit hectic here in the school

That has worked perfectly for what I need. I'm just modifying it for the canteen staff to make it easier for them to add in pricing structures now that I know the procedure to use.

Many thanks for your help.

Kind Regards

Declan
 
Upvote 0
Apologies sanjay for the delay in responding. Bit hectic here in the school

That has worked perfectly for what I need. I'm just modifying it for the canteen staff to make it easier for them to add in pricing structures now that I know the procedure to use.

Many thanks for your help.

Kind Regards

Declan
Glad to help you
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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