#1   Report Post  
At A Loss
 
Posts: n/a
Default IF(AND Question

If possible, can this formula be corrected?
I get the answer "FALSE", and I need a number.
G19 number is 25, H19 number is 28, I19 number is 31, and
J19 number is 35.
IF not, what other formula could I use to get the results?

=IF(AND(A1="B",E10="N"),G19,H19)=IF(AND(A1="C",E10 ="N"),I19,J19)
Thanks In Advance
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Your question is waaay too ambiguous. Help us help you. Explain what you
are trying to accomplish.

The formula returns FALSE because you are comparing the results of two
different calculations, i.e., does IF(#1)=IF(#2)

"At A Loss" wrote:

If possible, can this formula be corrected?
I get the answer "FALSE", and I need a number.
G19 number is 25, H19 number is 28, I19 number is 31, and
J19 number is 35.
IF not, what other formula could I use to get the results?

=IF(AND(A1="B",E10="N"),G19,H19)=IF(AND(A1="C",E10 ="N"),I19,J19)
Thanks In Advance

  #3   Report Post  
Alan
 
Posts: n/a
Default

Its difficult to see what you want to achieve from this, the syntax of the
nested IF formula is wrong, it needs to be something like:-
=IF(AND(A1="B",E1="N"),"Something",IF(AND(A1="C",E 10="N"),"Something
Else","What to display it niether argument is TRUE"))
Regards,
Alan.
"At A Loss" wrote in message
...
If possible, can this formula be corrected?
I get the answer "FALSE", and I need a number.
G19 number is 25, H19 number is 28, I19 number is 31, and
J19 number is 35.
IF not, what other formula could I use to get the results?

=IF(AND(A1="B",E10="N"),G19,H19)=IF(AND(A1="C",E10 ="N"),I19,J19)
Thanks In Advance



  #4   Report Post  
Roger Govier
 
Posts: n/a
Default

The FALSE result comes from having to = in the formula. You are tesing the
value before the second = is the same as the value after the second =.

The logic of what you are trying to do, is somewhat ambiguous.
Basically, your True results all have to have E10="N". What happens if
E10<"N"?
Maybe you need something like

=IF(E10<"N","No result",IF(A1="B",G19,IF(A1="C",H19,I19))

but that is not utilising the J19 value. Maybe that is the result you want
for the "No Result".
From what you have posted, I an only "second guess" what you are trying to
do.
Perhaps you can rethink the problem and post back.

--
Regards

Roger Govier


"At A Loss" wrote in message
...
If possible, can this formula be corrected?
I get the answer "FALSE", and I need a number.
G19 number is 25, H19 number is 28, I19 number is 31, and
J19 number is 35.
IF not, what other formula could I use to get the results?

=IF(AND(A1="B",E10="N"),G19,H19)=IF(AND(A1="C",E10 ="N"),I19,J19)
Thanks In Advance



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



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

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

About Us

"It's about Microsoft Excel"