SOLVED

Conditional Formating

%3CLINGO-SUB%20id%3D%22lingo-sub-3123751%22%20slang%3D%22en-US%22%3EConditional%20Formating%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3123751%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Firdaus1998_0-1644196467236.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F345699i27BF484E7536A460%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Firdaus1998_0-1644196467236.png%22%20alt%3D%22Firdaus1998_0-1644196467236.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20want%20to%20make%20new%20column%20based%20on%20the%20data%20in%20picture.%20There%20are%203%20columns%20which%20are%20R%2C%20Y%20and%20B.%20If%202%20of%20the%203%20columns%20Yellow%2C%20or%201%20of%20the%203%20columns%20Red%20will%20label%20as%20%22Priority%201%22.%20If%201%20of%20the%20column%20Yellow%20but%20rest%20are%20green%2C%20will%20label%20as%20%22No%20Action%22...%20Other%20than%20that%20will%20%22Priority%202%22.%20Can%20you%20guys%20guide%20me%20on%20this.%20Thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3123751%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3123967%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Formating%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3123967%22%20slang%3D%22en-US%22%3Eok%20so%20you%20label%20this%20as%20conditional%20formatting%20but%20you%20want%20things%20to%20get%20%22labelled%22.%20Where%20is%20this%20label%20going%20to%20show%3F%20In%20the%20next%20column%20to%20the%20right%20of%20'B'%3F%20And%20you%20want%20to%20base%20this%20label%20on%20the%20color%20of%20the%20cells%3F%20How%20are%20those%20cells%20getting%20those%20colors%3F%20conditional%20formatting%3F%3CBR%20%2F%3EBased%20on%20what%20I%20see%20and%20read%20I%20am%20GUESSING%20that%20there%20is%20conditional%20formatting%20on%20the%20columns%20R%2C%20Y%20and%20B%20based%20on%20the%20categories%20above.%20That%20said%2C%20you%20want%20%22Priority%201%22%20for%202%20of%203%20columns%20%22Yellow%22%20or%201%20of%203%20%22Red%22%20but%20don't%20mention%20orange.%20So%20this%20is%20a%20bit%20confusing.%3CBR%20%2F%3EThat%20all%20said%20if%20you%20use%20a%20formula%20like%3CBR%20%2F%3E%3DCHOOSE(%20MAX(1%2CMIN((A7%26gt%3B50)%2B(A7%26gt%3B500)%2B(B7%26gt%3B50)%2B(B7%26gt%3B500)%2B(C7%26gt%3B50)%2B(C7%26gt%3B500))%2C3)%2C%20%22No%20Action%22%2C%20%22Priority%201%22%2C%20%22Priority%202%22)%3CBR%20%2F%3EBasically%20what%20I'm%20suggesting%20is%20to%20compare%20each%20cell%20to%20see%20if%20it%20is%20at%20least%20yellow%20(which%20would%20result%20in%20a%20value%20of%201)%20and%20if%20that%20same%20cell%20is%20red%20(which%20would%20be%20another%201)%20than%20add%20them%20all%20together.%20So%20all%20%26lt%3B%20then%20yellow%20would%20result%20in%200%2C%20if%20exactly%201%20is%20yellow%20and%202%20green%20then%20%3D1%2C%20and%20if%20either%202%20are%20yellow%20or%201%20is%20red%20then%20%3D2%20and%20if%20more%20than%202%20yellow%20or%20more%20than%201%20red%20then%20it%20is%20%26gt%3B2.%3CBR%20%2F%3EThen%20I%20used%20MIN%20to%20make%20the%20min%201%20so%20either%200%20or%201%20will%20still%20be%201%20and%20MAX%20to%20make%20the%20max%203%20and%20then%20the%20CHOOSE%20will%20select%20the%201st%2C%202nd%2C%20or%203rd%20text%20accordingly.%3CBR%20%2F%3EI%20hope%20I%20interpreted%20your%20need%20correctly.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3124594%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Formating%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3124594%22%20slang%3D%22en-US%22%3E%3CP%3EYes.%20The%20new%20column%20will%20be%20next%20to%20column%20B.%20So%2C%20if%202%20of%20the%203%20columns%20(R%2CY%2CB)%20is%20above%2050%2C%20then%20at%20new%20column%20will%20display%20%22Priority%201%22.%20Also%2C%20if%20one%20of%20the%203%20columns%20(R%2CY%2CB)%20above%20500%2C%20the%20new%20column%20will%20also%20display%20%22Priority%201%22.%20Then%2C%20if%203%20columns%20(R%2CY%2CB)%20less%20than%2050%20or%20only%20one%20of%20the%20column%20is%20greater%20than%2050%20but%20lower%20than%20150%20and%20the%20rest%20green%2C%20it%20will%20display%20%22No%20Action%22.%20Other%20than%20what%20I%20have%20stated%20before%2C%20will%20display%20%22Priority%202%22.%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Firdaus1998_0-1644196467236.png

I want to make new column based on the data in picture. There are 3 columns which are R, Y and B. If 2 of the 3 columns Yellow, or 1 of the 3 columns Red will label as "Priority 1". If 1 of the column Yellow but rest are green, will label as "No Action"... Other than that will "Priority 2". Can you guys guide me on this. Thank you.

3 Replies
ok so you label this as conditional formatting but you want things to get "labelled". Where is this label going to show? In the next column to the right of 'B'? And you want to base this label on the color of the cells? How are those cells getting those colors? conditional formatting?
Based on what I see and read I am GUESSING that there is conditional formatting on the columns R, Y and B based on the categories above. That said, you want "Priority 1" for 2 of 3 columns "Yellow" or 1 of 3 "Red" but don't mention orange. So this is a bit confusing.
That all said if you use a formula like
=CHOOSE( MAX(1,MIN((A7>50)+(A7>500)+(B7>50)+(B7>500)+(C7>50)+(C7>500)),3), "No Action", "Priority 1", "Priority 2")
Basically what I'm suggesting is to compare each cell to see if it is at least yellow (which would result in a value of 1) and if that same cell is red (which would be another 1) than add them all together. So all < then yellow would result in 0, if exactly 1 is yellow and 2 green then =1, and if either 2 are yellow or 1 is red then =2 and if more than 2 yellow or more than 1 red then it is >2.
Then I used MIN to make the min 1 so either 0 or 1 will still be 1 and MAX to make the max 3 and then the CHOOSE will select the 1st, 2nd, or 3rd text accordingly.
I hope I interpreted your need correctly.

Yes. The new column will be next to column B. So, if 2 of the 3 columns (R,Y,B) is above 50, then at new column will display "Priority 1". Also, if one of the 3 columns (R,Y,B) above 500, the new column will also display "Priority 1". Then, if 3 columns (R,Y,B) less than 50 or only one of the column is greater than 50 but lower than 150 and the rest green, it will display "No Action". Other than what I have stated before, will display "Priority 2".@mtarler 

best response confirmed by Firdaus1998 (New Contributor)
Solution
Yep, that is what the formula will do.
depending on your version of Excel, you can also use dynamic arrays and make it a little cleaner
=CHOOSE( MAX(1,MIN(SUM((A7:C7>50),(A7:C7>500)),3), "No Action", "Priority 1", "Priority 2")