Excel Function - Need Help - ResellerRatings Store Ratings
Comparison shop, read reviews, find savings, at ResellerRatings.com.
Comparison shop, read reviews, find savings, at ResellerRatings.com.
Comparison shop, read reviews, find savings.
What are you shopping for?
Digital Cameras Plasma and LCD
HDTv's iPods and Other
MP3 Players PC Laptops Camcorders

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-18-2002, 02:54 PM   #1 (permalink)
Registered User
 
Join Date: Oct 2002
Posts: 8
bacat is on a distinguished road
Excel Function - Need Help

I am tracking fixed asset depletions and need my spreadsheet to subtract monthly depletion from original cost, until the value reaches $0.00 then I want the spreadsheet to reflect "$0.00" instead of a negative number.

What function will sum with the condition that - IF the value is less then .01 display 0?

Please HELP!!!

bacat is offline   Reply With Quote
Old 10-18-2002, 05:20 PM   #2 (permalink)
Registered User
 
strangerstill's Avatar
 
Join Date: Oct 2001
Posts: 1,565
strangerstill is on a distinguished road
You said it! =IF(<formula> < 0, 0, <formula>)

=IF(condition, value_if_true, value_if_false)

strangerstill is offline   Reply With Quote
Old 10-21-2002, 10:02 AM   #3 (permalink)
Registered User
 
Join Date: Oct 2002
Posts: 8
bacat is on a distinguished road
This will display the words "TRUE" or "FALSE". I need the cell to display a "0", I belive it is a =REPLACE command.

Any ideas....
bacat is offline   Reply With Quote
Old 10-21-2002, 10:26 AM   #4 (permalink)
Registered User
 
Join Date: Feb 2001
Location: 03809 region
Posts: 3,501
dunbar is on a distinguished road
Send a message via ICQ to dunbar
Replace the terms within the if statement with whatever you want, eg =IF(2>1,"therefore","Danger") will produce therefore in the results. Similarly, =IF(2>1,7,2) will produce 7 as a cell result.
__________________
Registered Linux user 260423.
dunbar is offline   Reply With Quote
Old 10-21-2002, 10:28 AM   #5 (permalink)
Registered User
 
strangerstill's Avatar
 
Join Date: Oct 2001
Posts: 1,565
strangerstill is on a distinguished road
Er...no...
Quote:
IF
See Also

Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE.

Use IF to conduct conditional tests on values and formulas.

Syntax

IF(logical_test,value_if_true,value_if_false)

Logical_test is any value or expression that can be evaluated to TRUE or FALSE. For example, A10=100 is a logical expression; if the value in cell A10 is equal to 100, the expression evaluates to TRUE. Otherwise, the expression evaluates to FALSE. This argument can use any comparison calculation operator.

Value_if_true is the value that is returned if logical_test is TRUE. For example, if this argument is the text string "Within budget" and the logical_test argument evaluates to TRUE, then the IF function displays the text "Within budget". If logical_test is TRUE and value_if_true is blank, this argument returns 0 (zero). To display the word TRUE, use the logical value TRUE for this argument. Value_if_true can be another formula.

Value_if_false is the value that is returned if logical_test is FALSE. For example, if this argument is the text string "Over budget" and the logical_test argument evaluates to FALSE, then the IF function displays the text "Over budget". If logical_test is FALSE and value_if_false is omitted, (that is, after value_if_true, there is no comma), then the logical value FALSE is returned. If logical_test is FALSE and value_if_false is blank (that is, after value_if_true, there is a comma followed by the closing parenthesis), then the value 0 (zero) is returned. Value_if_false can be another formula.
Microsoft Excel Help files.

Actually, though, all you really need is to use MIN:
=MIN(<formula>, 0)
Quote:
MIN
See Also

Returns the smallest number in a set of values.

Syntax

MIN(number1,number2,...)

Number1, number2, ... are 1 to 30 numbers for which you want to find the minimum value.

Remarks

You can specify arguments that are numbers, empty cells, logical values, or text representations of numbers. Arguments that are error values or text that cannot be translated into numbers cause errors.
strangerstill is offline   Reply With Quote
Old 10-21-2002, 10:46 AM   #6 (permalink)
Registered User
 
Join Date: Oct 2002
Posts: 8
bacat is on a distinguished road
Thanks, the "0" is now displaying correctly.

I really appreciate everyones help. I have been stump for a while on this one, just because I couldn't get past what wasn't working.


NEW PROBLEM ....
What if I wanted to replace a value with a word.

Ex: If the sum of the cell was less then 100, display the word ORDER.


Last edited by bacat : 10-21-2002 at 11:41 AM.
bacat is offline   Reply With Quote
Old 10-21-2002, 12:15 PM   #7 (permalink)
Registered User
 
strangerstill's Avatar
 
Join Date: Oct 2001
Posts: 1,565
strangerstill is on a distinguished road
OK, now you do need to use IF.

=IF(<formula> < 100, "ORDER", <formula>)
strangerstill is offline   Reply With Quote
Old 10-21-2002, 01:04 PM   #8 (permalink)
Registered User
 
Join Date: Oct 2002
Posts: 8
bacat is on a distinguished road
I tried the formula and instead of displaying either "OK" or "ORDER" it displays the entire formula

Ex: =IF(b44/c44>3,"OK",b44/c44<3,"ORDER")
bacat is offline   Reply With Quote
Old 10-21-2002, 03:53 PM   #9 (permalink)
Registered User
 
strangerstill's Avatar
 
Join Date: Oct 2001
Posts: 1,565
strangerstill is on a distinguished road
Er... what you wrote has four arguments: b44/c44>3, "OK", b44/c44<3, and "ORDER". IF only accepts 3 arguments. If you want extra tests, you need to nest IFs (by putting an IF() formula in place of value_if_true or value_if_false)
strangerstill is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Most Active Discussions
Cyberpowerpc.com Any Good? (10)

Recent Discussions
Cyberpowerpc.com Any Good? (10)
Like New Wacom 12x19 Intuos 3 +.. (1)
For Sale BFG GTX285 OC2 with 10.. (2)
www.szprice.com - any experienc.. (1)
Games, Cables, PCI cards, and m.. (5)
Buymoreshopping.com? Wigix.com (3)
I want your old/new unused pc p.. (6)
:mad: Spam At-hon (3)
Fall-Winter Cleaning Sale (1)
DON'T BUY.COM Advisory (232)
Is certifiedwatchstore.com legi.. (1)
Beware of used XBOX 360's (12)
Cheap Used Computers (0)
Reputation: Establishing Trust .. (0)
Are the sites like this for rea.. (3)

All times are GMT -6. The time now is 12:17 AM.