If my calculated value = 0, I need the cell to say "NIL". If it is any value other than 0, then it has to be that calculated number. How can I do this?
Thanks in advance!
If my calculated value = 0, I need the cell to say "NIL". If it is any value other than 0, then it has to be that calculated number. How can I do this?
Thanks in advance!
Last edited by Angelena; 08-26-2011 at 01:32 PM.
=IF (formula=0,"NIL",formula)
You can format the cells to show that.
Select the cells, right-click and select Format Cells. In the Number tab select Custom and enter: 0;-0;"Nil";@ in the type field.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
NBVC: So if I need the numbers to be in the Accounting format with two decimal places, how do I add that on to the custom format you gave me? Thank you so much!
The easiest way is to go to Number tab, select Accounting, and play with the decimals and any symbol you want, then select Custom, this should show the code for the Accounting you selected... just replace the portion between the 3rd and 4th semicolons with "Nil"
THANKS NBVC!!!! That worked.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks