#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default IF & AND formulae

I am trying to say if I4 has something in it and K4=X, then put 200 in this
field, but if not see if I4 has something in it and J4 0 and L= YES then
times J4 by 1.5, if not put 0. my formulae is

=+IF(AND(I40,K4=x),200,IF(AND(I40,J40,L=YES),J4 *1.5,0))
I get #NAME?
can someone help me get this right please?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default IF & AND formulae

Hi,

There are a couple of problems with the formula

1. The x needs to be in quotes as does the "Yes"
2. L="Yes"

What is L?

Try this

=IF(AND(I40,K4="x"),200,IF(AND(I40,J40,L4="Yes" ),J4*1.5,0))

Mike

"Pam @ Joyce" wrote:

I am trying to say if I4 has something in it and K4=X, then put 200 in this
field, but if not see if I4 has something in it and J4 0 and L= YES then
times J4 by 1.5, if not put 0. my formulae is

=+IF(AND(I40,K4=x),200,IF(AND(I40,J40,L=YES),J4 *1.5,0))
I get #NAME?
can someone help me get this right please?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default IF & AND formulae

Thank you Mike - this fixed half my problem - I now get the 200, however
still get #Name? for the other half. I added in a column and put the Yes in
its own column (M) as I was using L for comments as well as the YES in L, but
this didn't work either. I can have 3 logical tests in one AND statement
can't I?

Pam

"Mike H" wrote:

Hi,

There are a couple of problems with the formula

1. The x needs to be in quotes as does the "Yes"
2. L="Yes"

What is L?

Try this

=IF(AND(I40,K4="x"),200,IF(AND(I40,J40,L4="Yes" ),J4*1.5,0))

Mike

"Pam @ Joyce" wrote:

I am trying to say if I4 has something in it and K4=X, then put 200 in this
field, but if not see if I4 has something in it and J4 0 and L= YES then
times J4 by 1.5, if not put 0. my formulae is

=+IF(AND(I40,K4=x),200,IF(AND(I40,J40,L=YES),J4 *1.5,0))
I get #NAME?
can someone help me get this right please?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default IF & AND formulae

Hi Mike - ok its official I'm an idiot, its just dawned on me by what you
meant about what is L. L should have been L4. So I've gone back and fixed
this and yes your formulae now works - thank you again so much. You don't
know what a relief it is to be able to pick an experts brain like you are
able to do in this discussion group. I've only ever posted two questions and
that was yesterday, both of which you solved for me.
Regards
Pam


"Mike H" wrote:

Hi,

There are a couple of problems with the formula

1. The x needs to be in quotes as does the "Yes"
2. L="Yes"

What is L?

Try this

=IF(AND(I40,K4="x"),200,IF(AND(I40,J40,L4="Yes" ),J4*1.5,0))

Mike

"Pam @ Joyce" wrote:

I am trying to say if I4 has something in it and K4=X, then put 200 in this
field, but if not see if I4 has something in it and J4 0 and L= YES then
times J4 by 1.5, if not put 0. my formulae is

=+IF(AND(I40,K4=x),200,IF(AND(I40,J40,L=YES),J4 *1.5,0))
I get #NAME?
can someone help me get this right please?

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
Formulae: Paste value formulae after doing an average operation Lim Excel Discussion (Misc queries) 4 April 20th 08 07:31 PM
Help with formulae Pivot Man[_2_] Excel Discussion (Misc queries) 3 August 16th 07 06:16 AM
age formulae Gerald Excel Discussion (Misc queries) 10 April 11th 06 06:43 AM
Searching TEXT in formulae, rather than results of formulae AndyE Excel Worksheet Functions 1 July 15th 05 10:57 AM
Formulae k f h Excel Discussion (Misc queries) 2 December 18th 04 09:55 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"