A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using multiple IF conditions



 
 
Thread Tools Display Modes
  #1  
Old April 13th, 2009, 06:41 PM posted to microsoft.public.excel.worksheet.functions
jayceejay
external usenet poster
 
Posts: 23
Default Using multiple IF conditions

I am having a difficult time with an IF statement.
I have a value in cell A1 that triggers a response in cell A5.
If cell A1 = 0, Cell A5 should =0
If cell A1 is 0and=300,Cell A5 should =495
If cell A1 is 300, Cell A5 should =795.

The PROBLEM here is that I can't seem to use "and" conditions within an If
statement. I've tried "between" and "And" and that doesn't work either.
What am I doing wrong?
  #2  
Old April 13th, 2009, 06:47 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Using multiple IF conditions

=IF(A1=0,0,IF(A1301,495,IF(A1300,795,"")))

If this post helps click Yes
---------------
Jacob Skaria


"Jayceejay" wrote:

I am having a difficult time with an IF statement.
I have a value in cell A1 that triggers a response in cell A5.
If cell A1 = 0, Cell A5 should =0
If cell A1 is 0and=300,Cell A5 should =495
If cell A1 is 300, Cell A5 should =795.

The PROBLEM here is that I can't seem to use "and" conditions within an If
statement. I've tried "between" and "And" and that doesn't work either.
What am I doing wrong?

  #3  
Old April 13th, 2009, 06:58 PM posted to microsoft.public.excel.worksheet.functions
Sheeloo[_5_]
external usenet poster
 
Posts: 239
Default Using multiple IF conditions

Jacob's answer will give you what you want...

Just so you know, the way to use AND is as below;
IF(AND(A10,A1=300),"Condition True","Condition False")

"Jacob Skaria" wrote:

=IF(A1=0,0,IF(A1301,495,IF(A1300,795,"")))

If this post helps click Yes
---------------
Jacob Skaria


"Jayceejay" wrote:

I am having a difficult time with an IF statement.
I have a value in cell A1 that triggers a response in cell A5.
If cell A1 = 0, Cell A5 should =0
If cell A1 is 0and=300,Cell A5 should =495
If cell A1 is 300, Cell A5 should =795.

The PROBLEM here is that I can't seem to use "and" conditions within an If
statement. I've tried "between" and "And" and that doesn't work either.
What am I doing wrong?

  #4  
Old April 13th, 2009, 07:40 PM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default Using multiple IF conditions

In addition to Jacob and Sheeloo's responses, you can also do what you want
without using IF at all. Here are two ways in which you can do that...

=795-300*(A1=300)-495*(A1=0)

=(795-300*(A1=300))*(A10)

While the first formula is 2 characters longer than the second one, I think
the method of how it works is a little bit clearer.

--
Rick (MVP - Excel)


"Sheeloo" just remove all As... wrote in
message ...
Jacob's answer will give you what you want...

Just so you know, the way to use AND is as below;
IF(AND(A10,A1=300),"Condition True","Condition False")

"Jacob Skaria" wrote:

=IF(A1=0,0,IF(A1301,495,IF(A1300,795,"")))

If this post helps click Yes
---------------
Jacob Skaria


"Jayceejay" wrote:

I am having a difficult time with an IF statement.
I have a value in cell A1 that triggers a response in cell A5.
If cell A1 = 0, Cell A5 should =0
If cell A1 is 0and=300,Cell A5 should =495
If cell A1 is 300, Cell A5 should =795.

The PROBLEM here is that I can't seem to use "and" conditions within an
If
statement. I've tried "between" and "And" and that doesn't work
either.
What am I doing wrong?


 




Thread Tools
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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.