#1   Report Post  
Posted to microsoft.public.excel.misc
jwfakouri
 
Posts: n/a
Default an if question


hey guy's
A1 = 500-400, but if A1 equals a negative then i need A1 to equal
0.
please help.

thanks,
jason


--
jwfakouri
------------------------------------------------------------------------
jwfakouri's Profile: http://www.excelforum.com/member.php...o&userid=31435
View this thread: http://www.excelforum.com/showthread...hreadid=521982

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default an if question


Try this:

A1: =MAX(500-400,0)

Does that give you something to work with?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=521982

  #3   Report Post  
Posted to microsoft.public.excel.misc
Fred Smith
 
Posts: n/a
Default an if question

There's no formula which would set A1 to 0 if it was negative. You could do this
with a macro, but I doubt you need to go to this much trouble. Your likely best
bets a

1. If there currently is a formula in A1, then change it to an IF statement, as
in:

=if(b1-c1<0,0,b1-c1)

2. If you have other formulas referring to A1, have them test for a negative
value first.

--
Regards,
Fred


"jwfakouri" wrote in
message ...

hey guy's
A1 = 500-400, but if A1 equals a negative then i need A1 to equal
0.
please help.

thanks,
jason


--
jwfakouri
------------------------------------------------------------------------
jwfakouri's Profile:
http://www.excelforum.com/member.php...o&userid=31435
View this thread: http://www.excelforum.com/showthread...hreadid=521982



  #4   Report Post  
Posted to microsoft.public.excel.misc
tjtjjtjt
 
Posts: n/a
Default an if question

=MAX(500-400,0)
--
tj


"jwfakouri" wrote:


hey guy's
A1 = 500-400, but if A1 equals a negative then i need A1 to equal
0.
please help.

thanks,
jason


--
jwfakouri
------------------------------------------------------------------------
jwfakouri's Profile: http://www.excelforum.com/member.php...o&userid=31435
View this thread: http://www.excelforum.com/showthread...hreadid=521982


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
Finding and deleting question marks jezzica85 Excel Discussion (Misc queries) 3 February 25th 06 09:05 AM
Pivot table question gary Excel Discussion (Misc queries) 1 January 10th 06 06:25 PM
Benefits many people - Question ebgehringer Excel Discussion (Misc queries) 0 October 7th 05 09:22 PM
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM


All times are GMT +1. The time now is 03:35 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"