Forum Discussion
Kashibaba
Dec 09, 2019Brass Contributor
Colour code for formula Max(number1, numbr2)
Hi, I am trying to find a way where I can possibly assign colours to each of the numbers used in MAX formula hence the value will be coloured accordingly. for example in formula MAX(number1, number2...
- Dec 09, 2019
You may apply conditional formatting rule with formula
=C2=VLOOKUP($A2,FC!$A$2:$G$9,@MATCH(C$1,FC!$A$1:$G$1,0),0)
for the red and similar for the green. Please see in second sheet attached.
Kashibaba
Dec 09, 2019Brass Contributor
Yes, both will return 20 and there I want something to colour them. Red if its a 20 from max(20,8) and green if its 20 from max(8,20)
Thanks for suggestion but I don't have values in separate cols.
Thanks for suggestion but I don't have values in separate cols.
Subodh_Tiwari_sktneer
Dec 09, 2019Silver Contributor
Why not simply upload a sample workbook with some dummy data along with the desired output mocked up manually to show what exactly you are trying to achieve?
- KashibabaDec 09, 2019Brass Contributorattachment of dummy data posted. Thanks
- SergeiBaklanDec 09, 2019Diamond Contributor
You may apply conditional formatting rule with formula
=C2=VLOOKUP($A2,FC!$A$2:$G$9,@MATCH(C$1,FC!$A$1:$G$1,0),0)
for the red and similar for the green. Please see in second sheet attached.
- KashibabaDec 10, 2019Brass ContributorThanks a lot Sergei. It did work perfectly. I had this in back of my mind but didn't want to try because I have +27K rows and +200 columns of data (with 2 Vlookups each cell) so applying this conditional formatting will possibly slows down the spreadsheet but since this is the only solution at the moment that is working so I will give it a try now.
Thanks again for your effort of being helpful.