Excel Formula Needed

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

bitsnbytes

Thread Starter
Joined
Sep 26, 2003
Messages
8
Can I do a formula in Excel that says: If G12 - H12= greater than 0 put $10 in this cell (J12)?

Thanks
 
Joined
Mar 15, 2001
Messages
1,829
ckaas' formula enters the 10$ value as text. You'll have trouble if you want to perform any calculations on the cell.

I'd format the cell to Currency format and use:
=IF((G12-H12)>0, 10, 0)
Which says if G12 - H12 is greater than zero, enter $10.00, otherwise enter $0.00.

Gram
 
Joined
Dec 28, 2002
Messages
36
I need a code similar to this that will give me a ;-) happy face when a total =0 and a ;-( when it is >1.
 
Joined
Feb 24, 2003
Messages
331
Originally posted by annalyst:
I need a code similar to this that will give me a ;-) happy face when a total =0 and a ;-( when it is >1.
=IF(G12-H12=0,":)", ";-)")

What happens when it's =1?
 
Joined
Aug 5, 2003
Messages
47
If you want to be really cute, format the results cell for your happy/sad faces as "wingdings", and use the following formula:

=IF(G12-H12=0,"J", "L")

This will give you smily or frowny icons. Better yet (and I've really done this myself!), put a conditional format on that cell so that if cell = "J", text is green, if cell = "L", text is red. It helps to differentiate the "sad" cells.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top