CONDITIONAL FORMATTING FOR LOWEST VALUE HIGHLIGHTS

DEEPAK UBHE

New Member
Joined
Apr 16, 2014
Messages
14
I have cost comparison sheet in which I need to highlight lowest 1, 2 & 3 in particular row
But in conditional formatting I could highlight only Lowest 1 value, where I need to highlight Lowest 1, Lowest 2 & Lowest 3 in single row with different colour

At the same time I am not able to paste the same format for next line
Instead need to do the same process again for each line

Please help
 

Attachments

  • Book 1.png
    Book 1.png
    105.1 KB · Views: 10

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi,
What about this?
Book1
ABCDEFGHIJKLMNOPQRST
1ItemQtyRateAmountRateAmountRateAmountRateAmountRateAmountRateAmountRateAmountRateAmountRateAmount
2Item111510525513575613128423218721791712943920855365520428
3Item222413779528416125190129062171524167577292336831262433
4Item33182369692643221517801573562016631750552529691512781764
5Item446518872627714517644933287579192196712470121600181616
6Item547511623516172429537021642613276677156111380186851589
7Item659115395216294718756085563301927385291224704511309
8Item7668113029737892642542218112431232194302916212273222392
9Item8741280581251946916526763988318296422439431972101196
10Item98732588972688162188277445518802027001127631346589733
11Item1091827049791218277440259361774921755111367862701792653
12Item1110952015761325211463027457678189233991338962892851891
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:C12,E2:E12,G2:G12,I2:I12,K2:K12,M2:M12,O2:O12,Q2:Q12,S2:S12Expression=RateRank=3textNO
C2:C12,E2:E12,G2:G12,I2:I12,K2:K12,M2:M12,O2:O12,Q2:Q12,S2:S12Expression=RateRank=2textNO
C2:C12,E2:E12,G2:G12,I2:I12,K2:K12,M2:M12,O2:O12,Q2:Q12,S2:S12Expression=RateRank=1textNO

Name Manager entry: RateRank=RANK.EQ(Sheet1!A1,(Sheet1!$C1,Sheet1!$E1,Sheet1!$G1,Sheet1!$I1,Sheet1!$K1,Sheet1!$M1,Sheet1!$O1,Sheet1!$Q1,Sheet1!$S1),0)
 
Upvote 0
Another option:

Book3
ABCDEFGHIJKLMNOPQRSTU
1
2
3
4ABCDEFGHI
5ItemQtyRateAmountRateAmountRateAmountRateAmountRateAmountRateAmountRateAmountRateAmountRateAmount
61Item1134500862503450086250353008825035700892503690092250367009175036175904383630690765
72Item2234500690003420068400350007000035500710003690073800362007240036175723503610672212
83Item3312369126431151711573220162175032529
94Item44118872277121764233235793219642470
105Item5411162216173295370216426132766771561113
116Item651153921629318753855633019273852912
127Item76311303737226422221812431232194302916
138Item873028052025118691172676168831529641443911
149Item981530
1510Item10916321836
1611Item111095201576132521146302745767818923399133876
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D6:U16Expression=(D6>0)*(MOD(COLUMN(D6)-COLUMN($D6),2)=0)*(D6<=AGGREGATE(15,6,1/(1/$D6:$T6/(MOD(COLUMN($D6:$T6)-COLUMN($D6),2)=0)),1))textNO
D6:U16Expression=(D6>0)*(MOD(COLUMN(D6)-COLUMN($D6),2)=0)*(D6<=AGGREGATE(15,6,1/(1/$D6:$T6/(MOD(COLUMN($D6:$T6)-COLUMN($D6),2)=0)),2))textNO
D6:U16Expression=(D6>0)*(MOD(COLUMN(D6)-COLUMN($D6),2)=0)*(D6<=AGGREGATE(15,6,1/(1/$D6:$T6/(MOD(COLUMN($D6:$T6)-COLUMN($D6),2)=0)),3))textNO
 
Upvote 0
Far simpler version of my formulas, taking advantage of the headings:

Book3
ABCDEFGHIJKLMNOPQRSTU
1
2
3
4ABCDEFGHI
5ItemQtyRateAmountRateAmountRateAmountRateAmountRateAmountRateAmountRateAmountRateAmountRateAmount
61Item1134500862503450086250353008825035700892503690092250367009175036175904383630690765
72Item2234500690003420068400350007000035500710003690073800362007240036175723503610672212
83Item3312369126431151711573220162175032529
94Item44118872277121764233235793219642470
105Item5411162216173295370216426132766771561113
116Item651153921629318753855633019273852912
127Item76311303737226422221812431232194302916
138Item873028052025118691172676168831529641443911
149Item981530
1510Item10916321836
1611Item111095201576132521146302745767818923399133876
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D6:U16Expression=(D6>0)*(D$4<>"")*(D6<=SMALL(IF(($D$4:$T$4<>"")*($D6:$T6>0),$D6:$T6),1))textNO
D6:U16Expression=(D6>0)*(D$4<>"")*(D6<=SMALL(IF(($D$4:$T$4<>"")*($D6:$T6>0),$D6:$T6),2))textNO
D6:U16Expression=(D6>0)*(D$4<>"")*(D6<=SMALL(IF(($D$4:$T$4<>"")*($D6:$T6>0),$D6:$T6),3))textNO


The numbers don't match your sample sheet. (I didn't want to type them all in - see the XL2BB tool.) But I adjusted the values to show what happens when there are ties.
 
Upvote 0
Very sorry to say but this is not working
Is it possible to share the sheet here
So that i can explain my problem
 
Upvote 0
Hi,
What about this?
Book1
ABCDEFGHIJKLMNOPQRST
1ItemQtyRateAmountRateAmountRateAmountRateAmountRateAmountRateAmountRateAmountRateAmountRateAmount
2Item111510525513575613128423218721791712943920855365520428
3Item222413779528416125190129062171524167577292336831262433
4Item33182369692643221517801573562016631750552529691512781764
5Item446518872627714517644933287579192196712470121600181616
6Item547511623516172429537021642613276677156111380186851589
7Item659115395216294718756085563301927385291224704511309
8Item7668113029737892642542218112431232194302916212273222392
9Item8741280581251946916526763988318296422439431972101196
10Item98732588972688162188277445518802027001127631346589733
11Item1091827049791218277440259361774921755111367862701792653
12Item1110952015761325211463027457678189233991338962892851891
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:C12,E2:E12,G2:G12,I2:I12,K2:K12,M2:M12,O2:O12,Q2:Q12,S2:S12Expression=RateRank=3textNO
C2:C12,E2:E12,G2:G12,I2:I12,K2:K12,M2:M12,O2:O12,Q2:Q12,S2:S12Expression=RateRank=2textNO
C2:C12,E2:E12,G2:G12,I2:I12,K2:K12,M2:M12,O2:O12,Q2:Q12,S2:S12Expression=RateRank=1textNO

Name Manager entry: RateRank=RANK.EQ(Sheet1!A1,(Sheet1!$C1,Sheet1!$E1,Sheet1!$G1,Sheet1!$I1,Sheet1!$K1,Sheet1!$M1,Sheet1!$O1,Sheet1!$Q1,Sheet1!$S1),0)
not working
If i could share my sheet here to make you understand better
 
Upvote 0
You can share via the XL2BB add-on.
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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