Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

learn excel - changing cell zero

Forum home » Delegate support and help forum » Microsoft Excel Training and help » learn excel - Changing a Cell to Zero

learn excel - Changing a Cell to Zero

ResolvedVersion Standard

Kate has attended:
Excel Advanced course

Changing a Cell to Zero

Hi,

Is there any way of making a cell to change to the value 0, if the formulae within it solves to a negative value?

Thanks

RE: Changing a Cell to Zero

Hi Kate

Thanks for your question.

This can be solved by using the IF function as part of your formula.

1. Start by putting in your formula (e.g. B3*C3).

2. Extend your formula to include the IF function. For example:

=IF(B3*C3<0,0,B3*C3)

What this tells Excel is that if the result of the formula is less than 0, then display 0 in the cell, otherwise display the result of the formula.

Hope this helps - Amanda

RE: Changing a Cell to Zero

Hi Kate,

Using an IF function will allow you to achieve your objective.

The IF function structure is =IF(TEST, IF TRUE, IF FALSE)

Example
A. B. C.
1. 10 20 =IF(A1*B1>0, A1*B1, "0")

2. -10 20 =IF(A1*B1>0, A1*B1, "0")


Where 1, 2 represent excel row numbers and A, B, C represent excel columns

The IF calculation in cell C1 and C2 perform a test, A1*B1>0, if that test is true then it displays the result of the calculation A1*B1, however if the test is false it displays a zero value

Hope this helps.







 

Training courses

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Validating text entries

1. Select the range of cells.
2. From the Data menu, select Validation.
3. Select the Settings tab.
4. From the Allow dropdown list, select Custom.
5. In the Formula box, enter the following formula:

=IsText (A1)

where A1 is the first cell in the range.
6. Click OK.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.12 secs.