Help writing formula to show red numbers if negative.

Get_Involved

Active Member
Joined
Jan 26, 2007
Messages
383
I have been trying to formulate this to show Red numbers if the total is negative, is this possible?

(CODE)IFERROR(1/(1/IF(A7>=0,SUM(Inventory!M:M),0)),"")(/CODE)
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Two possibilities maybe....
Select the cell(s) > Format Cells > Number > Select Number or Currency > Select a RED format bor negative values.

Use Conditional Formatting > Custom Formula > eg for A3 '=A3<0' > set Font format to red.

Hope that helps.
 
Upvote 0
Snakehips: I have tried it both ways.
unless I did it wrong, I can't get it to change colors.
This formula is in a tab "Yearly Sum Totals"
(CODE)IFERROR(1/(1/IF(A7>=0,SUM(Inventory!M:M),0)),"")(/CODE)
Pulling from tab named "Inventory" this where the negative & positive numbers are at.
 
Upvote 0
With Inventory M:M summing to a positive number...
Book1
ABCDEF
7999506.00
Yearly Sum Totals
Cell Formulas
RangeFormula
F7F7=IFERROR(1/(1/IF(A7>=0,SUM(Inventory!M:M),0)),"")


With Inventory M:M summing to a negative number...
Book1
ABCDEF
7999494.00
Yearly Sum Totals


Red font by virtue of cell format for negative number by using the Number Tab of the Ribbon or Right Click Format Cells.

I am seeing this as purely a formatting thing. Please enlighten me if I've not properly understood.
 
Upvote 0

Forum statistics

Threads
1,214,613
Messages
6,120,515
Members
448,968
Latest member
Ajax40

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