+ Reply to Thread
Results 1 to 12 of 12

need to Combining formulas

  1. #1
    Krista
    Guest

    need to Combining formulas

    I can't seem to wrap my head around this. I need to combine the following
    two formulas so that the result appears in one cell:

    =IF(A33="","",(SUM((2815*30)*A33)))
    =IF(A34="","",IF(A34="12x",B34*0.7*0.8,IF(A34="6x",B34*0.7*0.5,0)))

    Thanks!
    --
    Krista

  2. #2
    Forum Contributor
    Join Date
    06-01-2006
    Posts
    324
    What happens if there is a value in A33 AND A34?
    Google is your best friend!

  3. #3
    Forum Contributor
    Join Date
    06-01-2006
    Posts
    324
    =IF(AND(ISBLANK(A33),ISBLANK(A34)),"",IF(A34="12x",B34*0.7*0.8,IF(A34="6x",B34*0.7*0.5,IF(A33<>"",(SUM((2815*30)*A33)),0))))

    This will first check A34 for any value, if nothing, then show the result best on the value in A33.

    If A33 has a value but A34 has either 6X or 12X, the A34 is used and A33 ignored

  4. #4
    Krista
    Guest

    re: need to Combining formulas

    Sorry 'bout that ... it's all on the same row. This is a better
    representation:

    =IF(D33="","",(SUM((2815*30)*D33)))
    =IF(E33="12x",F33*0.7*0.8,IF(E33="6x",F33*0.7*0.5,0)))

    In the second calc F33 is the total of the first calc.

    Thanks!
    --
    Krista


    "Bearacade" wrote:

    >
    > What happens if there is a value in A33 AND A34?
    >
    >
    > --
    > Bearacade
    >
    >
    > ------------------------------------------------------------------------
    > Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
    > View this thread: http://www.excelforum.com/showthread...hreadid=552424
    >
    >


  5. #5
    Forum Contributor
    Join Date
    06-01-2006
    Posts
    324
    I am sorry, but you lost me. I have no idea what is in what cell =(

    Can you tell me where you have these two formula? and where you want the new formula to be and what you want it to do?

  6. #6
    Krista
    Guest

    re: need to Combining formulas

    OK, I figured out a way around my initial question, but I have another
    question ... completely different from the first. How can I change the
    following formula to be where E33 starts with 12x or 6x?

    =IF(E33="","",IF(E33="12x",F33*0.7*0.8,IF(E33="6x",F33*0.7*0.5,0)))

    Thanks!

    --
    Krista


    "Bearacade" wrote:

    >
    > I am sorry, but you lost me. I have no idea what is in what cell =(
    >
    > Can you tell me where you have these two formula? and where you want
    > the new formula to be and what you want it to do?
    >
    >
    > --
    > Bearacade
    >
    >
    > ------------------------------------------------------------------------
    > Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
    > View this thread: http://www.excelforum.com/showthread...hreadid=552424
    >
    >


  7. #7
    Forum Contributor
    Join Date
    06-01-2006
    Posts
    324
    You mean:

    =IF(E33="12x",F33*0.7*0.8,IF(E33="6x",F33*0.7*0.5,""))

    or

    =IF(E33="6x",F33*0.7*0.5,IF(E33="12x",F33*0.7*0.8,""))

  8. #8
    Krista
    Guest

    re: need to Combining formulas

    No. I need to know how to change the formula to instead of

    ="12x" or ="6x"
    to
    starts with "12x" or "6x"

    Thanks.
    --
    Krista


    "Bearacade" wrote:

    >
    > You mean:
    >
    > =IF(E33="12x",F33*0.7*0.8,IF(E33="6x",F33*0.7*0.5,""))
    >
    > or
    >
    > =IF(E33="6x",F33*0.7*0.5,IF(E33="12x",F33*0.7*0.8,""))
    >
    >
    > --
    > Bearacade
    >
    >
    > ------------------------------------------------------------------------
    > Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
    > View this thread: http://www.excelforum.com/showthread...hreadid=552424
    >
    >


  9. #9
    Forum Contributor
    Join Date
    06-01-2006
    Posts
    324
    Sorry Krista, I am still no understanding your question... what do you mean by Start with?

  10. #10
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Krista,

    Do you mean if the first 3 characters are "12x" or first 2 are "6x"?

    Try,


    =IF(E33="","",IF(LEFT(E33,3)="12x",F33*0.7*0.8,IF(LEFT(E33,2)="6x",F33*0.7*0.5,0)))

    HTH

    Steve

  11. #11
    Krista
    Guest

    re: need to Combining formulas

    Yes, that's what I mean -- thanks.

    I tried this formula; however, nothing is appearing. I initially thought
    that's what the formula should be; however, it's not calculating ... the
    field is blank.

    Thanks.
    --
    Krista


    "SteveG" wrote:

    >
    > Krista,
    >
    > Do you mean if the first 3 characters are "12x" or first 2 are "6x"?
    >
    > Try,
    >
    >
    > =IF(E33="","",IF(LEFT(E33,3)="12x",F33*0.7*0.8,IF(LEFT(E33,2)="6x",F33*0.7*0.5,0)))
    >
    > HTH
    >
    > Steve
    >
    >
    > --
    > SteveG
    > ------------------------------------------------------------------------
    > SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
    > View this thread: http://www.excelforum.com/showthread...hreadid=552424
    >
    >


  12. #12
    Krista
    Guest

    re: need to Combining formulas

    My bad ... I figured it out.

    Thanks again!

    --
    Krista


    "Krista" wrote:

    > Yes, that's what I mean -- thanks.
    >
    > I tried this formula; however, nothing is appearing. I initially thought
    > that's what the formula should be; however, it's not calculating ... the
    > field is blank.
    >
    > Thanks.
    > --
    > Krista
    >
    >
    > "SteveG" wrote:
    >
    > >
    > > Krista,
    > >
    > > Do you mean if the first 3 characters are "12x" or first 2 are "6x"?
    > >
    > > Try,
    > >
    > >
    > > =IF(E33="","",IF(LEFT(E33,3)="12x",F33*0.7*0.8,IF(LEFT(E33,2)="6x",F33*0.7*0.5,0)))
    > >
    > > HTH
    > >
    > > Steve
    > >
    > >
    > > --
    > > SteveG
    > > ------------------------------------------------------------------------
    > > SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
    > > View this thread: http://www.excelforum.com/showthread...hreadid=552424
    > >
    > >


+ 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