Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Negative number results to show as zero

I'm creating an inventory order worksheet with predetermined stock levels. As
we update our inventory, these amount are automatically reduced from our
predetermined stock levels. The result from the column is either a positive
number (# of garments to order) or a negative number (overstock).

I'm copying each result to a new cell (so I can know at any given time what
quantity to order) and rounding the number to the closest multiple of 10
(have to order in multiples of 10). I'm using the =Mround (G4,10) function.
It is working great for all items with a positive number but for the items
with a negative number, I'm receiving a #NUM! error.

What I'm trying to achieve is if the result is a negative number I want it
to display as zero in the new cell. Would appreciate any help with this.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default Negative number results to show as zero

How about:

=If(G4<0,0,Mround(G4,10))

Ken Puls, CMA - Microsoft MVP (Excel)
www.excelguru.ca

Soccer Guy wrote:
I'm creating an inventory order worksheet with predetermined stock levels. As
we update our inventory, these amount are automatically reduced from our
predetermined stock levels. The result from the column is either a positive
number (# of garments to order) or a negative number (overstock).

I'm copying each result to a new cell (so I can know at any given time what
quantity to order) and rounding the number to the closest multiple of 10
(have to order in multiples of 10). I'm using the =Mround (G4,10) function.
It is working great for all items with a positive number but for the items
with a negative number, I'm receiving a #NUM! error.

What I'm trying to achieve is if the result is a negative number I want it
to display as zero in the new cell. Would appreciate any help with this.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Negative number results to show as zero

Thank you Ken. Works prefectly. Really appreicate it.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display negative results Rhonda Excel Worksheet Functions 11 October 17th 06 07:24 PM
Force function to show positive or negative number? smoore Excel Worksheet Functions 3 March 3rd 06 08:34 PM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
MROUND on a negative number. Big Rick Excel Discussion (Misc queries) 6 December 29th 05 03:45 PM
abdualmohsn almedrahe abdualmohsn ahmad Excel Discussion (Misc queries) 1 November 19th 05 06:32 PM


All times are GMT +1. The time now is 02:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"