+ Reply to Thread
Results 1 to 19 of 19

imbedded if statements

Hybrid View

  1. #1
    Registered User
    Join Date
    08-05-2005
    Posts
    4

    imbedded if statements

    i have a imbedded if statement of 8, that returns a cell reference from various ranges. what is another option to get 9 or 10 statements in one formula. the formula is:



    =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))

    i need to add one more
    if(p7="c",(vlookup(o7,$x$60:$z$68,3))

    ANY help would be appreciated
    kat

  2. #2
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  3. #3
    Registered User
    Join Date
    08-05-2005
    Posts
    4
    Thanks Bob! your formula worked with one correction:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3)),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3)),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3)),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,"") &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3)),"")

    I needed to add another parenthesis to close each vlookup statement. Thank you for this. The answer was so simple yet it eluded me.
    kat

  4. #4
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  5. #5
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  6. #6
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  7. #7
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  8. #8
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  9. #9
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  10. #10
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  11. #11
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  12. #12
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  13. #13
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  14. #14
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  15. #15
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  16. #16
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  17. #17
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  18. #18
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




  19. #19
    Bob Umlas
    Guest

    Re: imbedded if statements

    You can use the technique of ANDing the conditions instead of nesting them:

    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"")&IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"")&IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"")&IF(P7="F",7%,"")&IF(P7="UTC",9%,"")&IF(P7="UTM",7%,"")&IF(P7="CF",2%,1)&IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Note each is a series of complete if-statements connected with &. For better
    readability:
    =IF(P7="M",VLOOKUP(O7,$X$19:$Z$27,3),"") &
    IF(P7="G",VLOOKUP(O7,$X$30:$Z$41,3),"") &
    IF(P7="BA",VLOOKUP(O7,$X$45:$Z$57,3),"") &
    IF(P7="F",7%,"") &
    IF(P7="UTC",9%,"") &
    IF(P7="UTM",7%,"") &
    IF(P7="CF",2%,1) &
    IF(P7="c",VLOOKUP(O7,$X$60:$Z$68,3),"")

    Bob Umlas
    Excel MVP

    "ksusong" <ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com> wrote in
    message news:ksusong.1tbfyb_1123286730.8655@excelforum-nospam.com...
    >
    > i have a imbedded if statement of 8, that returns a cell reference from
    > various ranges. what is another option to get 9 or 10 statements in one
    > formula. the formula is:
    >
    >
    >
    > =IF(P7="M",(VLOOKUP(O7,$X$19:$Z$27,3)),IF(P7="G",(VLOOKUP(O7,$X$30:$Z$41,3)),IF(P7="BA",(VLOOKUP(O7,$X$45:$Z$57,3)),IF(P7="F",7%,IF(P7="UTC",9%,IF(P7="UTM",7%,IF(P7="CF",2%,1)))))))
    >
    > i need to add one more
    > if(p7="c",(vlookup(o7,$x$60:$z$68,3))
    >
    > ANY help would be appreciated
    > kat
    >
    >
    > --
    > ksusong
    > ------------------------------------------------------------------------
    > ksusong's Profile:
    > http://www.excelforum.com/member.php...o&userid=25980
    > View this thread: http://www.excelforum.com/showthread...hreadid=393488
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1