Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 112
Default Cells containing values not less than zero

Is there a formula I can include in an IF statement that would require the
number to be a positive figure. Or is it easier than that and I can format
the cell to equal zero or greater. For example, if my formula wants to
subtract cell A5 from A4, but but if A5 is larger than A4, 0 would be the
answer.

Thanks.
--
Andrea
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Cells containing values not less than zero

=IF(A4-A50,A4-A5,0)

"Andrea" wrote:

Is there a formula I can include in an IF statement that would require the
number to be a positive figure. Or is it easier than that and I can format
the cell to equal zero or greater. For example, if my formula wants to
subtract cell A5 from A4, but but if A5 is larger than A4, 0 would be the
answer.

Thanks.
--
Andrea

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Cells containing values not less than zero

Another idea ..
=MAX(A4-A5,0)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Andrea" wrote:
Is there a formula I can include in an IF statement that would require the
number to be a positive figure. Or is it easier than that and I can format
the cell to equal zero or greater. For example, if my formula wants to
subtract cell A5 from A4, but but if A5 is larger than A4, 0 would be the
answer.

Thanks.
--
Andrea

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
How do I sum up values only in cells that are color filled? TryingExcel Excel Worksheet Functions 7 April 12th 09 03:34 PM
average values in non-contiguous cells, ignoring 0 values RWormdahl Excel Worksheet Functions 3 October 30th 06 01:06 AM
Counting multiple values within single cells Terry Bennett Excel Worksheet Functions 5 October 24th 06 06:10 PM
cntrl + down arrow and null values in cells Craig Excel Discussion (Misc queries) 2 October 26th 05 10:23 PM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM


All times are GMT +1. The time now is 03:38 PM.

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

About Us

"It's about Microsoft Excel"