Zenru

New Member
Joined
Oct 19, 2017
Messages
29
Alright guys, I feel a bit embarrased to ask help for conditional formating, but I have tried and tried to make this work out myself but I cant accomplish anything. I am just stuck.

I need to do some multiple condition formating here. I have categories which take part of a material inventory.

Categories:
SU
MU
LU
HG
MG
LG


MaterialINVSUSU%MUMU%LULU%HGHG%MGMG%LGLG%
GAG2421002020%3030%55%1515%3030%00%
WRW4251007070%1010%55%00%1515%00%
TH254210000%1010%4040&00%00%5050%
QE647710000%00%1010%7070%2020%0%

<tbody>
</tbody>


Basically,


If there is something in SU, but SU% is lower than all categories %, then material should be RED
If there is nothing in SU but there is something in MU, and MU% is lower than the other categories, then material should be colored YELLOW.
If there is nothing in MU, but there is something in LU, and LU% is lower than other categories, then material should be LIGHT BLUE
If there is nothing in LU, but there is something in HG, and HG% is lower than other categories, then material should be PURPLE
If there is nothing in HG, but there is something in MG, and MG% is lower than other categories, then material should be ORANGE

If SU% is higher than the other categories, then material should be GREEN.

I added the colors to the font here, but I want it to be a background color in Excel.

Thanks in advance,
 
Last edited:

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.
OK let's do these one at a time.

Let's make some guesses about cell references - the word "MATERIAL" is in cell A1.

For the first condition . . .

Code:
=AND(C2>0,D2< F2,D2< H2,D2< J2,D2< L2,D2< N2)
<f2,d2<h2,d2<j2,d2<l2,d2<n2)
and format as red fill.

Note - with the data you provided, row 2 with GAG242 should not actually be red.

Does this work for you ?</f2,d2<h2,d2<j2,d2<l2,d2<n2)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,034
Messages
6,122,782
Members
449,095
Latest member
m_smith_solihull

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