Home

If function Returning Color Cells

%3CLINGO-SUB%20id%3D%22lingo-sub-668732%22%20slang%3D%22en-US%22%3EIf%20function%20Returning%20Color%20Cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-668732%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20illustrate%20year-to-date%20sales%20and%20profit%20attainment%20reports%20by%20simply%20using%20green%2C%20yellow%20or%20red%20autofill%20in%20cells%20to%20illustrate%20YTD%20attainment.%26nbsp%3B%20I%20know%20how%20to%20use%20if%20statements%20but%20I%20don't%20have%20any%20idea%20how%20I%20would%20use%20a%20three%20option%20(Green%20for%20meeting%20YTD%20goal%2C%20Yellow%20for%20Slightly%20Underachieving%20and%20Red%20for%20Underachieving)%20function%20and%20then%20autofill%20the%20cell%20with%20the%20correct%20color%20code.%26nbsp%3B%20Thank%20you.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-668732%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-668795%22%20slang%3D%22en-US%22%3ERe%3A%20If%20function%20Returning%20Color%20Cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-668795%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F354615%22%20target%3D%22_blank%22%3E%40mpayne64%3C%2FA%3E%26nbsp%3B%2C%20that%20is%20with%20conditional%20formatting.%20You%20may%20apply%203%20rules%2C%20one%20for%20each%20color.%20For%20example%2C%20for%20the%20green%20with%20formula%20like%3C%2FP%3E%0A%3CPRE%3E%3DYTD%26gt%3BGoal%3C%2FPRE%3E%0A%3CP%3Eapplying%20to%20your%20cell(s).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
mpayne64
Occasional Visitor

I am trying to illustrate year-to-date sales and profit attainment reports by simply using green, yellow or red autofill in cells to illustrate YTD attainment.  I know how to use if statements but I don't have any idea how I would use a three option (Green for meeting YTD goal, Yellow for Slightly Underachieving and Red for Underachieving) function and then autofill the cell with the correct color code.  Thank you.  

1 Reply
Highlighted

@mpayne64 , that is with conditional formatting. You may apply 3 rules, one for each color. For example, for the green with formula like

=YTD>Goal

applying to your cell(s).

 

Related Conversations
flashing a white screen while open new tab
cntvertex in Discussions on
14 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
23 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies