Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

struggling with "IF" statements, excel

Thread Tools
 
Search this Thread
 
Old Oct 31, 2006 | 12:30 PM
  #1  
richardg's Avatar
richardg
Thread Starter
Scooby Regular
 
Joined: Oct 2004
Posts: 2,568
Likes: 0
From: essex, then chongqing, china and now essex again
Default struggling with "IF" statements, excel

as title, can do simple "IF" statements, but can't remember how to do IF (x>0 then result of formula) but IF x<0 "NIL" ....not sure if that makes sense, but it should do to those of you in the know

can anyone help please? it's driving me mad!
Reply
Old Oct 31, 2006 | 12:40 PM
  #2  
michaelro's Avatar
michaelro
Scooby Regular
 
Joined: Jan 2006
Posts: 897
Likes: 0
Default

You haven't posted the formula you wanted inserting so:

=IF(X>0,INSERT FORMULA HERE,0)

IF(logical_test,[value_if_true],[value_if_false])
Reply
Old Oct 31, 2006 | 12:41 PM
  #3  
Iain Young's Avatar
Iain Young
Scooby Regular
 
Joined: Sep 1999
Posts: 6,956
Likes: 0
From: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Default

Does this help...

Introduction to Excel IF Statement and Formula
Reply
Old Oct 31, 2006 | 12:48 PM
  #4  
Dream Weaver's Avatar
Dream Weaver
Scooby Regular
25 Year Member
Liked
 
Joined: Feb 2000
Posts: 9,846
Likes: 4
From: Lancashire
Default

Nest one IF inside the other.
Reply
Old Oct 31, 2006 | 12:49 PM
  #5  
richardg's Avatar
richardg
Thread Starter
Scooby Regular
 
Joined: Oct 2004
Posts: 2,568
Likes: 0
From: essex, then chongqing, china and now essex again
Default

=IF((O20-P20)>0, (O20-P20),0)

sorted! thanks guys.
Reply
Old Oct 31, 2006 | 12:49 PM
  #6  
richardg's Avatar
richardg
Thread Starter
Scooby Regular
 
Joined: Oct 2004
Posts: 2,568
Likes: 0
From: essex, then chongqing, china and now essex again
Default

=IF((O20-P20)>0, (O20-P20),"NIL")

exactly what i was looking for!! thank you
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
Dec 28, 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
Nov 18, 2015 07:03 AM
leg200
Subaru Parts
5
Oct 7, 2015 07:31 AM
has-scooby
Subaru Parts
4
Oct 6, 2015 03:47 PM
WrxSti03
Drivetrain
11
Sep 29, 2015 10:21 AM




All times are GMT +1. The time now is 11:50 PM.