Coloring spreadsheed numbers automatically

%3CLINGO-SUB%20id%3D%22lingo-sub-3003842%22%20slang%3D%22en-US%22%3EColoring%20spreadsheed%20numbers%20automatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3003842%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20tracking%20stocks%20using%20the%20EXCEL%20spreadsheet.%26nbsp%3B%20I%20would%20like%20to%20be%20able%20to%20have%20ALL%20negative%20numbers%20(representing%20losses)%20show%20up%20in%20bold%20red%20color%20automatically%20throughout%20the%20spreadsheet.%3C%2FP%3E%3CP%3EAn%20added%20feature%20is%20to%20take%20an%20existing%20spreadsheet%20without%20this%20feature%20and%20add%20it%20via%20a%20global%20highlighting%20to%20the%20spreadsheet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3003842%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3004426%22%20slang%3D%22en-US%22%3ERe%3A%20Coloring%20spreadsheed%20numbers%20automatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3004426%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1229113%22%20target%3D%22_blank%22%3E%40phoenix98604%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eyou%20can%20create%20a%20conditional%20formatting%20rule%20for%20this.%3C%2FP%3E%3CP%3EFirst%2C%20highlight%20the%20range%20of%20cells%20where%20this%20rule%20should%20apply%3C%2FP%3E%3CP%3EThen%20open%20menu%20%22Home%20%7C%20Conditional%20Formatting%20%7C%20New%20Rule...%22%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DTE_0-1637827335975.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F329377i36CC80E618626B18%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DTE_0-1637827335975.png%22%20alt%3D%22DTE_0-1637827335975.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThen%20select%20the%20rule%20type%20%22Use%20a%20formula%20to%20determine...%22%20and%20enter%20the%20formula%2C%20which%20is%20in%20my%20example%3A%3C%2FP%3E%3CP%3E%3DA1%26lt%3B0%3C%2FP%3E%3CP%3EPlease%20note%2C%20that%20the%20cell%20reference%20is%20based%20on%20your%20active%20cell%20in%20your%20highlighted%20area.%20So%20if%20your%20active%20cell%20is%20D500%2C%20then%20use%3C%2FP%3E%3CP%3E%3DD500%26lt%3B0%3C%2FP%3E%3CP%3EClick%20the%20%22Format...%22-button%20and%20change%20the%20font%20as%20you%20like%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DTE_1-1637827497884.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F329378i8295AB8C314F49D4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DTE_1-1637827497884.png%22%20alt%3D%22DTE_1-1637827497884.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20a%20simple%20rule%20that%20you%20just%20need%20to%20create%20in%20any%20other%20worksheet%20or%20file%20where%20you%20need%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3009980%22%20slang%3D%22en-US%22%3ERe%3A%20Coloring%20spreadsheed%20numbers%20automatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3009980%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F48469%22%20target%3D%22_blank%22%3E%40DTE%3C%2FA%3E%26nbsp%3B%20Thank%20you%20for%20your%20help.%20However%2C%26nbsp%3B%20I%20am%20not%20sure%20I%20fully%20understand%20your%20advice.%26nbsp%3B%20How%20does%20one%20determine%20the%20%22active%20cell%22%3F%26nbsp%3B%20I%20want%20the%20entire%20highlighted%20spreadsheet%20to%20be%20affected.%26nbsp%3B%20Do%20you%20choose%20the%20upper%20left%20cell%20in%20the%20highlighted%20area%20for%20example%3F%3C%2FP%3E%3CP%3EYour%20advice%20sounds%20good%20-%20I%20just%20have%20a%20question%20regarding%20how%20you%20determine%20the%20active%20cell.%3C%2FP%3E%3CP%3EI%20am%20looking%20forward%20to%20hear%20your%20reply.%3C%2FP%3E%3CP%3EArt%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I am tracking stocks using the EXCEL spreadsheet.  I would like to be able to have ALL negative numbers (representing losses) show up in bold red color automatically throughout the spreadsheet.

An added feature is to take an existing spreadsheet without this feature and add it via a global highlighting to the spreadsheet.

6 Replies

Hi @phoenix98604

 

you can create a conditional formatting rule for this.

First, highlight the range of cells where this rule should apply

Then open menu "Home | Conditional Formatting | New Rule..."

DTE_0-1637827335975.png

Then select the rule type "Use a formula to determine..." and enter the formula, which is in my example:

=A1<0

Please note, that the cell reference is based on your active cell in your highlighted area. So if your active cell is D500, then use

=D500<0

Click the "Format..."-button and change the font as you like:

DTE_1-1637827497884.png

 

It's a simple rule that you just need to create in any other worksheet or file where you need it.

 

@DTE  Thank you for your help. However,  I am not sure I fully understand your advice.  How does one determine the "active cell"?  I want the entire highlighted spreadsheet to be affected.  Do you choose the upper left cell in the highlighted area for example?

Your advice sounds good - I just have a question regarding how you determine the active cell.

I am looking forward to hear your reply.

Art

@phoenix98604 

Number formats also allow colours to be set, with red commonly used for negative numbers. The format can be applied to entire sheets by selecting the marker to the top-left of the sheet. The problem is that you may also have counts or percentages on the same sheet which will need their own styles to be applied.

image.png

The image is of a custom number format based upon the UK accounting format.

Hi @phoenix98604 

 

the active cell is always the one sitting on the top left corner of your selection. In the following screenshot, the selected range is B3:D10, but the active cell is only B3.

 

So in the formula for the formatting rule, you would have to reference only B3 and it will apply dynamically to all other cells in the range B3:D10

 

I hope this makes it a bit clearer to you.

So you peg the upper left cell and the lower right cell of the area to be highlighted. My spreadsheet is fairly large (A - R) and 1 - 120 rows. I will give that a try. Thanks alot!
That made the color change for all numbers less than zero. Thanks very much for your help you mysterious techno-knight.