ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   formula help (https://www.excelbanter.com/excel-programming/283797-formula-help.html)

Sanjay Gupta

formula help
 
I have a column where all the numbers are multiple of 5.
But, I want double check that all the numbers in rows are
multiple of 5. I used =if(mod(a1,5)=0, true, false)-(I
used inverted commas for true and false but in my current
keyboard this key is not working). So, I get reply true or
false. Its working but I want to change the colour of the
number which is false according to the condition applied.
How can I use colour in formula.
Any help appreatiated

Many thanks
sanjay



Bob Phillips[_6_]

formula help
 
Sanjay,

Use conditional formatting.
Select the column (I will assume column A)
Goto menu FormatConditional Formatting
Change Condition 1 to FormulaIs
Add the formula =MOD(A1,5)<0
Click the format button
Choose a font colour
OK
OK

If not column A, just change A1 to the appropriate column.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Sanjay Gupta" wrote in message
...
I have a column where all the numbers are multiple of 5.
But, I want double check that all the numbers in rows are
multiple of 5. I used =if(mod(a1,5)=0, true, false)-(I
used inverted commas for true and false but in my current
keyboard this key is not working). So, I get reply true or
false. Its working but I want to change the colour of the
number which is false according to the condition applied.
How can I use colour in formula.
Any help appreatiated

Many thanks
sanjay






All times are GMT +1. The time now is 09:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com