Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
Combining multiple if & and statements
 
Posts: n/a
Default if and and statements

Looking for help with a 2 x 4 matrix with the following conditions

A1 B1 C1
Answer
3 0 1
A1*4+2
3 0 2
0
3 1 1
A1*2+1
3 1 2
0

=IF(AND(B1=0,C1=1),+A1*4*2,IF(AND(B1=0,C1=2),0,IF( AND(B1=1,C1=0),+A1*2+1,IF(AND(B1=1,C1=2),0,""))))

This turns up as FALSE. Makes no sense? maybe brackets around formula?

PS--- I could simplify by using the "0" for any case where c1 is 2; BUT,
first I would like to get this to work.

Any Ideas?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.charting
tony h
 
Posts: n/a
Default if and and statements


I am not sure that I completely understand your question.

But a couple of comments:
- I think your 3 1 1 example should read 3 1 0
- 0 is FALSE any other number is TRUE
it just depends on how the cell is formatted

hope this helps

Combining multiple if & and statements Wrote:
Looking for help with a 2 x 4 matrix with the following conditions

A1 B1 C1
Answer
3 0 1
A1*4+2
3 0 2
0
3 1 1
A1*2+1
3 1 2
0

=IF(AND(B1=0,C1=1),+A1*4*2,IF(AND(B1=0,C1=2),0,IF( AND(B1=1,C1=0),+A1*2+1,IF(AND(B1=1,C1=2),0,""))))

This turns up as FALSE. Makes no sense? maybe brackets around
formula?

PS--- I could simplify by using the "0" for any case where c1 is 2;
BUT,
first I would like to get this to work.

Any Ideas?

Thanks



--
tony h
------------------------------------------------------------------------
tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074
View this thread: http://www.excelforum.com/showthread...hreadid=534369

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 10:50 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"