learn excel - changing cell zero
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

The UK's most regular instructor-led training courses.
Training information: learn excel · Excel/courses/london · Microsoft Excel Training
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Low Priority · Version Standard

Changing a Cell to Zero

Kate has attended:
Excel Advanced course

by - delegate Kate [6 posts] (2006 Nov 27 Mon, 15:07) replyReply

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

Excel Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2008 Jul 8 Tue Bloomsbury 0 FULL    
2003/XP 2008 Jul 8 Tue Bayswater 1 book now £195 £205
2003/XP 2008 Jul 9 Wed Bloomsbury 3 book now £210 £215
2003/XP 2008 Jul 15 Tue Bloomsbury 3 book now £210 £215
2003/XP 2008 Jul 15 Tue Tooting 0 FULL    
2007 2008 Jul 16 Wed Bloomsbury 7 book now £202 £224
Full Schedule: See all 160 Excel Intermediate course dates.
Bookings currently available until 25th November 2009.

RE: Changing a Cell to Zero

by - trainer Amanda platinum contributer[830 posts] (2006 Nov 27 Mon, 15:51) replyReply

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

by - trainer Orok bronze contributer[29 posts] (2006 Nov 27 Mon, 16:00) replyReply

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.








Related articles

· Microsoft Excel Courses Teach Advanced Macro Techniques
· Identifying Suitable Candidates For VBA For Excel Training
· 3 Reasons Why Excel Training Courses For Employees Can Improve Your Business
· Excel Advanced Courses Ease the Frustration of Learning Complex Tasks
· How to Create Better Excel Spreadsheets: Part Three

Excel tip:

Number format shortcut

Ctrl+Shift+! applies the Number format, with two decimal places

View all Excel hints and tips

Institute of IT Training - Accredited Training Provider Institute of IT Training - Accredited Training Provider Prodigy Platinum Learning Partner Microsoft Office Specialist Authorised Testing Centre

Microsoft Registered Partner
microsoft office
ms office project server

Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz