Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bill R
 
Posts: n/a
Default Problem with nested logical formula.

Why can't I get the formula below to work? There are 6 sheets in my
worksheet, each of which calculates a payment with different options. The
formula is located on a 7th sheet that is in the same workbook. The formula
should pull the correct payment from the correct sheet based on the options
selected by a customer who will put an "x" in one, or both of two boxes and
choosing either "single" or "joint" life Ins. I have put several hours into
this one formula; any suggestions? Please.

=IF(IF(AND(ISBLANK(BU26),NOT(ISBLANK(BU29)),AH!E19 ),
(IF(AND(NOT(ISBLANK(BU26)),(BX26="Single"),ISBLANK (BU29)),SL2!E19),IF(AND((NOT(ISBLANK(BU26))),(BX26 ="Joint"),ISBLANK(BU29)),JL2!E19),IF(AND((NOT(ISBL ANK(BU26))),(BX26="Single"),NOT(ISBLANK(BU29))),'S L&AH2'!E19),IF(AND(NOT(ISBLANK(BU26)),(BX26="Joint "),NOT(ISBLANK(BU29))),'JL&AH2'!E19),
(IF(AND(ISBLANK(BU26),ISBLANK(BU29)),NONE3!E19)))

Thanks.



  #2   Report Post  
Rowan
 
Posts: n/a
Default

Maybe like this:

=IF(AND(ISBLANK(BU26),NOT(ISBLANK(BU29))),AH!E19,I F(AND(NOT(ISBLANK(BU26)),BX26="Single",ISBLANK(BU2 9)),SL2!E19,IF(AND(NOT(ISBLANK(BU26)),BX26="Joint" ,ISBLANK(BU29)),JL2!E19,IF(AND(NOT(ISBLANK(BU26)), BX26="Single",NOT(ISBLANK(BU29))),'SL&AH2'!E19,IF( AND(NOT(ISBLANK(BU26)),BX26="Joint",NOT(ISBLANK(BU 29))),'JL&AH2'!E19,IF(AND(ISBLANK(BU26),ISBLANK(BU 29)),NONE3!E19,""))))))

Hope this helps
Rowan

Bill R wrote:
Why can't I get the formula below to work? There are 6 sheets in my
worksheet, each of which calculates a payment with different options. The
formula is located on a 7th sheet that is in the same workbook. The formula
should pull the correct payment from the correct sheet based on the options
selected by a customer who will put an "x" in one, or both of two boxes and
choosing either "single" or "joint" life Ins. I have put several hours into
this one formula; any suggestions? Please.

=IF(IF(AND(ISBLANK(BU26),NOT(ISBLANK(BU29)),AH!E19 ),
(IF(AND(NOT(ISBLANK(BU26)),(BX26="Single"),ISBLANK (BU29)),SL2!E19),IF(AND((NOT(ISBLANK(BU26))),(BX26 ="Joint"),ISBLANK(BU29)),JL2!E19),IF(AND((NOT(ISBL ANK(BU26))),(BX26="Single"),NOT(ISBLANK(BU29))),'S L&AH2'!E19),IF(AND(NOT(ISBLANK(BU26)),(BX26="Joint "),NOT(ISBLANK(BU29))),'JL&AH2'!E19),
(IF(AND(ISBLANK(BU26),ISBLANK(BU29)),NONE3!E19)))

Thanks.



  #3   Report Post  
duane
 
Posts: n/a
Default

I think this - but note you do not have a result for not meeting the last if
condition - maybe the last if is not needed.

=IF(AND(ISBLANK(BU26),NOT(ISBLANK(BU29))),AH!E19,
IF(AND(NOT(ISBLANK(BU26)),BX26="Single",ISBLANK(BU 29)),SL2!E19,
IF(AND(NOT(ISBLANK(BU26 )),BX26="Joint",ISBLANK(BU29)),JL2!E19,
IF(AND(NOT(ISBLANK(BU26 )),BX26="Single",NOT(ISBLANK(BU29))),'SL&AH2'!E19,
IF(AND(NOT(ISBLANK(BU26)),BX26="Joint",NOT(ISBLANK (BU29))),'JL&AH2'!E19,
IF(AND(ISBLANK(BU26),ISBLANK(BU29)),NONE3!E19))))) )

"Rowan" wrote:

Maybe like this:

=IF(AND(ISBLANK(BU26),NOT(ISBLANK(BU29))),AH!E19,I F(AND(NOT(ISBLANK(BU26)),BX26="Single",ISBLANK(BU2 9)),SL2!E19,IF(AND(NOT(ISBLANK(BU26)),BX26="Joint" ,ISBLANK(BU29)),JL2!E19,IF(AND(NOT(ISBLANK(BU26)), BX26="Single",NOT(ISBLANK(BU29))),'SL&AH2'!E19,IF( AND(NOT(ISBLANK(BU26)),BX26="Joint",NOT(ISBLANK(BU 29))),'JL&AH2'!E19,IF(AND(ISBLANK(BU26),ISBLANK(BU 29)),NONE3!E19,""))))))

Hope this helps
Rowan

Bill R wrote:
Why can't I get the formula below to work? There are 6 sheets in my
worksheet, each of which calculates a payment with different options. The
formula is located on a 7th sheet that is in the same workbook. The formula
should pull the correct payment from the correct sheet based on the options
selected by a customer who will put an "x" in one, or both of two boxes and
choosing either "single" or "joint" life Ins. I have put several hours into
this one formula; any suggestions? Please.

=IF(IF(AND(ISBLANK(BU26),NOT(ISBLANK(BU29)),AH!E19 ),
(IF(AND(NOT(ISBLANK(BU26)),(BX26="Single"),ISBLANK (BU29)),SL2!E19),IF(AND((NOT(ISBLANK(BU26))),(BX26 ="Joint"),ISBLANK(BU29)),JL2!E19),IF(AND((NOT(ISBL ANK(BU26))),(BX26="Single"),NOT(ISBLANK(BU29))),'S L&AH2'!E19),IF(AND(NOT(ISBLANK(BU26)),(BX26="Joint "),NOT(ISBLANK(BU29))),'JL&AH2'!E19),
(IF(AND(ISBLANK(BU26),ISBLANK(BU29)),NONE3!E19)))

Thanks.




  #4   Report Post  
Bill R
 
Posts: n/a
Default

Thanks Rowan, It almost works. Everything works except checking both boxes.
That gives me a #Ref error.

"Rowan" wrote:

Maybe like this:

=IF(AND(ISBLANK(BU26),NOT(ISBLANK(BU29))),AH!E19,I F(AND(NOT(ISBLANK(BU26)),BX26="Single",ISBLANK(BU2 9)),SL2!E19,IF(AND(NOT(ISBLANK(BU26)),BX26="Joint" ,ISBLANK(BU29)),JL2!E19,IF(AND(NOT(ISBLANK(BU26)), BX26="Single",NOT(ISBLANK(BU29))),'SL&AH2'!E19,IF( AND(NOT(ISBLANK(BU26)),BX26="Joint",NOT(ISBLANK(BU 29))),'JL&AH2'!E19,IF(AND(ISBLANK(BU26),ISBLANK(BU 29)),NONE3!E19,""))))))

Hope this helps
Rowan

Bill R wrote:
Why can't I get the formula below to work? There are 6 sheets in my
worksheet, each of which calculates a payment with different options. The
formula is located on a 7th sheet that is in the same workbook. The formula
should pull the correct payment from the correct sheet based on the options
selected by a customer who will put an "x" in one, or both of two boxes and
choosing either "single" or "joint" life Ins. I have put several hours into
this one formula; any suggestions? Please.

=IF(IF(AND(ISBLANK(BU26),NOT(ISBLANK(BU29)),AH!E19 ),
(IF(AND(NOT(ISBLANK(BU26)),(BX26="Single"),ISBLANK (BU29)),SL2!E19),IF(AND((NOT(ISBLANK(BU26))),(BX26 ="Joint"),ISBLANK(BU29)),JL2!E19),IF(AND((NOT(ISBL ANK(BU26))),(BX26="Single"),NOT(ISBLANK(BU29))),'S L&AH2'!E19),IF(AND(NOT(ISBLANK(BU26)),(BX26="Joint "),NOT(ISBLANK(BU29))),'JL&AH2'!E19),
(IF(AND(ISBLANK(BU26),ISBLANK(BU29)),NONE3!E19)))

Thanks.




  #5   Report Post  
Bill R
 
Posts: n/a
Default

I made an error when copying your formula. When entered correctly it works
perfectly. Thank you very much.

"Rowan" wrote:

Maybe like this:

=IF(AND(ISBLANK(BU26),NOT(ISBLANK(BU29))),AH!E19,I F(AND(NOT(ISBLANK(BU26)),BX26="Single",ISBLANK(BU2 9)),SL2!E19,IF(AND(NOT(ISBLANK(BU26)),BX26="Joint" ,ISBLANK(BU29)),JL2!E19,IF(AND(NOT(ISBLANK(BU26)), BX26="Single",NOT(ISBLANK(BU29))),'SL&AH2'!E19,IF( AND(NOT(ISBLANK(BU26)),BX26="Joint",NOT(ISBLANK(BU 29))),'JL&AH2'!E19,IF(AND(ISBLANK(BU26),ISBLANK(BU 29)),NONE3!E19,""))))))

Hope this helps
Rowan

Bill R wrote:
Why can't I get the formula below to work? There are 6 sheets in my
worksheet, each of which calculates a payment with different options. The
formula is located on a 7th sheet that is in the same workbook. The formula
should pull the correct payment from the correct sheet based on the options
selected by a customer who will put an "x" in one, or both of two boxes and
choosing either "single" or "joint" life Ins. I have put several hours into
this one formula; any suggestions? Please.

=IF(IF(AND(ISBLANK(BU26),NOT(ISBLANK(BU29)),AH!E19 ),
(IF(AND(NOT(ISBLANK(BU26)),(BX26="Single"),ISBLANK (BU29)),SL2!E19),IF(AND((NOT(ISBLANK(BU26))),(BX26 ="Joint"),ISBLANK(BU29)),JL2!E19),IF(AND((NOT(ISBL ANK(BU26))),(BX26="Single"),NOT(ISBLANK(BU29))),'S L&AH2'!E19),IF(AND(NOT(ISBLANK(BU26)),(BX26="Joint "),NOT(ISBLANK(BU29))),'JL&AH2'!E19),
(IF(AND(ISBLANK(BU26),ISBLANK(BU29)),NONE3!E19)))

Thanks.






  #6   Report Post  
Rowan
 
Posts: n/a
Default

You're welcome.

Bill R wrote:
I made an error when copying your formula. When entered correctly it works
perfectly. Thank you very much.

"Rowan" wrote:


Maybe like this:

=IF(AND(ISBLANK(BU26),NOT(ISBLANK(BU29))),AH!E19 ,IF(AND(NOT(ISBLANK(BU26)),BX26="Single",ISBLANK(B U29)),SL2!E19,IF(AND(NOT(ISBLANK(BU26)),BX26="Join t",ISBLANK(BU29)),JL2!E19,IF(AND(NOT(ISBLANK(BU26) ),BX26="Single",NOT(ISBLANK(BU29))),'SL&AH2'!E19,I F(AND(NOT(ISBLANK(BU26)),BX26="Joint",NOT(ISBLANK( BU29))),'JL&AH2'!E19,IF(AND(ISBLANK(BU26),ISBLANK( BU29)),NONE3!E19,""))))))

Hope this helps
Rowan

Bill R wrote:

Why can't I get the formula below to work? There are 6 sheets in my
worksheet, each of which calculates a payment with different options. The
formula is located on a 7th sheet that is in the same workbook. The formula
should pull the correct payment from the correct sheet based on the options
selected by a customer who will put an "x" in one, or both of two boxes and
choosing either "single" or "joint" life Ins. I have put several hours into
this one formula; any suggestions? Please.

=IF(IF(AND(ISBLANK(BU26),NOT(ISBLANK(BU29)),AH! E19),
(IF(AND(NOT(ISBLANK(BU26)),(BX26="Single"),ISBL ANK(BU29)),SL2!E19),IF(AND((NOT(ISBLANK(BU26))),(B X26="Joint"),ISBLANK(BU29)),JL2!E19),IF(AND((NOT(I SBLANK(BU26))),(BX26="Single"),NOT(ISBLANK(BU29))) ,'SL&AH2'!E19),IF(AND(NOT(ISBLANK(BU26)),(BX26="Jo int"),NOT(ISBLANK(BU29))),'JL&AH2'!E19),
(IF(AND(ISBLANK(BU26),ISBLANK(BU29)),NONE3!E19) ))

Thanks.




  #7   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

=IF(AND(BU26="",BU29<""),AH!E19,IF(AND(BU26<"",B X26="Single",BU29=""),SL2!E19,IF(AND(BU26<"",BX26 ="Joint",BU29=""),JL2!E19,IF(AND(BU26<"",BX26="Si ngle",BU29<""),'SL&AH2'!E19,IF(AND(BU26<"",BX26= "Joint",BU29<""),'JL&AH2'!E19,IF(AND(BU26="",BU29 =""),None3!E19,""))))))

Biff

"Bill R" wrote in message
...
Why can't I get the formula below to work? There are 6 sheets in my
worksheet, each of which calculates a payment with different options. The
formula is located on a 7th sheet that is in the same workbook. The
formula
should pull the correct payment from the correct sheet based on the
options
selected by a customer who will put an "x" in one, or both of two boxes
and
choosing either "single" or "joint" life Ins. I have put several hours
into
this one formula; any suggestions? Please.

=IF(IF(AND(ISBLANK(BU26),NOT(ISBLANK(BU29)),AH!E19 ),
(IF(AND(NOT(ISBLANK(BU26)),(BX26="Single"),ISBLANK (BU29)),SL2!E19),IF(AND((NOT(ISBLANK(BU26))),(BX26 ="Joint"),ISBLANK(BU29)),JL2!E19),IF(AND((NOT(ISBL ANK(BU26))),(BX26="Single"),NOT(ISBLANK(BU29))),'S L&AH2'!E19),IF(AND(NOT(ISBLANK(BU26)),(BX26="Joint "),NOT(ISBLANK(BU29))),'JL&AH2'!E19),
(IF(AND(ISBLANK(BU26),ISBLANK(BU29)),NONE3!E19)))

Thanks.





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
nested formula with if condotion ramana Excel Worksheet Functions 2 September 24th 05 11:01 AM
Interesting Workbook formula problem Bill R Excel Worksheet Functions 3 September 2nd 05 09:04 PM
Problem with formula in Excel Bill R Excel Worksheet Functions 3 August 15th 05 03:02 AM
Precision problem with automated formula fill-in Erny Meyer Excel Worksheet Functions 1 February 4th 05 01:22 PM
ENTER EXCEL FORMULA WITH MORE THAN 7 NESTED FUNCTIONS Linda Bolton Excel Worksheet Functions 2 January 14th 05 11:58 AM


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

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"